I need to create a large table so I used a class derived from ObjectListDataProvider as suggested, adding the getRowCount() method to obtain the correct number of rows. Is it possible to override the paging controls without creating a new facet?
bbergquist wrote:
What you can do is provide your own TableDataProvider. I use a class
derived from ObjectListDataProvider and fetch a page of records at a
time from the database, build the list and render. For paging, I use
the table footer facet and add my own paging controls that look like the
ones provided by the table. When fetching the records for the page, I
fetch an extra record to determine if there is another page so that I
can properly enable/disable the paging controls (next, last, previous,
first).