On Tuesday, September 9, 2014 2:33:26 PM UTC+2, Thomas Broyer wrote:
-- I know that RequestContext holds original (non-edit()ed, frozen) instance for every EntityProxy (for calculating diffs that it needs to send to server) - is there any way to get that original proxy from edited()-ed instance?Using AutoBeanUtils you can get the underlying AutoBean, then use getTag to get the parent AutoBean (use com.google.web.bindery.shared.impl.Constants.PARENT_OBJECT as the key), and finally call as() to view it as an EntityProxy.
Ninja Thomas to the rescue :)
Tnx.
Just for notice to future readers, Constants are in package "com.google.web.bindery.requestfactory.shared.impl"
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment