This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes how to achieve dynamic or online pagination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to achieve dynamic or online pagination" Watch "how to achieve dynamic or online pagination" New topic
Author

how to achieve dynamic or online pagination

umasankar puranam
Ranch Hand

Joined: Sep 24, 2004
Posts: 31
Please let me know if on-line pagination is possible in table component with JSF, or

WOODSTOCK.

e.g., If there are 20 records and 5 records is the page size, then initially first 5 records

needs to be fetching from DB, and only upon clicking next the next five i.e 6-10 records

should be retrieved from the database.

Thanks in advance


umasankar<br />Software Engineer
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

"umasankar" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
Kumaresh Vidhyasagar
Ranch Hand

Joined: Dec 05, 2008
Posts: 30
It is possible to do. you need to have the separate helper class to do this.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Although not Woodstock-specific, but you may find a lot of useful ideas and hints here: http://balusc.blogspot.com/2008/10/effective-datatable-paging-and-sorting.html
Srinivasa Murari
Greenhorn

Joined: Jul 27, 2009
Posts: 2
Use Displaytag for Pagenation,

http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
Rajneesh Kumar Rajput
Ranch Hand

Joined: Feb 25, 2009
Posts: 39
If I say simply, every tables has two attributes i.e. first and rows.

Now, only results which needed can be picked by the query. You just need to set value for first (starting record) and rows (no. of records) by some control designed in look and feel of a scroller.

 
jQuery in Action, 2nd edition
 
subject: how to achieve dynamic or online pagination
 
Similar Threads
Pagination
Pagination
regarding pagination
pagination in jsp
pagination in jsp