You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Volker Weber <us...@weber-oldenburg.de> on 2006/05/03 09:42:47 UTC
Re: Sorting data table problem
Hi,
Meghana wrote:
>
> Collections.sort(dataModel.getRowData(), comparator);
You can't sort a single row, this is what dataModel.getRowData() returns.
Try somthing like
Collections.sort((List)dataModel.getWrappedData(), comparator);
Regards,
Volker
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.
Re: Sorting data table problem
Posted by Meghana <sy...@yahoo.com>.
Thanks for the reply Volker!
I was able to get rid of that error. But when I click on a column name it doesnt do anything. The javascript console shows the following:
Error: clear_joblistForm is not defined
Source File: http://localhost:8080/faces/jobs.jsp
Line: 1
Another thing is I am using Tomahawk libraries with JSF RI and not MyFaces. Is that a problem?
Thanks
-M
Volker Weber <us...@weber-oldenburg.de> wrote: Hi,
Meghana wrote:
>
> Collections.sort(dataModel.getRowData(), comparator);
You can't sort a single row, this is what dataModel.getRowData() returns.
Try somthing like
Collections.sort((List)dataModel.getWrappedData(), comparator);
Regards,
Volker
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.
---------------------------------
Blab-away for as little as 1ยข/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.