3.7. Managing history

History in an Ajax application is a series of states. In a normal website, clicking the Forward or Back button takes you to a new page; in an Ajax application, you should move between already visited states. For the chapter example, the state will be whichever of the tabs is shown.

GWT harnesses the event structure that we covered in the last section to support telling your application that the history (state) has changed. You can handle these change events by setting up an appropriate event handler and reacting to it, which is what we’ll look into in this section.

3.7.1. Handling history in GWT

Ajax applications can employ many techniques to manage history, each more successful in one browser than in another. Some use ...

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.