This content has been marked as final.
Show 1 reply
-
1. Re: currency conversion
qbit42 Dec 4, 2009 11:32 AM (in response to vdeminico)Hi,
I somehow discovert a similar problem with converting currencies. I try to do nearly the same thing, but with a german locale.<h:inputText id="chargeNet" required="true" value="#{courseHome.instance.chargeNet}"> <f:convertNumber type="currency" /> </h:inputText>
If I call my edit form, the value looks pretty good e.g. 300,00 €, but if I try to save this form without changes the following error occures:
/view/course-edit.xhtml @39,109 value="#{courseHome.instance.chargeNet}": java.lang.IllegalArgumentException: argument type mismatch
Even if I try to set the value for a new entity. I tryed many combinations, w/wo currency symbol, w/wo comma, but nothing seems to work. My value property is a BigDecimal.
There must be a way to insert and validate currency values.
Thanks, Matthias.