aspose file tools
The moose likes JSF and the fly likes formatting and converters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "formatting and converters" Watch "formatting and converters" New topic
Author

formatting and converters

Jamie Williams
Ranch Hand

Joined: Mar 31, 2006
Posts: 70
I need to display some float information in input boxes with the format 0.00000 - even if the actual value is 0.1 it has to show 0.10000 but this obviously isn't the default behaviour. A converter will only work on the form submission, right? Is there something I can use to format the float value when I fetch it? I would prefer not to have a formatting-related method in my data object (which is what I am forced to have now).
Daniel Rhoades
Ranch Hand

Joined: Jun 30, 2004
Posts: 186
f:convertNumber should do the job for you.


Drinking more tea is the key...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: formatting and converters
 
Similar Threads
Double.parseDouble(String s) not handling decimal as expected
formatting float values
Need to convert a float value into a normal value
format date
JDBC returning values using Scientific Notation