2 Replies Latest reply on Sep 15, 2009 7:30 PM by YY Tsoi

    RichFace DataTable sort (get back to page 1 after sorting on

    YY Tsoi Newbie


      I am using the following codes in my JSFX with a <rich:dataTable> and a <rich:column> that can be sorted.

      <rich:dataTable value="#{searchResults}" var="qItem" rows="5">
      <rich:column sortBy="#{qItem.qName}">


      The default behavior of the sort is that if the user is on page 3 and clicks on the sort, it stays in page 3 instead of going to page 1.

      I wonder whether there is any way to change this behavior to make it go back to page 1 after a sort.