File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to achieve dynamic or online pagination" Watch "how to achieve dynamic or online pagination" New topic

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


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

Joined: Jun 06, 2007
Posts: 2851

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

|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:
Srinivasa Murari

Joined: Jul 27, 2009
Posts: 2
Use Displaytag for Pagenation,
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.

I agree. Here's the link:
subject: how to achieve dynamic or online pagination
It's not a secret anymore!