I communicate with the server through RPC, but I wanted to know how to
implement the Observer pattern in GWT.
I wanted to know how the server invokes the method update() on the
client!
I'm doing a chat through Observer I know all the events!
Server-side
public class service implements extends RemoteServiceServlet
implements
Service {
ServerObserver s=new ServerObserver();
....
}
public class ServerObserver extends Observable{
....
}
client side
public class ChatGui extends Panel implements Observer{
.....
public void update(Observable o, Object arg) {
...
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---