Meaningless Drivel is fun!*
The moose likes Struts and the fly likes clear date with datetimepicker struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "clear date with datetimepicker struts 2" Watch "clear date with datetimepicker struts 2" New topic
Author

clear date with datetimepicker struts 2

Cesar Coz
Ranch Hand

Joined: Aug 19, 2010
Posts: 32
does anyone knows how to clear the textfield of the datetimepicker tag on struts 2 ?

im trying with this:


its not working

and with this:


but does not work either

can anyone help me ?

Cesar Coz.
Anbarasu Aladiyan
Ranch Hand

Joined: Jun 02, 2009
Posts: 182

Value you are setting must be parsable as date object.


A.A.Anbarasu
Cesar Coz
Ranch Hand

Joined: Aug 19, 2010
Posts: 32
oh i see...

well if i cant set the value to null or empty maybe there is a way to clean the field.. anyone?
Anbarasu Aladiyan
Ranch Hand

Joined: Jun 02, 2009
Posts: 182

Try it.
I guess it would have the value as January 1, 1970 00:00:00.000 GMT.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: clear date with datetimepicker struts 2