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

    a:outputPanel within a:repeat strange behaviour

    Gena Newbie

      i'm using following construct:

      <a:region renderRegionOnly="true">
      <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">

      and somepage.xhtml:

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

      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