On 19/08/11 09:14, David wrote:
twu question:
1. what difference?
public interface State {}

and

 public class State implements Serializable {
         MyType type;
         String string;
         FOO foo;
         BAR bar;
     }
It's just a matter of taste, of which one you prefer. Generally it's better to 
have a base class/interface that each rpc parameter will extend/implement if 
your object model will support it.

2. what difference between Serializable and IsSerializable? --

I think support for implementing Serializable was added in GWT 1.4. It means 
you don't have to have GWT classes (ie IsSerializable) in classes that are 
otherwise GWT-free and so helps support code sharing with non-GWT 
code/libraries.

See the GWT docs on serialization:
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes

Paul

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