Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to achieve dynamic or online pagination

 
umasankar puranam
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"umasankar" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
 
Kumaresh Vidhyasagar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible to do. you need to have the separate helper class to do this.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Displaytag for Pagenation,

http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
 
Rajneesh Kumar Rajput
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic