Struts2, DateTimePicker gives 1970

2008-04-30 Thread Inkwon Hwang
Environment Java5 Jboss 4.0.5 and WAS 6.1 Express Struts 2.1.1 Tiles 2.0.5 Code added and Issue When I insert not-valid date value (i.e. "aaa") and set focus to other textfield, I get "01.01.1970" to the textfield. I have read about DateTimePicker issues from Struts2 issue tracker Jira (https

Re: Struts2, DateTimePicker gives 1970

2008-04-30 Thread Jim Kiley
What would be the desired behavior when a non-date value is entered? 1/1/1970 corresponds to a 'zero' value for dates. This seems like a sensible response. On Wed, Apr 30, 2008 at 8:36 AM, Inkwon Hwang <[EMAIL PROTECTED]> wrote: > > Environment > Java5 > Jboss 4.0.5 and WAS 6.1 Express > Struts

Re: Struts2, DateTimePicker gives 1970

2008-04-30 Thread Inkwon Hwang
Hi Jim, Thanx for your reply. Desired options could be: 1. leave entered value -> validation is done on server side 2. remove entered value -> validation is done on server side It seems weird that suddenly the field has value "01.01.1970" eventhough it makes sense for developers but it doesn't f