Can I generalize here and say: "Any time I want to persist edits to
proxy and its sub-proxies using a single editor (with embedded sub-
editors), then I always have to explicitly call edit() on all the sub-
proxies before calling it on the proxy?"

On Aug 25, 10:01 am, Robert Quinn <[email protected]> wrote:
> I am creating a RequestFactory context by calling edit() on a proxy
> (which contains sub-proxies).
>
> I have an editor for the proxy (with sub-editors for the sub-proxies).
>
> Call this proxy the "top-level proxy"
>
> The editor framework automatically calls context.edit() on any sub-
> proxies it encounters (which is helpful); however, this means when the
> driver is flushed, the setters for the top-level proxy are called
> first, followed by its children's setters, and so on.  So when I use
> the default editor framework behavior, my top-level proxy proxy will
> never accurately reflect the editor changes.
>
> Do I really have to manually call edit on all my sub-proxies in a leaf-
> first way in order to get the behavior I need?  Shouldn't the driver
> do it that way be default?
>
> Or am I thinking of this incorrectly?

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