tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/388-event-dispatched-from-a-command-is-not-receivedRobotlegs: Discussion 2018-10-18T16:35:32Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/103018642011-09-29T17:10:19Z2011-09-29T17:10:19ZEvent dispatched from a command is not received.<div><p>check that the onRegister method of the mediator is fired<br>
if its not the mediator has not been created yet...<br>
so check that the view has been attached.</p>
<p>this is most prob a timing issue</p>
<p>must go... wife calling me to supper table, and I'm gonna get
it</p></div>neiltag:robotlegs.tenderapp.com,2009-10-18:Comment/103018642011-09-29T17:15:16Z2011-09-29T17:15:16ZEvent dispatched from a command is not received.<div><p>@nail is right I think. Probably your view is not added on the
stage when you call dispatchEvent(initEvent); I.e. the onRegister
method of the mediator is not called and the listener for
LoginEvent.ACTIVATE_ACCOUNT is not added.</p></div>krasimirtag:robotlegs.tenderapp.com,2009-10-18:Comment/103018642011-09-29T18:08:01Z2011-09-29T18:08:02ZEvent dispatched from a command is not received.<div><p>Thanks guys, that was the case. Now I dispatch the event in the
onRegister of the Mediator and it works.</p></div>Jim