If your code depends on call orders, then you'll have issues even without 
the Editor framework: as soon as you call a getter to retrieve a related 
proxy out of an edit()ed proxy, that other proxy will automatically be 
edit()ed too, so that you can write code like:

MyProxy myProxy = ctxt.edit(someProxy);
myProxy.getSubProxy().setFoo("foo");

without the need to edit(myProxy.getSubProxy()) and store it in another 
variable.

IMO, you'd rather change your assumptions on the server-side to no longer 
depend on setter's call order.

(FYI, the Editor calls edit() on each subproxy because it "walks" down the 
proxy passed as argument, which may or may not be edit()ed itself; and each 
ValueAwareEditor or LeafValueEditor is passed the "non-edit()ed" proxy, the 
edit()ed one being used only on flush())

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/4sZiv2mMqnsJ.
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