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 html-el:checkbox readonly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html-el:checkbox readonly?" Watch "html-el:checkbox readonly?" New topic
Author

html-el:checkbox readonly?

Alex Pol
Ranch Hand

Joined: Sep 29, 2006
Posts: 33
Hi,

How can i make a html-el:checkbox readonly? I cannot make it "disabled" because like this it's not read from the form.

Thanks.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

What is this html-el:checkbox tag?? Are you using any special tag library?? Anyways, there are a lot of ways of doing this. You can actually disable the checkbox and just before the form is submitted, you can enable it again. Something like this


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
Don't get me started about those stupid light bulbs.
 
subject: html-el:checkbox readonly?