Thursday, October 27, 2011

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

As I said: handleCurrentHistory() is called from within onAdminUnitSelected, i.e. an "event dispatch". Delay it (either just handleCurrentHistory() or the whole continueStart()) with Scheduler#scheduleFinally to make it execute *outside* the event dispatching, so that the place change handlers are *effectively* registered (on not kept on hold by the SimpleEventBus until the end of the current dispatch).

--
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/-/SsSWpg5inGsJ.
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