2 Replies Latest reply on Sep 27, 2008 3:55 PM by ipazmino

    dataTable paging

    ipazmino

      Hi,

      I´m using a dataTable defined like this

      <rich:dataTable value="#{inboxMessages}" var="inboxMsg" rows="5">


      So, even when the list inboxMessages has 7 messages, only 5 are displayed which is the desired behavior, BUT, there are not paging controls. How can I add paging to the table so that I can get to see the next two rows that where not displayed?

      Thanks in advance.

        • 1. Re: dataTable paging
          fernando_jmt

          Use a datascroller.

          <rich:dataTable id="myTable" value="#{inboxMessages}" var="inboxMsg" rows="5">...</rich:dataTable>
          
          <rich:datascroller for="myTable" />
          
          


          HTH.

          • 2. Re: dataTable paging
            ipazmino

            Hi, thanks for your help.

            Just something to mention is that for <rich:datascroller for="myTable" /> it needs to be inside a form or an exception will thrown.