gudii9
asked on
JSF currencySymbol
Hi,
I am trying to understand following code but could not understand.
<h:inputText id="sal" value="#{ManagedBean.sal}" >
<f:convertNumber currencySymbol="$" type="currency"/>
</h:inputText><br>
<h:message for="sal" style="color:BLUE"/>
<h:outputText value="#{ManagedBean.sal}" >
<f:convertNumber currencySymbol="$" type="currency"/>
</h:outputText>
Especially what currencySymbol is doing.
Please advise. Any links, ideas, suggestions, sample code, resources highly appreciated. Thanks in advance
I am trying to understand following code but could not understand.
<h:inputText id="sal" value="#{ManagedBean.sal}"
<f:convertNumber currencySymbol="$" type="currency"/>
</h:inputText><br>
<h:message for="sal" style="color:BLUE"/>
<h:outputText value="#{ManagedBean.sal}"
<f:convertNumber currencySymbol="$" type="currency"/>
</h:outputText>
Especially what currencySymbol is doing.
Please advise. Any links, ideas, suggestions, sample code, resources highly appreciated. Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<h:inputText id="sal" value="#{ManagedBean.sal}"
<f:convertNumber currencySymbol="Rp" type="currency"/>
</h:inputText><br>
<h:message for="sal" style="color:BLUE"/>
<h:outputText value="#{ManagedBean.sal}"
<f:convertNumber currencySymbol="$" type="currency"/>
</h:outputText>
So input text accept currency as Rp and output tect converts that to $ and displays?
Please advise