aspose 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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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?
Don't get me started about those stupid light bulbs.
subject: Readonly attribute for dateTimePicker