In one of the xhtml page I have the following which is suppose to make all everything in entity2.active active or inactive
<h:selectBooleanCheckbox value="#{entity1.activeAll}" />
In second xhtml page I have the following where I want to be able make each individual inactive if needed
<rich:dataTable>
....
<rich:column>
<f:facet name="header">
<h:outputText value="Header"/>
</f:facet>
<h:selectBooleanCheckbox value="#{entity2.active}" />
</rich:column>
....
</rich:dataTable>I am able to make the entity1.activeAll make everything active or inactive but when I go to the second page and try to make one particular item inactive it doesn't work.
I have setter and getters for both of the activeAll and active. In the setActive method I make it call the getActiveAll of the entity1 and set that as a value. This way the half of the solution was reached.
There must be a better way of doing this.
I am sorry for not being able to explain the problem clearly. Any idea would be very helpful.