Two Laptop Bag
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 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?
I agree. Here's the link:
subject: Readonly attribute for dateTimePicker
It's not a secret anymore!