users@woodstock.java.net

Re: Paginate large table with webuijsf:table

From: liquidshadow <lorerido_at_tin.it>
Date: Tue, 13 May 2008 06:13:05 -0700 (PDT)

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).
>

-- 
View this message in context: http://www.nabble.com/Paginate-large-table-with-webuijsf%3Atable-tp14970571p17208110.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.