GeeCON Prague 2014*
The moose likes Struts and the fly likes Readonly Checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Readonly Checkbox" Watch "Readonly Checkbox" New topic
Author

Readonly Checkbox

Sangita Mishra
Greenhorn

Joined: Jun 15, 2005
Posts: 22
Is there a way do disable switching te checkbox on/of and making it grey.

I want to create a grey checked checkbox.

When I use "disabled" in the input tag it doesn't submit the value of the checkbox.
Paul Lester
Ranch Hand

Joined: Dec 27, 2002
Posts: 40
Any html field that is disabled will not be submitted. If you want to display a disabled checkbox _and_ have the value submitted, you'll have use a hidden variable to carry the value.

Regards,

Paul


Where Photography meets vision.<br /><a href="http://www.photogravision.com" target="_blank" rel="nofollow">http://www.photogravision.com</a><br />Please stop by!<br /> <br />SCJP,SCWCD,SCJD,SCEA
 
GeeCON Prague 2014
 
subject: Readonly Checkbox