Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Paging and Sorting in JSF

 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic