This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Readonly Checkbox
 
jQuery in Action, 3rd edition