This content has been marked as final.
Show 1 reply
-
1. Re: Outjecting boolean value for use with h:selectBooleanCheckbox
stephen May 22, 2008 9:37 PM (in response to xena)A value binding (read
the value attribute of a jsf component
) needs a property with a getter and setter like this:@Name("myBean") public class MyBean implements Serializable { private Boolean myFlag; public Boolean getMyFlag() { if(myFlag == null) { // init } return myFlag; } public void setMyFlag(Boolean myFlag) { this.myFlag = myFlag; }
<h:selectBooleanCheckbox value="#{myBean.myFlag}" ...