You need to sign in to do that
Don't have an account?

PageBlockTable and outputText
I'm having some issues getting the values in my var attribute when using apex:column and apex:outputText.
Say I have the following pageBlockTable:
<apex:pageBlockTable value="{!charges}" var="a" id="adjustment_charges"> <apex:column headerValue="Amend Action" value="{!a.Local_Price__c}" /> <apex:column headervalue="test"> <apex:outputText > <apex:param value="{!a.Local_Price__c}"/> </apex:outputText> </apex:column> </apex:pageBlockTable>
For me, the first column prints out the local price, while the second "test" column prints out blank
Any ideas what I am doing wrong?
Hi willard,
No need of using <apex:param> to print the value of a field, directly bind it with the <apex:outputText>:
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other's benefit.
Try this
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
Sorry - I posted a simplified example, I actually do need the param value there since I want to format the field.
More accurate code, where it prints out some_date__c in the first column, but not the second:
When you use value attribute to merge the fields it will automatically take care of the date/currency etc formatting based on user locale.