2

I have a MVP application implemented. Back button is working fine. I'd like to programatically go back to the previous place. How would I do that?

I'm looking for something like:

clientFactory.getPlaceController().goBack();

Thanks.

kapandron
  • 3,546
  • 2
  • 25
  • 38
Jordi P.S.
  • 3,838
  • 7
  • 36
  • 59

2 Answers2

6

You can simply use the native GWT history for that:

History.back();
Guillaume Polet
  • 47,259
  • 4
  • 83
  • 117
3

If you're using PlaceManager, you can call navigateBack() on an instance of PlaceManager.

David Mann
  • 1,874
  • 2
  • 16
  • 19