Problem with inputText conversion to BigDecimal

2011-04-08 Thread Juergen . Wieners
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

Problems retrieving selection data from t:datalist via actionlistener

2011-04-08 Thread Georg Füchsle
Hallo! I use Jsf 1.2 with Tomahawk and Facelets. On a page listing users that belong to a company, I use t:datalist .. To edit one user, I call an actionListener, that retrieves the id of the selected user. This works since some years. Now it happens sometimes that the selection of the user

Re: Problem with inputText conversion to BigDecimal

2011-04-08 Thread Walter Mourão
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

Re: Re: Problem with inputText conversion to BigDecimal

2011-04-08 Thread Walter Mourão
As far as I know it is now the standard behavior... Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Fri, Apr 8, 2011 at 8:30 AM, juergen.wien...@hella.com wrote: Hi. Thanks for the quick reply, it helps me fpr the moment. So i'm thinking of what I

Re: Re: Problem with inputText conversion to BigDecimal

2011-04-08 Thread Mark Struberg
Hi Juergen! Imo upgrading to JSF2 and EL-2.2. is always a good idea. I remember how nasty it was to handle actions in dataTables in JSF1. With EL-2.2 you now can just have your action as #{backingBean.delete(currentItem)} for example. Or the f:viewParam or f:event type=PreRenderViewEvent