TurboManage

David Chandler's Journal of Java Web Development

  • David M. Chandler

    15-yr veteran of Web apps residing in Atlanta with the wife of my youth and our five children. My current project is ROA, a prayer list keeper written in GWT for AppEngine. In my "spare" time, I take pictures, preferably of Rocky Mountain National Park like the one above in which I am waving from The Keyhole.

  • My Google Notebooks

  • Blog Stats

    • 41,813 hits

MVP

Model-View-Presenter

To get the most out of my posts in the Model-View-Presenter category here, you’ll want to start with

The GWT MVP and related concepts I’m most excited about are:

  • Each view implements an interface defined in the presenter, which improves code organization and testability.
  • The event bus (GWT HandlerManager) allows views, widgets, and services to collaborate in a highly decoupled fashion. The ability to create custom Events and EventHandlers in GWT 1.6+ is extremely powerful.
  • The notion of a PlaceRequest as implemented by gwt-presenter simplifies navigation and browser history management.
  • The Command pattern as implemented by a dispatcher service in gwt-dispatch cleanly enables features like undo and provides a hook to easily pass a security token and other parameters with every service request.