ISSUE:
Inside af:Table, one of the af:colum contains af:selectBooleanCheckbox
I am trying to load checkbox value based on column value from database,
<af:column sortProperty="statusFlag" sortable="false"
headerText="Status"
width="106">
<af:selectBooleanCheckbox value="#{row.bindings.statusFlag.inputValue == 'Y' ? true : false}"
simple="true" autoSubmit="true"
immediate="true"/>
</af:selectBooleanCheckbox>
</af:column>
so if status="Y" checkbox is selected else not and that part works fine.
But, checkboxes are not editable, means I can not either select/unselect , its not readonly and its not disabled either but its behaving like that.
SOLUTION:
For the selectBooleanCheckbox to be editable, the value attribute must point on a valid l-value, therefore a bean property having both a get and a set. In your example, the value is a r-value only:
#{row.bindings.statusFlag.inputValue == 'Y' ? true : false}
What you need is to set a converter on your selectBooleanCheckbox that will convert 'N' and 'Y' to false and true respectively. You can achieve that with a prety simple converter class that you can then set on your component using <f:converter/>
Reference:
https://forums.oracle.com/forums/thread.jspa?threadID=716149