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 2.1.1 > Tiles 2.0.5 > > Code > added > <sx:head /> > and > <sx:datetimepicker name="endDate" displayFormat="dd.MM.yyyy"/> > > 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://issues.apache.org/struts/browse/WW-1997) and probably this is > known > issue. > > Questions > Could some tell me, when this will be fixed? > If not, do you know any work around for example there would be no value if > input is invalid? > > Example > my input > http://www.nabble.com/file/p16981446/input_DTPicker.png > > my result > http://www.nabble.com/file/p16981446/value_DTPicker.png > > -- > View this message in context: > http://www.nabble.com/Struts2%2C-DateTimePicker-gives-1970-tp16981446p16981446.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com