GWT and java.io.Serializable
- by Ethan Leroy
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.