• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pagination using datatable of jsf

 
prasad kakani
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic