I recently refactored my application to mvp activities and places. I have an application level menu bar; when an menu is clicked, an activity for that menu item's place is started and the "content" area is set accordingly. Makes perfect sense to me.
But I'm now thinking about the menu bar itself. I want all the benefits of mvp there also. I want to be able to execute a service that returns the menu items that the logged in user has access to. I want to be able to swap its view out. I want the handlers to be encapsulated outside of the view, etc. But the Activity/Place paradigm doesn't make sense to me here. The display area for the menu bar only needs to get set once, a single instance of a presenter can be set on the view, etc. To use Activity/Place, I would need to create an ActivityManager for its display area, a mapper, activity, and place; and do a PlaceController.goto in the onModuleLoad. Seems more natural to let the uibinder create the view and set its presenter directly (I'd use gin to inject it). In other words, no Activity/Place. The only downside I see is that it mixes the two mvp paradigms. For example, my package structure is currently client.mvp.activity, client.mvp.view, client.mvp.place, so mvp that is not activity/place based doesn't really fit. -- 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+unsubscr...@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.