On Thursday, October 20, 2011 8:40:12 PM UTC+2, Rikard Hultén wrote: > > The Tokenizers never get hit no, which is interesting but I don't know how > where to continue searching... > > Not sure what you mean by DefaultHistorian? >
That one: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryHandler.DefaultHistorian.html Which is one used when you don't explicitly give an Historian to your PlaceHistoryHandler: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryHandler.html#PlaceHistoryHandler(com.google.gwt.place.shared.PlaceHistoryMapper) In the AppPlaceHistoryMapper interface I just enumerate my tokenizers from > the places in the @WithTokenizers, just like in the > activites-places-article. > > From what I can read it is the PlaceController that is responsible for > updating the URL, and as the event gets fired on the same event bus as is > passed in to it I can't understand why it does, in fact, not update the URL. > No. The PlaceController fires events on the bus, and the PlaceHistoryHandler listens to them to call its Historian (after converting the place to a token using the PlaceHistoryMapper), which is responsible for updating the URL. The Historian will also listen to the URL changing (such as using the "back" button of your browser) and PlaceHistoryHandler will map the token to a place (still using the PlaceHistoryMapper) and call goTo on the PlaceController. HTH -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/91OyKAvv9S0J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
