Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
how to disable if one or more check boxes selected
selectBooleanCheckbox - How do I know which checkbox am I selecting?
getting selected row in datatable
SelectBooleanCheckBox not passing value properly
how to come back the previous screen