This content has been marked as final.
Show 1 reply
-
1. Re: how to use h:selectBooleanCheckbox
kragoth Feb 20, 2011 6:38 PM (in response to wadhah)Read the doco before posting.
Just like almost all other components the value attribute should map to a VALUE not a component.
@Stateless @Name("myBean") public class MyClassBean implements MyClass { @Logger private Log log; @In StatusMessages statusMessages; @PersistenceContext private EntityManager entityManager; private Boolean checkBoxValue = Boolean.TRUE; public Boolean getCheckBoxValue() { return this.checkBoxValue; } public void setCheckBoxValue(Boolean value) { this.checkBoxValue = value; } }
<h:selectBooleanCheckbox value="#{myBean.checkBoxValue}" />