I want to use Collections.sort() on a List<MyClass>. To do this, I have implemented Comparable<MyClass> in MyClass.
However, I need to access the database within the compareTo-method
When I run this, I get "No source code is available for type Database. This is because Database is a server-side class while MyClass is in the shared folder.
Is it possible to move the compareTo-code to server-side somehow and still use Collections.sort?
If not, how would you solve this?
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.