This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes Retaining checked value in selectBooleanCheckbox on enabling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Retaining checked value in selectBooleanCheckbox on enabling" Watch "Retaining checked value in selectBooleanCheckbox on enabling" New topic
Author

Retaining checked value in selectBooleanCheckbox on enabling

Jay Kris
Greenhorn

Joined: Dec 15, 2010
Posts: 2
Am using the jsf selectBooleanCheckbox in my screen.
When I click on a button say 'Go to Home', a validation message is displayed in the same screen with the checkbox disabled with Cancel, Ok buttons.
When I select Cancel, my page is displayed again with the checkbox enabled.

The issue I am facing is that when I select the checkbox and then click on 'Go to Home' and 'Cancel', the screen is displayed with the checkbox enabled and unchecked.

How do I ensure that the checkbox remains checked.
 
 
subject: Retaining checked value in selectBooleanCheckbox on enabling