Hi Chris,
I think you would be able to serialize the generic class (which itself
should implement Serializable and maybe that's why the error?) but
also to keep in mind that the class types that you're expecting pass
across should also be Serializable otherwise you'd run into a run time
error. Try that and see how it goes. I'm a learner myself :)

Suri

On Dec 8, 10:15 am, chris_wesdorp <[EMAIL PROTECTED]> wrote:
> 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