This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Readonly attribute for dateTimePicker" Watch "Readonly attribute for dateTimePicker" New topic

Readonly attribute for dateTimePicker

Sergio Rossini

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?
I agree. Here's the link:
subject: Readonly attribute for dateTimePicker
Similar Threads
[Struts 2.1.8] datetimepicker and action: String or Date ??
dateTimePicker w/o field value shows NAN on the Calendar
datetimepicker in struts2
Dojo datetimepicker issue in Struts2.2.3.1
Struts 2: datetimepicker tag