• Post Reply Bookmark Topic Watch Topic
  • New Topic

Datatable pagination

 
Anirban Mandal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a large number of data rows which I am displaying in a datatable.But i have to dispaly only the first 15 rows and then the other rows will be displayed on click of the page number.Basically I need to implement client side pagination in datatable.Any ideas ??
 
Max Moore
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, there is a tomahawk component to do this, the name is "data scroller" (http://myfaces.apache.org/tomahawk/dataScroller.html). In my case, I built my own data scroller because I'm using hibernate pagination and It works a bit different as the original data scroller (the collection is not in memory all time).
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a number of JSF component libraries out there that have a component for pagination, like the poster before said Tomahawk has one, RichFaces has one, etc.

Mark
 
Suresh Gopalakrishnan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Max Moore,

Could you please ellaborate on your custom DataScorller implementation ?
I need to display large amount of data using datatable. So I am planning to use the server side pagination.
It looks like I need to customize the DataScroller available from the tomahawk. So If you can give me some details on your custom implementation that would be great... Thanks in advance.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!