aspose file tools*
The moose likes JSF and the fly likes DataTable pagination Issue : DataTable pagination issue: when reloaded, pagination doesnt return to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "DataTable pagination Issue : DataTable pagination issue: when reloaded, pagination doesnt return to " Watch "DataTable pagination Issue : DataTable pagination issue: when reloaded, pagination doesnt return to " New topic
Author

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

vamsi kantamneni
Greenhorn

Joined: Mar 14, 2013
Posts: 6
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

Joined: Jun 25, 2001
Posts: 15641
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataTable pagination Issue : DataTable pagination issue: when reloaded, pagination doesnt return to
 
Similar Threads
updating value in bean 2 from bean 1
JSP taglib Paggination
How to highlight a selected tab(link) implemented by <h:commandLink> inside <rich:toolBar>?
data table- row selection
jQuery Datatable pagination help