1 Reply Latest reply on Oct 12, 2007 7:37 AM by maksimkaszynski

    rich:scrollableDataTable - WorkingWithLargeTables

    dkumaran

      Hi,

      I am trying to use the <rich:scrollableDataTable> in my application..
      If i have thousands of record in the database then i have to fetch everything in one shot which leads to performance issue.

      Can I fetch the limited data on each scroll.
      We done this in Tomahawk Datatable with reference.
      http://wiki.apache.org/myfaces/WorkingWithLargeTables

      Is there anything like this in <rich:scrollableDataTable>


      Thanks in Advance.

        • 1. Re: rich:scrollableDataTable - WorkingWithLargeTables
          maksimkaszynski

          Yep. To work with scrollableDataTable efficiently, you should implement org.richfaces.model.ScrollableTableDataModel interface.
          There you need to define getRowCount method, and loadData method.
          LoadData method is used to load row data for specified range of rows. It also makes use of sorting, so you can define some ordering to your query here.