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
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Readonly attribute for dateTimePicker