0 Replies Latest reply on May 20, 2008 5:26 AM by Pierre De Paepe

    rich:datascroller and sorting/filtering

    Pierre De Paepe Newbie

      Hello,

      I would like to know how to be sure that both are correctly binded.

      This use cases works:

      - sort a column
      - go to page X (ordering is kept).

      This use case doesn't work:

      - sort a column
      - go to page X (ordering is kept).
      - sort an other column (it does reRender nothing).

      My code:

       <a:region>
       <h:form>
       <rich:datascroller for="activeShortBookings" maxPages="10"/>
       <rich:dataTable
       value="#{bookingList}"
       var="booking"
       id="activeShortBookings"
       rows="5">
       <rich:column styleClass="thid" sortBy="#{booking.bookingId}">
       <f:facet name="header">
       <h:outputText value="#{messages.Id}" />
       </f:facet>
       <h:outputText value="#{booking.bookingId}" />
       </rich:column>
       <rich:column sortBy="#{booking.user.username}">
       <f:facet name="header">
       <h:outputText value="#{messages.Owner}"/>
       </f:facet>
       <h:outputText value="#{booking.user.username}" />
       </rich:column>
      

      etc & closing tags.

      Thank you