Hello everybody,
I have the following problem with conversion of an inputfield to a
BigDecimal. The input has to distinguish between zero and empty string.
The page contains the following code:
h:inputText value=#{sessionBean.testvar}
f:convertNumber
Hi.
Take a look at
http://myfaces.markmail.org/message/syt73xw5qkmlrcg2?q=COERCE_TO_ZERO
I would suggest you create a String property to receive the value and make
the conversion in its setter (for example), or use Juel (
http://juel.sourceforge.net/ ). The problem in using a different
Datum: 08.04.2011 12:42
Betreff:Re: Problem with inputText conversion to BigDecimal
Hi.
Take a look at
http://myfaces.markmail.org/message/syt73xw5qkmlrcg2?q=COERCE_TO_ZERO
I would suggest you create a String property to receive the value and make
the conversion in its setter
-
Tel.: 31007
Von: Walter Mourão walter.mou...@gmail.com
An: MyFaces Discussion users@myfaces.apache.org
Kopie: juergen.wien...@hella.com
Datum: 08.04.2011 12:42
Betreff: Re: Problem with
inputText conversion to BigDecimal
Hi.
Take a look
4 matches
Mail list logo