Re: History onValueChange() not called when application is loaded?
On 1/13/2012 8:48 PM, hbf wrote: Dear all, I am following the instructions for History management http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html but even though I register my history handler in onModuleLoad(), it does not fire when I load my application with a fragment in the URL. It does fire, however, when I manually change the fragment in the browser URL field. Does anybody have any idea what I might be doing wrong? Thanks, Kaspar This happened to my application before, maybe you can try implementing the interface instead of History.addValueChangeHandler Like this: public class MainEntryPoint implements EntryPoint, ValueChangeHandler { // stuff @Override public void onValueChange(ValueChangeEvent event) { // do your stuff } } Cheers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: History onValueChange() not called when application is loaded?
Looking at the tutorial http://mangstacular.blogspot.com/2011/12/gwt-history-mechanism.html it seems that at application startup, no history change event is fired. I couldn't find any official documentation confirming this, but the text The application was just started and was passed a history token. on http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html makes me think it should be fired... On Jan 13, 1:48 pm, hbf kaspar.fisc...@dreizak.com wrote: Dear all, I am following the instructions for History managementhttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist... but even though I register my history handler in onModuleLoad(), it does not fire when I load my application with a fragment in the URL. It does fire, however, when I manually change the fragment in the browser URL field. Does anybody have any idea what I might be doing wrong? Thanks, Kaspar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: History onValueChange() not called when application is loaded?
You either have to call PlaceHistoryHandlerhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/place/shared/PlaceHistoryHandler.html#handleCurrentHistory()# handleCurrentHistoryhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/place/shared/PlaceHistoryHandler.html#handleCurrentHistory()or History#fireCurrentHistoryState depending on what you're currently using http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/place/shared/PlaceHistoryHandler.html#handleCurrentHistory()http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/place/shared/PlaceHistoryHandler.html#handleCurrentHistory() http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/History.html#fireCurrentHistoryState() -- 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/-/UaIgqXv8qX0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.