Hi,

I tried but did not succeed so maybe someone can help. Using GWT RPC
for CRUD using serializable objects requires at least one or four
methods per entity. If one method is used I can create a wrapper
object like:

public OrderAction {
   private String action; // get, create, update, delete
   private List<Order> list;

   // constructor, getters and setters
}

Or I can create four methods by defining a method for each of the CRUD
actions. However, as the application will grow and I want the keep the
RPC interface simple I am trying to do something like this.

public CrudAction<T> {
   private String action; // get, create, update, delete
   private List<T> entities;
   private Class<T> type;

   // constructor, getters and setters
}

and the RPC interface is defined as
public String doSomething(CrudAction<T> action);

but I the only thing I get is
[ERROR] Type 'my.package.gwt.serializable.GenericRequest' was not
serializable and has no concrete serializable subtypes.

Is this possible to serialize a generic class like this?




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