This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataTable pagination Issue : DataTable pagination issue: when reloaded, pagination doesnt return to

 
vamsi kantamneni
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement where i include the ui:composition which contains a DataTable into an XHTML page. everytime i click on the hiperlink in XHTML page, ui:composition which contains the datatable is displayed.

I am able to display all details in the DataTable, edit and navigate using the pagination. But the issue here is when i navigate to lets say 5th page, and click on the hiperlink in xhtml page to display (or think as refresh), the Data is loaded from the database, but DataTable pagination still stays on the 5th page.I need it show from the 1st page . please help me out from this issue..
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18218
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paginated table displays are not a feature of the core JSF tag set. So presumably you are using an extended tag set such as RichFaces, IceFaces, or PrimeFaces.

Exact details vary, depending on which extended tag set you use, but there should be a "page number" property that assists the pagination. You'll need to reset it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic