File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Sorting data table problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Sorting data table problem" Watch "Sorting data table problem" New topic

Sorting data table problem

Hemanth Pillai

Joined: Dec 14, 2005
Posts: 3
I am trying to add sort functionality to the datatable to display a list of employees. And the results are in an object of ResultDataModel. When I am trying to sort using Collections.sort(dataModel.getRowData(), comparator); the compiler throws an error saying sort function is not available. Can any one please guide me in getting rid of the error. Appreciate any help.

Please find the code below.

I agree. Here's the link:
subject: Sorting data table problem
It's not a secret anymore!