This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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: 2846

"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!