wood burning stoves 2.0*
The moose likes GWT and the fly likes CellTable sorting : sorting several columns ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "CellTable sorting : sorting several columns ?" Watch "CellTable sorting : sorting several columns ?" New topic
Author

CellTable sorting : sorting several columns ?

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

Hi,
I am using GWT 2.2 and the new CellTable sorting features, as described here :
http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideUiCellTable.html

There is a strange error (Umbrella exception, nothing else) when I use the columnSortHandler.setComparator(...) method.
I commented it out.

If i use the addColumnSortHandler(new ColumnSortEvent.Handler() { ...} method, it works.

However on one column only. I want to be able to sort the table, on whichever column i click on.

So i'm stuck :
either i figure out what's wrong with the setComparator(..) method
or i use the addColumnSortHandler(...) and in that case i need to figure out how to retrieve the name of the column
that is currently sorted.
Does anyone know what could be wrong ?
Thanks

Here is the code :


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CellTable sorting : sorting several columns ?
 
Similar Threads
generic comparator problem
Cell Widget Table in GWT 2.1.0 with expanded/collapsed rows
CellTable and Pager: shows all data instead of limited number of items per page
Doubt in collection Framework
how to convert flextable cell into editable textcell