Re: [s2] Making textfield input optional

2009-01-05 Thread Milan Milanovic
>>> >>>> Yes, I'm using BigDecimal type converter given here: >>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html >>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html >>>> . >>>>

Re: [s2] Making textfield input optional

2008-07-25 Thread Milan Milanovic
l need a validator so that the string doesn't >>>>> violate the BigDecimal grammar. >>>>> >>>>> Other option (may be more clean) is the action having both the string >>>>> instance and the real BigDecimal instance, then the form will

RE: [s2] Making textfield input optional

2008-07-24 Thread Jishnu Viswanath
[mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2008 10:08 PM To: Struts Users Mailing List Subject: Re: [s2] Making textfield input optional Yes, you need to write this setter in your action class. 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: > > Dear Gabriel, > > You mean

RE: [s2] Making textfield input optional

2008-07-24 Thread Jishnu Viswanath
Hey if you are using int, float, or double instead of them use Wrapper Classes id Integer, Float, Double former does not allow null value while later does allow. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.ta

Re: [s2] Making textfield input optional

2008-07-24 Thread Gabriel Belingueres
eal BigDecimal instance, then the form will only set >>>> the string instance. >>>> >>>> 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: >>>>> >>>>> Dear Newton, >>>>> >>>>> Yes, I'm using BigDecimal type conve

Re: [s2] Making textfield input optional

2008-07-24 Thread Milan Milanovic
>>> 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: >>>> >>>> Dear Newton, >>>> >>>> Yes, I'm using BigDecimal type converter given here: >>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html >>>>

Re: [s2] Making textfield input optional

2008-07-24 Thread Gabriel Belingueres
>>> Thx, Milan >>> >>> >>> newton.dave wrote: >>>> >>>> Are you using a BigDecimal type converter (one of which was just >>>> posted)? >>>> >>>> AFAIK it won't work w/o the converter, but I could

Re: [s2] Making textfield input optional

2008-07-24 Thread Milan Milanovic
ve wrote: >>> >>> Are you using a BigDecimal type converter (one of which was just >>> posted)? >>> >>> AFAIK it won't work w/o the converter, but I could be remembering >>> incorrectly. >>> >>> Dave >>> >>> --

Re: [s2] Making textfield input optional

2008-07-24 Thread Gabriel Belingueres
e you using a BigDecimal type converter (one of which was just posted)? >> >> AFAIK it won't work w/o the converter, but I could be remembering >> incorrectly. >> >> Dave >> >> --- On Thu, 7/24/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: >> &g

Re: [s2] Making textfield input optional

2008-07-24 Thread Milan Milanovic
e converter (one of which was just posted)? > > AFAIK it won't work w/o the converter, but I could be remembering > incorrectly. > > Dave > > --- On Thu, 7/24/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > >> From: Milan Milanovic <[EMAIL PROTECTED

Re: [s2] Making textfield input optional

2008-07-24 Thread Dave Newton
Are you using a BigDecimal type converter (one of which was just posted)? AFAIK it won't work w/o the converter, but I could be remembering incorrectly. Dave --- On Thu, 7/24/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > From: Milan Milanovic <[EMAIL PROTECTED]> > S

Re: [s2] Making textfield input optional

2008-07-24 Thread Milan Milanovic
Dear Gabriel, no, my actual question is related to the issue when user doesn't enter anything to the textfield which is connected to BigDecimal in my action class. -- Thx, Milan Gabriel Belingueres-2 wrote: > > Please make sure that the input string is according the BigDecimal format: > http

Re: [s2] Making textfield input optional

2008-07-24 Thread Gabriel Belingueres
Please make sure that the input string is according the BigDecimal format: http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html#BigDecimal(java.lang.String) 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: > > Hi Gabriel, > > no I cannot do this because my field is of type BigDecimal an

Re: [s2] Making textfield input optional

2008-07-24 Thread Milan Milanovic
Hi Gabriel, it is a BigDecimal. -- Thx, Milan Gabriel Belingueres-2 wrote: > > Which is the data type of inValue? > > 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: >> >> Hi, >> >> I have one form with multiple textfields, and I want to one of that >> textfield be optional for user, i.e., he

Re: [s2] Making textfield input optional

2008-07-24 Thread Milan Milanovic
Hi Gabriel, no I cannot do this because my field is of type BigDecimal and I must have get/set methods for it. -- Thx, Milan Gabriel Belingueres-2 wrote: > > instead of: > > public vlid setInValue(BigDecimal x) { > this.x = x; > } > > test with this: > > public vlid setInValue(String s)

Re: [s2] Making textfield input optional

2008-07-24 Thread Jim Kiley
Doesn't that exception usually get thrown when, in this case, ViewAction doesn't have a setInValue() method? jk On Thu, Jul 24, 2008 at 10:31 AM, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > Which is the data type of inValue? > > 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: > > > > Hi, > >

Re: [s2] Making textfield input optional

2008-07-24 Thread Gabriel Belingueres
instead of: public vlid setInValue(BigDecimal x) { this.x = x; } test with this: public vlid setInValue(String s) { this.x = new BigDecimal(s); } 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: > > Hi Jim, > > no, I have that method. > > -- > Thx, Milan > > > Jim Kiley wrote: >> >> Doesn't

Re: [s2] Making textfield input optional

2008-07-24 Thread Milan Milanovic
Hi Jim, no, I have that method. -- Thx, Milan Jim Kiley wrote: > > Doesn't that exception usually get thrown when, in this case, ViewAction > doesn't have a setInValue() method? > > jk > > On Thu, Jul 24, 2008 at 10:31 AM, Gabriel Belingueres > <[EMAIL PROTECTED]> > wrote: > >> Which is th

Re: [s2] Making textfield input optional

2008-07-24 Thread Gabriel Belingueres
Which is the data type of inValue? 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: > > Hi, > > I have one form with multiple textfields, and I want to one of that > textfield be optional for user, i.e., he doesn't need to enter information > in that particular field. Now, when user don't enter I ge