3 Replies Latest reply on Mar 22, 2011 6:46 AM by Jesper Vrelits

    Uncheck h:selectBooleanCheckbox not working

    Jesper Vrelits Newbie


      I create multiple checkboxes like this:

         <c:forEach items="#{deploymentListController.form.allStates}" var="state" varStatus="status">

                    <h:outputText value="#{deploymentListController.form.states[state]}"/>

                    <h:selectBooleanCheckbox id="stateid#{status.index}"  value="#{deploymentListController.form.states[state]}" />

                    <h:outputText value="#{state.internal}"/>


         <h:commandButton value="#{dps_msgs['clear.all']}" action="#{deploymentListController.form.clearStates}" immediate="true"/>

      When I press 'clearall' I want to turn all to false (unchecked). It workd in the code. The <h:outputText value="#{deploymentListController.form.states[state]}"/> will display false, BUT THE HTML WILL NOT CHANGED. It will still remain unchanged. So it seems the model data is changed but redrawing of html does not happen. It's the same if I use a4j:commandButton.

      What am I missing here?

      Using RF 4 and Mojarra 2.1