aspose file tools*
The moose likes JSF and the fly likes Pagination using datatable of jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Pagination using datatable of jsf" Watch "Pagination using datatable of jsf" New topic
Author

Pagination using datatable of jsf

prasad kakani
Ranch Hand

Joined: Jul 15, 2008
Posts: 59
Hi All,

How we can do the pagination in jsf?

As per my technology stack, i can go for only core jsf components..? Can any one suggest how this can be done, using h:dataTable or ui:repeat?


The pagination should be like links 1 2 3 4 5 6

Thanks
Venkat
prasad kakani
Ranch Hand

Joined: Jul 15, 2008
Posts: 59
Hi All,

I have developped a simple data table with pagination. But it is not working as expected. Could not figure out the problem.

Code for this complete pagination.

Test.xhtml
------------

ExampleBean.java
----------------------


MyData.java
--------------


PaginationBean.java
-------------------------


Getting the output like this:
ID NAMe
1 AA
2 BB

1 2 3 4 (all links) . when i click second or third page, table is not getting altered. for all pages the table is showing only first 2 rows always.

Could you please help me out..?
help would be greatly appriciated
Thanks
prasad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pagination using datatable of jsf