15.6. Fitting editors/data-presentation widgets into MVP

At first glance you might feel that editors (see chapter 9) and data-presentation widgets (chapter 10) don’t fit into this model. They typically imply a tight coupling from user interface to model, bypassing the presenter—you could consider that the presenter and view are together in the view.

There’s a “little cheat” or “inspired architecture approach,” depending on your view. The MVP paradigm we’ve discussed so far is also known as the MVP (Passive View) approach. In the passive view, the interaction with the model and view is exclusively performed by the presenter. There’s another version of MVP called MVP (Supervising Controller), which is the same as the passive view except it acknowledges ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.