how can i get the proxy that i edited using driver.edit?

27 views
Skip to first unread message

Elhanan

unread,
Jun 24, 2011, 12:20:23 PM6/24/11
to Google Web Toolkit
i know the it's not the same proxy i sent in..

and i know i need to send to a persist method i created in a
requestContext.

so do i need to use the onProxyChangeEvent?

isern

unread,
Jun 24, 2011, 1:41:39 PM6/24/11
to Google Web Toolkit
Just an idea, I'd try this:

proxy = request.edit(proxy);

driver.edit(proxy);

If I got RF right, the edited reference should be the same as the one
request.edit() returns, as it is already bound to that context.

Greetings!

Elhanan Maayan

unread,
Jun 25, 2011, 2:15:57 PM6/25/11
to google-we...@googlegroups.com
yea, but that means i can ever use driver.edit without using request.edit first, and driver.edit already does request.edit

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Colin Alworth

unread,
Jun 26, 2011, 1:51:58 PM6/26/11
to google-we...@googlegroups.com
If one of your editors needs access to the original object, consider implementing a ValueAwareEditor so it has access to the original model. This way you can flush changes back as part of the regular editor system.

If you want to make other arbitrary edits outside of the editor system, then it sounds like you actually want to call req.edit before passing it into the driver.
Reply all
Reply to author
Forward
0 new messages