Friday, June 3, 2011

Re: Strange bug with Editor and context.create() (With code example)



On Friday, June 3, 2011 2:45:15 AM UTC+2, pjulien wrote:
UserProxy editable =
request.edit(request.create(UserProxy.class));

That's your problem right there.  You don't call RequestContext#edit()
on the proxy that's returned from RequestContext#create


It shouldn't be an issue: create() returns an editable proxy, and edit() simply returns its argument when it's already editable (the Editor framework takes advantage of this: it unconditionally edit() the objects, whether you passed a "frozen" or editable proxy to the EditorDriver).

--
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/-/YVdoMWt5SDB4QWNK.
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