File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Readonly attribute for dateTimePicker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Readonly attribute for dateTimePicker" Watch "Readonly attribute for dateTimePicker" New topic
Author

Readonly attribute for dateTimePicker

Sergio Rossini
Greenhorn

Joined: May 20, 2009
Posts: 6
I'm using Struts 2.1.6 and datetimepicker tag.
Everything is fine, but I need to set the attribute readOnly for the input for date.
The tag datetimepicker does not have this attribute and I am not getting the input because it is load through ajax method of dojo.
The code

turns into

The attributes onkeypress or onfocus at datetimepicker could help with some javascript but they gone in final html.
I've searched for the web but I can't find anything conclusive.
Anyone for help?
 
jQuery in Action, 2nd edition
 
subject: Readonly attribute for dateTimePicker
 
Similar Threads
dateTimePicker w/o field value shows NAN on the Calendar
Dojo datetimepicker issue in Struts2.2.3.1
[Struts 2.1.8] datetimepicker and action: String or Date ??
datetimepicker in struts2
Struts 2: datetimepicker tag