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
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
Struts
clear date with datetimepicker struts 2
Cesar Coz
Ranch Hand
Posts: 32
posted 11 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 11 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 11 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 11 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
Being a smart alec beats the alternative. This tiny ad knows what I'm talking about:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
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...