Dear All,
I am going to format a value, 12345.343, to a currency value, $12,345.34. But I failed. Would you tell me how can I use the ig converters and give me a sample?
Here is my code:
I registered the converter in faces-config.xml.
<converter> <description>Convert to currency format</description> <converter-id>igCurrencyConverter</converter-id> <converter-class>com.infragistics.faces.input.converter.CurrencyConverter</converter-class></converter>
=======
In a jsp file
<h:outputText value="12345.343"> <f:converter converterId="igCurrencyConverter" format="$#,##0.00"/></h:outputText>