File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Paging and Sorting in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Paging and Sorting in JSF" Watch "Paging and Sorting in JSF" New topic
Author

Paging and Sorting in JSF

KRK Gowda
Ranch Hand

Joined: Nov 02, 2004
Posts: 132
Hi All,
I am newbie to JSF, and i am working on client framework for JSF. I am stuck up with paging and sorting in my application.
I tried to search for paging and sorting in JSF, but all samples are using DataModel.
But, the framework i am using do not support DataModel.
Can anybody tell me how to implement paging and sorting without using DataModel ?

Thanks and Regards,
- Gowda
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15657
    
  15

javax.faces.model.DataModel is a core part of JSF, so if you're really using JSF, DataModel and the datatable tags that use it are supported.

The core JSF datatable doesn't support paging and sorting, however. There are extended versions of dataTable that do, such as the ones in the MyFaces Tomahawk project. Tomahawk is an extra jar that you add to your JSF project in order to use the extended functions.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Paging and Sorting in JSF
 
Similar Threads
Using DisplayTag with JSF
Can we create a custom component by extending rich:dataTable?
[JSF 2] Update the total of a column from a dataTable
Spring and JSF together with EJB
Displaying 2D array using data tables