1 Reply Latest reply on Dec 1, 2007 2:02 PM by sergeysmirnov

    a:outputPanel within a:repeat strange behaviour

    gena777

      Hello,
      i'm using following construct:

      <a:region renderRegionOnly="true">
       <h:form>
      <a:commandLink value="Select All" action="#{someBean.selectAll}"/>
      <a:commandLink value="Deselect All" action="#{someBean.deselectAll}"/>
      <a:repeat ... var="var">
       <ui:include src="somepage.xhtml">
      </a:repeat>
       </h:form>
      </a:region>
      


      and somepage.xhtml:

      <a:outputPanel ajaxRendered="true">
       <h:selectBooleanCheckbox value="#{var.selected}"/>
      </a:outputPanel>
      


      I wish, all checkboxes are rerendered automatically after the command ling above is clicked. But the behaviour is, after first click on the link, the most bottom checkbox is rerendered. Then the second and so on up to all checkboxes of the table are selected. Then, i can deselect and select all checkboxes at once.

      If i refresh the page with F5 after first rendering, then the click on "Select all" selects all checkboxes at once, what i expect without F5.

      I need some hint.

      Thank you , Gena