Hello, im new in programming with GWT and im trying to make a Chat
application.
I have a class Receiver, responsible to get the messages from the
server and show them in a TextArea.
It's something like this:

class ChatEntryPoint implements EntryPoint{

      Receiver r;
      final TextArea ta;

      public void onModuleLoad() {

           r = new Receiver(id){

                        @Override
                        public void getMessage(String msg) {
                                ta.setText(msg);
                        }

                };
      }
}

public class Receiver implements java.io.Serializable{

        private static final long serialVersionUID = -2358499438887497539L;
        private String id;

        public Receiver(){
                this.id = "";
        }

        public Receiver(String id){
                this.id = id;
        }

        public void getMessage(String msg) {
        }
}

Even assigning the java.io.Serializable, i get the serialization error
message, when i call the getMessage method from my Servlet.
What is wrong with my Receiver?

Ps: Please, forgive my bad english.

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