Sorting CellTable data server-side

369 views
Skip to first unread message

fabio.bozzo

unread,
Sep 1, 2011, 11:08:49 AM9/1/11
to Google Web Toolkit
I'm currently using a Gwt CellTable, bound to my GAE/Objectify backend
via RPC calls.

All right now! :-)

Then I want to sort columns, so I read
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiCellTable.html#columnSorting

The Async Remote sorting sections shows very well how to get sorting
into my AsyncDataProvider but... how can I retrieve the name of the
column the user wants to sort?

It shows this code: ColumnSortList sortList =
table.getColumnSortList();

But how can I get String names from that? I simply want to know
"surname" or "soldDate", the name of the field the column is bound
to!
Then I will pass it to my rpc service, and use it to sort data server-
side query(...).order(<field_name>)

Am I missing something?

Thomas Broyer

unread,
Sep 1, 2011, 11:39:15 AM9/1/11
to google-we...@googlegroups.com
That's probably the reason behind this recent change: http://code.google.com/p/google-web-toolkit/source/detail?r=10487

fabio.bozzo

unread,
Sep 2, 2011, 3:24:18 AM9/2/11
to Google Web Toolkit
So.. do I have to update my gwt sdk version?

Jeff Larsen

unread,
Sep 2, 2011, 10:09:44 AM9/2/11
to google-we...@googlegroups.com
In the meantime you could create a map with the Column and with the database name. 
Reply all
Reply to author
Forward
0 new messages