No, I have no locale set in the faces-config. Thought this
should come from
the Browser used. But I tried and this makes no difference.
A number with
decimal point "." is accepted, a number with
decimal comma "," is rejected.
Andreas Heidrich (Embedded
Organisationsprogrammierer/EDV Orga image moved
Toyota Kreditbank GmbH to file:
Tel: +49-2234-102-1963|Fax: pic29314.gif)
+49-2234-102-99-1963
Email: andreas.heidrich toyota-fs.com
"Ron Smits"
<ron.smits gmail.
com>
An
"MyFaces
Discussion"
05.10.2007 17:01 <users myfaces.apache.org>
Kopie
Bitte antworten
Thema
an Re: Another Beginner
Question:
"MyFaces Input of
Numbers with decimal
Discussion" places
<users myfaces.ap
ache.org>
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 <Andreas.Heidrich toyota-fs.com> 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.debtOthe
r}">
<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
------------------------------------------------------------
-------
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.
|