Tuesday, May 29, 2012

Re: Editor persist throws "A request is already in progress "


On Tuesday, May 29, 2012 7:09:39 PM UTC+2, jmbz84 wrote:
Thanks for the reply,

In order to create a new RequestContext what I must do is call the :

  editorContainer.edit(requestFactory.getComposerRequest());

before I save for the second time?

It means that I have to re-initialize the editor once I save it.

Absolutely. In general, you'd have the save() method return the modified proxy (in case another user modified it too, particularly if he modified fields that the current user didn't touch) and edit() it from the Receiver's onSuccess. 

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