Percentages with JSF NumberConverter
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.
Where do I apply for my refund on that hour of my life?Percentages with JSF NumberConverter
Roger Keays is an artist, an engineer, and a student of life. Since he left Australia in 2009, he has been living as a digital nomad in over 40 different countries around the world. Roger is addicted to surfing. His other interests are music, psychology, languages, and finding good food. Click here to subscribe to his weekly blog, or stalk him on Facebook and Twitter.