0

I'm trying to render a currency value to a VF page. Whether I use Decimal or String, it still doesn't seem to work with the OutputText formatting :-

 <apex:column>
      <apex:facet name="header">AUM</apex:facet>
      <apex:outputText value="{0, Number, Currency}" />
      <apex:param value="{!product.AUMString}" />
  </apex:column>

Instead, it only renders the literal string {0, Number, Currency}

What's needed here to make this work?

1 Answer 1

4

One small change required, declare the apex:param tag inside the apex:outputText.

<apex:column>
    <apex:facet name="header">AUM</apex:facet>
    <apex:outputText value="{0, Number, Currency}" >
        <apex:param value="{!product.AUMString}" />
    </apex:outputText>
</apex:column>
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .