Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes Having Problems with Data Table and Pager component in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Having Problems with Data Table and Pager component in JSF" Watch "Having Problems with Data Table and Pager component in JSF" New topic
Author

Having Problems with Data Table and Pager component in JSF

Naga Siva
Greenhorn

Joined: Mar 30, 2006
Posts: 1
I have JSF Page where I am displaying results in a data table and set page size to 10 to display 10 records per page.I am using Pager component provided by core jsf examples (Page Renderer).

It is working fine if the number of results are multiples of 10.But if number of results are 11 then it is showing correct number of pages i.e 2 and displaying 10 records in the firstpage but when I click on 2nd page it is again showing 10 records instead of 11th record.

Is this problem with Data Table or with Pager?Please let me know is there anyway to solve this issue....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Having Problems with Data Table and Pager component in JSF
 
Similar Threads
component for pager function
Reinitializing paged table to show first page
a way to display those page numbers shown under this list???
retrieving thousand of rows from DB2 database
Converting an ArrayList to Json Object