Percentages with JSF NumberConverter
Posted by Roger Keays, 3 July 2009, 12:06 AM
Hooray for buggy javadocs. The JSF taglib describes the type attribute of an f:numberConverter as:
Specifies how the number string will be formatted and parsed. Valid values are "number", "currency", and "percentage".
Nice, but wrong. For percentages, the correct value is percent, as defined in the JSF spec.
<f:convertNumber type="percent"/>
Where do I apply for my refund on that hour of my life?
| << Returns on Investment | Back to Blog | Pimsleur Japanese 1, Unit 10 >> |
Add a comment
Please visit http://www.ilikespam.com/blog/percentages-with-jsf-numberconverter to add your comments.