Meaningless Drivel is fun!
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "CellTable sorting : sorting several columns ?" Watch "CellTable sorting : sorting several columns ?" New topic

CellTable sorting : sorting several columns ?

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

I am using GWT 2.2 and the new CellTable sorting features, as described here :

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 ?

Here is the code :

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
I agree. Here's the link:
subject: CellTable sorting : sorting several columns ?
It's not a secret anymore!