Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

clear date with datetimepicker struts 2

 
Cesar Coz
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Anbarasu Aladiyan
Ranch Hand
Posts: 182
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Value you are setting must be parsable as date object.
 
Cesar Coz
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try it.
I guess it would have the value as January 1, 1970 00:00:00.000 GMT.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic