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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment