Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Struts
clear date with datetimepicker struts 2
Cesar Coz
Ranch Hand
Posts: 32
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
does anyone knows how to clear the textfield of the datetimepicker tag on
struts
2 ?
im trying with this:
var fechaOperacion = dojo.widget.byId("fechaOperacion"); fechaOperacion.setValue('');
its not working
and with this:
<s:datetimepicker name="fechaOperacion" displayWeeks="4" displayFormat= "MM-dd-yyyy"/> var ud = getField('form', 'fechaOperacion'); ud.value = "";
but does not work either
can anyone help me ?
Cesar Coz.
Anbarasu Aladiyan
Ranch Hand
Posts: 182
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Value you are setting must be parsable as date object.
Anbarasu Aladiyan
Cesar Coz
Ranch Hand
Posts: 32
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
oh i see...
well if i cant set the value to null or empty maybe there is a way to clean the field.. anyone?
Cesar Coz.
Anbarasu Aladiyan
Ranch Hand
Posts: 182
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Try it.
I guess it would have the value as January 1, 1970 00:00:00.000 GMT.
Anbarasu Aladiyan
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Readonly attribute for dateTimePicker
customizing datetimepicker
Struts 2 - DateTimePicker
Struts 2: datetimepicker tag
datetimepicker + Struts2 + Ajax
More...