• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pagination using datatable of jsf

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic