Do you have your Locale setup right in your faces-config.xml?
<locales>
<default-locale>your locale here</default-locale>
</locales>
(this from the top of my head)
Ron
On 10/5/07, Andreas Heidrich <[EMAIL PROTECTED]> wrote:
>
> Hello,
> another beginner question:
>
> I have some input field on my page that contain numbers with decimal
> places. When I use a dot as decimal point (i.e. 25.50) everrything works
> fine, but I cannot use the german version with comma. Input of 25,50
> results in a error message that the text is not a number.
>
> I tried to us a <f:convertNumber> tag...
>
> <h:inputText styleClass="text" id="f_monthly_commitments_odd"
> required="true"
> value="#{customerWebController.customer.rating.debtOther}">
> <f:convertNumber type="number" pattern="#,##0.00" />
> </h:inputText>
>
> , afther that the validation runs fine, but I get a Exception in that
> case.
>
> Exception setting property debtHabitation of base with class
> de.toyotafinance.web.onlinecredit.scoring.Rating, Bean:
> de.toyotafinance.web.onlinecredit.scoring.Rating, property:
> debtHabitation, newValue: 200.5,newValue class: java.lang.Double method
> parameter class: java.math.BigDecimal, argument type mismatch
>
>
> Before I go on and write my own converter: Is there any JSF Standard
> mechanism ? This must be a problem for each german user....
>
> Thanx
> Andreas
>
> -------------------------------------------------------------------
> Toyota Financial Services ist eine Marke der TOYOTA Kreditbank GmbH
> Lexus Financial Services ist eine Marke der TOYOTA Kreditbank GmbH
> TOYOTA Kreditbank GmbH
> Toyota-Allee 5, Köln-Marsdorf
> www.toyota-bank.de www.lexus-finance.de
> Sitz der Gesellschaft: Köln - Amtsgericht Köln - HRB 18068
> Ust-IdNr.: DE 811425043 - Steuernummer: 223/5819/0038
> Vorsitzender des Beirates: Keji Sudo
> Geschäftsführer: Peter Pollhammer - Andreas Bullock - Christian Ruben
> -------------------------------------------------------------------
> Toyota Financial Services ist eine Marke der TOYOTA Leasing GmbH
> Lexus Financial Services ist eine Marke der TOYOTA Leasing GmbH
> TOYOTA Leasing GmbH
> Toyota-Allee 5, Köln-Marsdorf
> www.toyota-bank.de www.lexus-finance.de
> Sitz der Gesellschaft: Köln - Amtsgericht Köln - HRB 20031
> Ust-IdNr.: DE 811425051 - Steuernummer: 223/5819/0038
> Vorsitzender des Beirates: Keji Sudo
> Geschäftsführer: Peter Pollhammer - Tadashi Ueda - Christian Ruben
> -------------------------------------------------------------------
>
>
> Toyota Financial Services (UK) PLC, Company Registration Number
> 02299961, Great Burgh, Burgh Heath, Epsom, Surrey, KT18 5UZ,
> registered in England.
>
> Lexus Financial Services and Redline Finance are trading styles
> of Toyota Financial Services (UK) PLC.
>
> Authorised and regulated by the Financial Services Authority.
> This correspondence is for the intended recipient only. It may
> contain confidential or legally privileged information or both.
> No confidentiality or privilege is waived or lost by any
> mistransmission or unauthorised alteration during transmission.
> If you are not the intended recipient, any disclosure, copying,
> distribution or any action taken or omitted to be taken in
> reliance on it, is prohibited and may be unlawful. If you receive
> this correspondence in error, please immediately delete it from
> your system and notify the sender. Any views expressed in this
> message are those of the individual sender, except where the
> sender expressly, and with authority, states them to be the views
> of Toyota. This message has been checked for viruses but the
> recipient is strongly advised to rescan the message before
> opening any attachments or attached executable files.
>
--
I reject your reality and substitute my own
--- Adam Savage, the mythbusters