resetting the SelectBoolean checkbox state

I have a checkbox. If I select the checkbox and submit the page, after reloading the page the checkbox is still in a checked state. How do I reset the checkbox.

<h:selectBooleanCheckbox id="select" binding="#{pmManagerUiBean.sel}" />

where sel is a property in managed bean of type UISelectBoolean, having getter and setter

[348 byte] By [sreedevi2006a] at [2007-10-2 20:25:07]
# 1
I assume you were referring to the submit button posting the page back to itself.....If you code the check box to be unchecked on the submit button action, the check box will get unchecked after the page reloadschkBoxVar.setSelected("ValueYouWant");
Abraham_Alex_IceFirea at 2007-7-13 23:08:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
You are missing a value property.Substitute this<h:selectBooleanCheckbox id="select" binding="#{pmManagerUiBean.sel}" />For something like this:<h:selectBooleanCheckbox id="select" binding="#{pmManagerUiBean.sel}" value="#{someBean.property}/>">
pringia at 2007-7-13 23:08:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Ya, it doesn't work that way. I tried resetting the value in the setter method. But still there's no change.public void setSel(UISelectBoolean sel){if(sel.isSelected()){sel.setSelected(false);}}
sreedevi2006a at 2007-7-13 23:08:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I had a similar problem before and I ended up putting the setselected code on the button submit event and it worked for me.
Abraham_Alex_IceFirea at 2007-7-13 23:08:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
What is the scope of your bean?
pringia at 2007-7-13 23:08:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...