tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/919-applicationmediatorRobotlegs: Discussion 2018-10-18T16:35:46Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/254679872013-03-01T14:50:15Z2013-03-01T14:51:20ZApplicationMediator<div><p>Hi every body , in robotlegs1 when we wanted to mediate the main
application we did something like this :</p>
<pre>
<code>mediatorMap.mapView(Main, ApplicationMediator);
mediatorMap.createMediator(mainContext);</code>
</pre>
<p>what is the plan in RL2 ?</p></div>Arashtag:robotlegs.tenderapp.com,2009-10-18:Comment/254679872013-03-01T15:23:43Z2013-03-01T15:23:43ZApplicationMediator<div><p>Hi. RL2 does not require manual mediation of the main view (or
any views that might already be on stage - as that was the core of
the problem).</p>
<p>All you need to do is map it. There is an extension called
StageCrawler in the MVCS bundle that will scan the stage when the
context starts up, and trigger any mediators mapped to those
views.</p>
<p>So, it should work the way people would have expected in the
first place. Hope that helps. Let me know if it works for you.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/254679872013-03-01T19:07:00Z2013-03-01T19:53:07ZApplicationMediator<div><p>Hi . Shaun , i don't know how to use it and where is the best
place to code it ?</p>
<p>I am working on a flex project that i define FlexNativeMenu in a
top level displayContainer in my system and on click on them i want
to open some view , where is the best place to scan this events and
how</p></div>Arashtag:robotlegs.tenderapp.com,2009-10-18:Comment/254679872013-03-02T14:02:14Z2013-03-02T14:02:14ZApplicationMediator<div><p>Hi Arash,</p>
<p>You do not need to do anything special if you are using the
MVCSBundle, it should just work. The readme on this page shows a
basic setup:</p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework">https://github.com/robotlegs/robotlegs-framework</a></p>
<p>Let me know if you get stuck.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/254679872013-03-02T20:05:28Z2013-03-02T20:05:28ZApplicationMediator<div><p>:) thx shaun , I finally notice that i have to do nothing and
every things is correct , thx for your help. the last version of
RL2 make this automatic.</p></div>Arash