tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/385-mediator-does-not-seem-to-be-receiving-eventsRobotlegs: Discussion 2018-10-18T16:35:32Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/101618822011-09-23T14:04:23Z2011-09-23T14:04:23ZMediator does not seem to be receiving events<div><p>Hi Jim,</p>
<p>you'll need your LoginMediator to catch the event on it's view,
and redispatch it for the whole app to see. Actually this is really
just a 'redispatch'.</p>
<p>The code in onRegister of your LoginMediator would be:</p>
<p>addViewListener(MainEvent.FOCUS, dispatch, MainEvent);</p>
<p>'dispatch' is just the function that dispatches an event to the
shared eventDispatcher.</p>
<p>The 3rd param - MainEvent is just to add type safety.</p>
<p>hth - come back if that's not working for you,</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/101618822011-09-23T14:25:43Z2011-09-23T14:25:44ZMediator does not seem to be receiving events<div><p>Yep, that did it. Thanks for the quick reply.</p></div>Jim