File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html-el:checkbox readonly?" Watch "html-el:checkbox readonly?" New topic

html-el:checkbox readonly?

Alex Pol
Ranch Hand

Joined: Sep 29, 2006
Posts: 33

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

Ankit Garg

Joined: Aug 03, 2008
Posts: 9466

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
I agree. Here's the link:
subject: html-el:checkbox readonly?
It's not a secret anymore!