This content has been marked as final.
Show 4 replies
-
1. Re: How to avoid scientific conversión for double values in <h:inputText>?
chkiron Oct 17, 2010 5:30 PM (in response to maguri)Hi.
I am using
<f:convertNumber pattern="###,##0.00" />
for numbers conversion and it has helped me through a lot of different situations.
I hope this can help you.
Best regards,
Chkiron
-
2. Re: How to avoid scientific conversión for double values in <h:inputText>?
maguri Oct 18, 2010 10:02 AM (in response to chkiron)Hi,
The problem is that I tried using <f:convertNumber> in various ways and by doing so I'm getting the error message mentioned in the original post.
-
3. Re: How to avoid scientific conversión for double values in <h:inputText>?
chkiron Oct 18, 2010 11:04 AM (in response to maguri)Well, a somewhat ugly solution would involve changing the double to a String to properly display and, if needed, re-convert it before using it as a number.
-
4. Re: How to avoid scientific conversión for double values in <h:inputText>?
maguri Oct 21, 2010 1:02 PM (in response to maguri)Hi,
Well, I finished up building my own converter and now I can enter values with or without separators and decimals, and the values are allways displayed with separators. It works fine.