Percentages with JSF NumberConverterPosted 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?
| << Spam Statistics | Back to Blog | Monitoring the JVM with SNMP + MRTG >> |
Add a comment
Please visit http://www.ninthavenue.com.au/blog/percentages-with-jsf-numberconverter to add your comments.