visv / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

SortSpecifier, AdvancedCriteria not Serializable (except via JSON) #401

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It's not possible to pass SortSpecifier class through GWT-RPC.

If you try to do this, a error occurs during compilation:

[ERROR] [Exif] com.smartgwt.client.data.SortSpecifier is not default 
instantiable (it must have a zero-argument constructor or no constructors at 
all) and has no custom serializer. (reached via 
com.smartgwt.client.data.SortSpecifier[])

More details: http://forums.smartclient.com/showthread.php?t=9033

Original issue reported on code.google.com by Maciej.Oledzki@gmail.com on 6 Feb 2010 at 1:11

GoogleCodeExporter commented 9 years ago
Also make com.smartgwt.client.data.AdvancedCriteria, Criteria Serializable.

Original comment by sanjiv.j...@gmail.com on 15 Feb 2010 at 8:35

GoogleCodeExporter commented 9 years ago
http://forums.smartclient.com/showthread.php?p=38231

Original comment by sanjiv.j...@gmail.com on 15 Feb 2010 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by sanjiv.j...@gmail.com on 26 Feb 2010 at 1:22

GoogleCodeExporter commented 9 years ago
Note that you can grab and serialize the JavaScriptObject available from 
SortSpecifier or Criteria/AdvancedCriteria via getJSObj().  You can also use 
JSONEncoder to encode as JSON.

Original comment by smartgwt...@gmail.com on 18 Apr 2012 at 12:37

GoogleCodeExporter commented 9 years ago

Original comment by smartgwt...@gmail.com on 18 Apr 2012 at 1:11