RE: textfield with Date object

2010-03-31 Thread Wick, Dan
le this! :-( > > > > I guess I'll write a number of helper methods like you did. > > > >> -Original Message----- > >> From: Greg Lindholm [mailto:greg.lindh...@gmail.com] > >> Sent: Tuesday, March 30, 2010 10:14 AM > >> To: Struts Users Mai

Re: textfield with Date object

2010-03-31 Thread Rene Gielen
equest >> (rendering the form and the current value in the textfield) and the >> second request (processing the submitted form). >> >> - René >> >> Wick, Dan schrieb: >>> I accept your answer, but Struts2 should just handle this! :-( >>> >>

Re: textfield with Date object

2010-03-31 Thread Greg Lindholm
uld just handle this! :-( >> >> I guess I'll write a number of helper methods like you did. >> >>> -Original Message- >>> From: Greg Lindholm [mailto:greg.lindh...@gmail.com] >>> Sent: Tuesday, March 30, 2010 10:14 AM >>> To: Strut

Re: textfield with Date object

2010-03-31 Thread Rene Gielen
rch 30, 2010 10:14 AM >> To: Struts Users Mailing List >> Subject: Re: textfield with Date object >> >> (Seems like I just answered this question... but here it is again this >> time for Dates) >> >> In my experience it's better to define number (and

RE: textfield with Date object

2010-03-31 Thread Wick, Dan
ist > Subject: Re: textfield with Date object > > (Seems like I just answered this question... but here it is again this > time for Dates) > > In my experience it's better to define number (and time) input fields > as String and perform the conversion and validation in your

Re: textfield with Date object

2010-03-30 Thread Greg Lindholm
(Seems like I just answered this question... but here it is again this time for Dates) In my experience it's better to define number (and time) input fields as String and perform the conversion and validation in your action using java.text.NumberFormat (and java.text.DateFormat). This puts you in