GWT and java.io.Serializable

Posted by Ethan Leroy on Stack Overflow See other posts from Stack Overflow or by Ethan Leroy
Published on 2009-08-29T12:20:39Z Indexed on 2010/03/30 23:13 UTC
Read the original article Hit count: 576

Filed under:
|
|

Hello,

In my GWT app I have the following model class:

import com.google.gwt.user.client.rpc.IsSerializable;

public class TestEntity implements IsSerializable {
    public String testString;
}

This class implements the GWT custom IsSerializable marker interface - which I really don't like, because I use my model classes not only for GWT. So I prefer java.io.Serializable.

But if I modify the class to implement Serializable instead of IsSerializable, the GWT RPC mechanism doesn't work anymore. I don't get an error on the server side, but on the client AsyncCallback.onFailure is invoked.

I am using...

  • GWT 1.7.0.
  • Spring 2.5.6.SEC01
  • Spring and GWT are configured as described here.

© Stack Overflow or respective owner

Related posts about gwt

Related posts about gwt-rpc