Synchornizing local model and the server with RequestFactory

24 views
Skip to first unread message

Konstantin Solomatov

unread,
Mar 20, 2012, 6:00:40 AM3/20/12
to google-we...@googlegroups.com
Hello,

I have application with the following architecutre:
  • I have a local model, which consists of long lived objects which represent entities that users work with
  • I have a server where a counterpart of the model is implemented
  • I have a synchronizer on the client which synchronizes this models with GWT RPC
I've taken look at RequestFactory and like its approach very much especially on how much less boilerplate code I need. However, AFAIU, every time I want to send a request to the server, I have to create a new request context and call edit for every object I want to change there. As a result, I can't keep one instance of each client object I have, and can't add a listener to it. What can I do about it?

Regards,
Konstantin
Reply all
Reply to author
Forward
0 new messages