15.3. Building MVP yourself
Because MVP is a set of design rules, you can implement it in your GWT application by applying those design rules. You can download two versions of our chapter example following this approach. The first is a basic implementation in the gwtia-ch15-mvp project; the second is an enhanced version in gwtia-ch15-mvp-enhanced, where we’ve swapped the basic views for UiBinder versions and implemented code splitting.
Navigation to a new view is performed when the URL in the browser is updated—which can be either by the application updating the URL in the browser as a result of the user doing something or the user clicking the Forward/Back button. The application will react to changes in the browser’s URL, creating the appropriate ...
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.