currency « Development « JSF Q&A

1. Does the JSF convertNumber with currency format round or truncate additional decimal places?

Here is an example:

    <h:outputText value="#{myBean.myMoney}">
       <f:convertNumber type="currency" currencySymbol="$" />
Given that I have $1.006, will this output $1.00 ...

2. JSF f:convertNumber round up currency

is it possible to use f:convertNumber to round up? I checked the api here and it didn't mention anything about rounding. If not, what is the next ...

3. How to place the euro symbol for currency at the end and not at the beginning of an output?

I am using JSF's 2.0 standard convertor tags to format some number output as currency. But i have a little problem, I dont know how to place the euro symbol at ...

5. JSF Currency Conversion

6. currency formatting