15.5. Activity and Place (GWT’s reference MVP approach)

You can find plenty of implementation libraries on the internet for supporting MVP and even a few GWT-specific libraries from third parties. GWT itself provides what it calls Activity and Place, and these can be seen as supporting GWT’s reference MVP implementation.

In this section, we’ll take our familiar photo application from earlier and reimplement it using Activity and Place. You’ll find the resulting application in the gwtiach15-mvp2 chapter example project.

 

Don’t forget

To use Activity and Place, you need to inherit the following two modules in your application’s module file:

<inherits name='com.google.gwt.activity.Activity'/> <inherits name='com.google.gwt.place.Place'/> ...

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.