RE: number conversion and null values

2007-09-13 Thread Michael Heinen
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

RE: number conversion and null values

2007-09-13 Thread Michael Heinen
-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

Re: number conversion and null values

2007-09-13 Thread Matthias Wessendorf
! 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

Re: number conversion and null values

2007-09-13 Thread Mario Ivankovits
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.

RE: number conversion and null values

2007-09-13 Thread Michael Heinen
: 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

Re: number conversion and null values

2007-09-13 Thread Mario Ivankovits
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

Re: number conversion and null values

2007-09-13 Thread Matthias Wessendorf
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

RE: number conversion and null values

2007-09-12 Thread Michael Heinen
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

Re: number conversion and null values

2007-09-12 Thread Ben Smith
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

number conversion and null values

2007-09-11 Thread Michael Heinen
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()

Re: number conversion and null values

2007-09-11 Thread Mike Kienenberger
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