Wednesday, November 18, 2015

RequestFactory, frozen autobeans, and MVP

I'm trying to convert an app from using plain JSON to using RequestFactory.  The app has a view and presenter.  So, I use the RequestFactory to get Contact instances, and pass them on the view to edit.  But, the editing runs into an issue with the AutoBean being frozen.  Without MVP, I would just open a request, invoke edit and pass the bean, and be done.  But, it doesn't seem right to now do that in the view.  And, I have an issue with holding a request open just to enable editing the bean, when it's conceivable that the user will bail out and not end up saving their changes.

So, what would the best flow be for this situation?


--
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