Hi Siru,gregor,
The classes which are transferred via RPC in the CrudAction are
serializable by themselves (I have tested this). The javascript
generator can determine which types will be serialized as in the code
using the CrudAction the type will be defined, as CrudAction<Order>. I
just read the links gregor included in his reply, thanks for this. I
probably need to read the again before the make full sense, but they
have some good info.

Before reading those replies I have made some modifications which seem
to work. Now the CrudAction looks like this

public class CrudAction<T extends GwtBean> implements Serializable {
  private String className;
  private List<T> objects;
  private String action;
  // constructor, getter and setters
}

The compiler did warn on the declaration of generic <T>, as this
basically says <T extends Object>. The warning is "[WARN] In order to
produce smaller client-side code, 'Object' is not allowed; consider
using a more specific type". By making a base class GwtBean (nothing
declared in it except implementing Serializable) and force to extend
this class this warnig seems to be solved. And also the Class<?>
declaration had to be removed, because including this gives the error
"[ERROR] Type 'com.greencat.gxt12.gwt.serializable.GenericRequest' was
not serializable and has no concrete serializable subtypes"


Chris


--~--~---------~--~----~------------~-------~--~----~
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