Filter Type: All Time (0 Results) Past 24 Hours Past Week Past month Post Your Comments?
All Time (0 Results)
Past 24 Hours
Past Week
Past month
The convertNumber is a standard JSF converter, which converts String/Numbers into a specified format. This converter can be customized using a set of attributes, listed next: type represents the type of number, by default this type is set to number, but you can set it to currency or percent.
In JSF, “ f:convertNumber ” is a standard converter, which converts String into a specified “Number” format. In addition, it’s also used as a validator to make sure the input value is a valid number. See following common used examples : Note : Assuming # {receipt.amount} contains a “ 0.1 ” value.
All the Converter classes in JSF must implement the Converter interface and they should override the getAsObject () and getAsString () methods. The method getAsObject () will be called as soon as the user enters the data and conforms it by clicking the submit button.
But if you want to format a Date object JSF provides a converter tag