1 Reply Latest reply on Apr 25, 2007 4:38 AM by ed bras

    selectManyCheckBox not work in a4j:repeater

    ed bras Newbie

      Hellu,

      I am having the same kind of functionality as the a4j repeater example whereby you can collapse and expand items.
      When I expand an item I can change it through a form.
      I now have the problem that the selectManyCheckBox doesn't work in the repeater, that's is: it always takes the value of the last item in the list :(...
      I confirmed that by putting an outputText line just above the selectManyCheckbox to make sure we are working on the correct selected item. The outputText shows the correct expected value, only not the checkbox selection.
      Also the upper part (hasNoAuthorizationSelection) in the code below works fine, and it works on the same selection that is used by the selectManyCheckBox in the backing bean.

      See below the partial xhtml code.
      Please some advice on how to solve this?

       <t:panelGrid columns="1" styleClass="wizardListFocusTable"
       rendered="#{wizard.memberSelected.hasNoAuthorizationSelection and not wizard.start}">
       <h:outputText value="This user has no authorizations yet." />
       </t:panelGrid>
      
      
       <h:outputText value="#{wizard.memberSelected.bla}" />
      
       <t:panelGrid columns="2" styleClass="wizardListFocusTable"
       displayValueOnly="#{not wizard.start}">
       <t:selectManyCheckbox layout="pageDirection"
       displayValueOnly="#{not wizard.start}" styleClass="checkboxSelection"
       value="#{wizard.memberSelected.authorizationsStaticsSelected}">
       <f:selectItems
       value="#{wizard.memberSelected.authorizationsStaticsAll}" />
       </t:selectManyCheckbox>
       </t:panelGrid>