Thursday, October 27, 2011

Re: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

What I meant is that, assuming you're using a SimpleEventBus, the PlaceChangeRequestHandler-s and PlaceChangeHandler-s are in the "deferredDeltas" list, they're not yet fully registered: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/event/shared/SimpleEventBus.java
You need to defer the handleCurrentHistory() call outside the event dispatching; but you can actually defer the whole continueStart if you prefer (the handlers would then be registered right away, with no queuing in the deferredDeltas)

--
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/-/3nGq2Eo_aHkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment