Re: integer validation problem

2004-04-06 Thread Craig R. McClanahan
Joe Hertz wrote: Craig R. McClanahan writes: What you're basically asking for is user interface components, instead of simple input fields. Fortunately, you can have that today with things like JavaServer Faces. The user interface components there have the ability to automatically regis

Re: integer validation problem

2004-04-06 Thread Adam Hardy
On 04/06/2004 11:47 AM Joe Hertz wrote: Craig R. McClanahan writes: What you're basically asking for is user interface components, instead of simple input fields. Fortunately, you can have that today with things like JavaServer Faces. The user interface components there have the ability to autom

Re: integer validation problem

2004-04-06 Thread Joe Hertz
Craig R. McClanahan writes: > What you're basically asking for is user interface > components, instead > of simple input fields. Fortunately, you can have that today with > things like JavaServer Faces. The user interface components > there have > the ability to automatically register the c

Re: integer validation problem

2004-04-05 Thread Hubert Rabago
--- Joe Hertz <[EMAIL PROTECTED]> wrote: > Jolly, you answered it yourself: > > "I dont want to write another actionForm class that represent my DTO...I am > in great trouble." > > I do feel your pain though. It seems on many levels, just plain silly to > have > to declare objects almost but n

Re: integer validation problem

2004-04-05 Thread Craig R. McClanahan
Joe Hertz wrote: [snip] Wouldn't it be more useful to have the form object do the type conversion? Have a way to tell it the "JSP type" (99% String) and the "application type". Make the form objects smart enough to give you a properly typed result, much in the same way Hibernate's Session.load(

Re: integer validation problem

2004-04-05 Thread Adam Hardy
and I find myself sighing "for the good old days" every time I find myself fighting with BeanUtils.copyProperties. -Joe -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Sunday, April 04, 2004 6:05 AM To: Struts Users Mailing List Subject: Re: integer validation

Re: integer validation problem

2004-04-05 Thread Joe Hertz
roperties. -Joe > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 04, 2004 6:05 AM > To: Struts Users Mailing List > Subject: Re: integer validation problem > > > A lofty goal, Joe! What are you using on the back-end to > connect

Re: integer validation problem

2004-04-04 Thread Adam Hardy
ave to write a getter or setter in a form bean ever again. Hope this helps -Joe -Original Message- From: jolly [mailto:[EMAIL PROTECTED] Sent: Saturday, April 03, 2004 11:12 PM To: Struts Users Mailing List Subject: Re: integer validation problem Dear Richard Thanks for your reply.

Re: integer validation problem

2004-04-04 Thread Joe Hertz
. Hope this helps -Joe > -Original Message- > From: jolly [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 03, 2004 11:12 PM > To: Struts Users Mailing List > Subject: Re: integer validation problem > > > Dear Richard > Thanks for your reply. But I dont want

Re: integer validation problem

2004-04-03 Thread jolly
Dear Richard Thanks for your reply. But I dont want to declare this type of variable as String. I want to use the DTO as form bean property. For this it is not validated by validator. so I have to make my DTO dirtty that is I have to declare another attribute for all variables that are not Strin

Re: integer validation problem

2004-04-03 Thread Richard Yee
Jolly, If you had checked the archives, you would have found your answer immediately since this topic has come up several times in the past two weeks. Anyway, declare your firstCategoryAmount and incrementDTO attributes as Strings instead of int and double. -Richard At 10:57 PM 4/2/2004, you w

integer validation problem

2004-04-02 Thread jolly
Hi please help me. My form-bean declaration is like this and PayScaleDTO has incrementDTO as its attribute. I define my jsp as: basicPay and firstCategoryAmount are defined as integer or double. But this fields are not validated if i enter text and saved zero to database. I