1 Reply Latest reply on Oct 16, 2007 10:02 AM by Ilya Shaikovsky

    checkbox in a scrollableDataTable

    Blondel Michaël Newbie

      I would like to display a list with a scrollableDataTable.
      I want to have a chechbox for each row and a checkbox "selectAll".
      The problem is when i click the checkbox "selectAll", the reRender of the scrollableDataTable doesn't work. I loose the header of the column
      Anyone has an explanation ?

      <h:form id="dataForm">
       <a4j:outputPanel id="agentPanel">
       <rich:scrollableDataTable id="dataList" rowKeyVar="rkv" rows="4" columnClasses="col"
       value="#{testBean.dataList}" height="200px"
       width="600px" var="data" >
       <rich:column id="check" sortable="false">
       <f:facet name="header"><h:outputText styleClass="headerText" value="" /></f:facet>
       <h:selectBooleanCheckbox value="#{data.apply}" />
       <rich:column id="type">
       <f:facet name="header"><h:outputText styleClass="headerText" value="text" /></f:facet>
       <h:outputText value="#{data.text}" />
       <rich:spacer height="30" />
       <!----- SELECT ALL------------>
       <h:selectBooleanCheckbox value="#{testBean.selectAll}">
       <a4j:support event="onchange" reRender="agentPanel" />