I have defined my managed bean variables as Wrappers (Integer, Long, Double etc). I would like to left-pad zeros to the numbers to be displayed on the JSF with Facelets page. Please let me know the better ways to left-pad zeros to numeric values without changing the variables to data type String. I am using Richfaces in my project.
No..I am searching for a tag in JSF/Richfaces to pad automatically on the page. If not, I may need to use a custom converter to pad zeros. Please let me know if there is any existing tag I can use on the page (.xhtml).
Joined: May 01, 2010
Try to tweak this, I am guessing this will do it -