3 Replies Latest reply on Mar 24, 2011 4:58 AM by Ilya Shaikovsky

    extendableDataTable problem

    Guy Rambour Newbie

      Richfaces 4.0.0CR1

      Tomcat 7

       

      I have a extendableDataTable with sorting, selection and pageable.

      Everything works but when I pick a record, change the page, I can't do a selection anymore (won't enter the method #{tokenBean.selectionListener}).

      Is there a bug or am I doing something wrong?

       

      I use a viewscoped bean...

       

      <rich:extendedDataTable id="table"

           value="#{tokenBean.items}"

           var="i"

           selection="#{tokenBean.selection}"

           selectionMode="#{tokenBean.selectionMode}"

           rows="#{tokenBean.rowsPerPage}"

           rowClasses="odd-row, even-row">

       

           <a4j:ajax execute="@form" event="selectionchange" listener="#{tokenBean.selectionListener}" render=":res"/>

       

           <rich:column id="tokenColumn" sortBy="#{i.token}" sortOrder="#{tokenBean.tokenOrder}">

           <f:facet name="header">

           <a4j:commandLink value="#{resourceBean.headerTokenMessage}" render="table" action="#{tokenBean.sortByToken}" execute="@this"/>

           </f:facet>

           <h:outputText value="#{i.token}"/>

           </rich:column>

       

           <f:facet name="footer">

            <rich:dataScroller id="ds" for="table" maxPages="3"/>

           </f:facet>

      </rich:extendedDataTable>