Hi,
I've been using GWTP for years but have only just learned something that seems pretty fundamental. Can I get someone to confirm this is correct please?....
Basically, I need to know when a user navigates to a new place so I tapped into the History change events:
History.addValueChangeHandler(new ValueChangeHandler<String>() {...Previously I used to use
PlaceManager.revealPlace() to do all my navigation but this does not fire the History change event.
More recently, I've discovered
History.newItem() which fires the event and performs the navigation (just like an 'href' in an anchor).
So, is History.newItem() more appropriate to use than PlaceManager.revealPlace()?FYI,
RootPresenter.java (lines 48 & 58) in
my learning project illustrates the differences. The navigation menu needs to be explicitly hidden whenever the user navigates (for screen width <768px).
Thanks in advance,
Pete