Subject: Re: number conversion and null values
You should definitely be using Double instead of double, because
otherwise you have no way to store it when the user leaves the field
blank (unless the user isn't allowed to leave it blank).
When you tried setTreshold(Double treshold), did you also
-Original Message-
From: Michael Heinen [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 13. September 2007 10:09
To: MyFaces Discussion
Subject: RE: number conversion and null values
Thanks Ben, this solved the problem.
Changing only the setter was not sufficient.
I have to change the getter
!
Michael
-Original Message-
From: Michael Heinen [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 13. September 2007 10:09
To: MyFaces Discussion
Subject: RE: number conversion and null values
Thanks Ben, this solved the problem.
Changing only the setter was not sufficient.
I have to change
Hi!
The NumberConverter returns a Long instead of a Double!
How can I get a simple automatic NumberConversion working ?
This is really annoying!
I am not sure if this has already been mentioned in this thread. But
there is a numberConverter in Tomahawk's sandbox which will do the trick.
: Donnerstag, 13. September 2007 11:06
To: MyFaces Discussion
Subject: Re: number conversion and null values
Hi!
The NumberConverter returns a Long instead of a Double!
How can I get a simple automatic NumberConversion working ?
This is really annoying!
I am not sure if this has already been
Hi!
Isn't the default converter useless in combination with doubles without
this destType ?
Notice, in most situations you do not have to set this destType, the
converter will determine this automatically.
Well, the default converter, I think the common strategy when using this
converter is
I just took a look at the sandbox tomahawk numberconverter.
Similar to Trinidad's NumberConverter.
Nice!
-Matthias
On 9/13/07, Mario Ivankovits [EMAIL PROTECTED] wrote:
Hi!
Isn't the default converter useless in combination with doubles without
this destType ?
Notice, in most situations
conversion and null values
Maybe f:convertNumber pattern=###.##/ instead? I'm not an expert
on format patterns, but doesn't 0 mean at least one digit?
On 9/11/07, Michael Heinen [EMAIL PROTECTED] wrote:
I have a conversion problem with doubles and null values.
JSP snippet
numeric values.
Any ideas ?
-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 11. September 2007 22:52
To: MyFaces Discussion
Subject: Re: number conversion and null values
Maybe f:convertNumber pattern=###.##/ instead? I'm not an expert
I have a conversion problem with doubles and null values.
JSP snippet:
h:inputText
value=#{!empty MyController.category
MyController.category.treshold=0? MyController.category.treshold:''}
f:convertNumber pattern=##0.##/
/h:inputText
Class Category
public double getTreshold()
Maybe f:convertNumber pattern=###.##/ instead? I'm not an expert
on format patterns, but doesn't 0 mean at least one digit?
On 9/11/07, Michael Heinen [EMAIL PROTECTED] wrote:
I have a conversion problem with doubles and null values.
JSP snippet:
h:inputText
value=#{!empty
11 matches
Mail list logo