I understand your solution, but I think it will be nicer if I can get
the sorted Column obejct on the server side, so I can get the sorted
value in the comparator with the Column.getValue(MyBean) method.

So basicly my question is can I somehow get the sorted Column object
on the server?

Peter

On Jul 12, 6:00 pm, peerawat poombua <[email protected]> wrote:
> Actually you can use Collection.sort with the Comparator in the server side
> (if you use Java as your server). I have used it in order to do the
> multi-level sorting because
> Let's see some example of Collection.sort and Comparator here
>
> http://download.oracle.com/javase/tutorial/collections/interfaces/ord...
>
> But the things is you have to create a list in order to collect the order of
> sorting and then you send it to the server.
> For example if I have my function for pulling some data like this
>
> public List fetchData() {
>       // fetch data
>
> }
>
> you just added the criteria as the argument of the function like this
>
> public List fetchData(List sortingCriteria) {
>       // fetch data
>
> }
>
> Hope that my answer can help you.
>
> Your welcome : )
> Peerawat
>
> 2011/7/12 Ambrus Péter <[email protected]>
>
>
>
>
>
>
>
> > Hi,
>
> > I would like to create a CellTable which gets data from the server
> > through RPC. That's good, no problem with it. Then I'd like to add
> > some sorting feature with async sorting on the server. That's why I'd
> > like to push data table's ColumnSortList through RPC to the server.
> > Unfortunately ColumnSortList doesn't implements isSerializable, so I
> > can't send it to the sever.
>
> > How can I send the ColumnSortList information to the server, or how
> > should I implement a sorting method on the server without the
> > ColumnSortList object?
>
> > Thank you,
> > Peter
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to