Wednesday, November 18, 2015

Re: RequestFactory, frozen autobeans, and MVP

Have you called requestFactoryEditorDriver.edit(lockedProxyFromServer, requestContextUsedForSaving) ?

If you use SimpleBeanEditorDriver you have to do

T editableProxy = requestContextUsedForSaving.edit(lockedProxyFromServer);
simpleBeanEditorDriver.edit(editableProxy);

If the user does not end up saving any changes then you simply do not call flush(). I think thats the normal workflow (never really used RequestFactory). As you use MVP I would add a factory method to the view to create the editor driver since you need to GWT.create() it and you normally want to avoid GWT.create() in presenters. 

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" 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