This content has been marked as final.
Show 3 replies
-
1. Re: f:convertNumber (currency) fails every time
dkarr Jan 20, 2008 12:32 PM (in response to dkarr)If it matters, I've also tried "$0" and "$0.00", and those also fail to pass conversion.
-
2. Re: f:convertNumber (currency) fails every time
dkarr Jan 20, 2008 8:38 PM (in response to dkarr)I tried an experiment of doing the following:
1. Changing the property type in the bean to java.lang.Double.
2. Changing the "type" attribute of the "f:convertNumber" tag to "number".
Now, instead of getting a simple "Conversion error" message, it now says:
java.lang.IllegalArgumentException: argument type mismatch
I don't get it. What's going on here?
(I'm using the value "0" on submit.) -
3. Re: f:convertNumber (currency) fails every time
daniel.soneira Jan 21, 2008 6:24 AM (in response to dkarr)Try s:convertNumber to avoid that problem. The core f:convertNumber didn't work for me either.
That is a MyFaces Tomahawk Sandbox component that works really well :)