Arash's Avatar


01 Mar, 2013 02:50 PM

Hi every body , in robotlegs1 when we wanted to mediate the main application we did something like this :

mediatorMap.mapView(Main, ApplicationMediator);

what is the plan in RL2 ?

  1. Support Staff 1 Posted by Shaun Smith on 01 Mar, 2013 03:23 PM

    Shaun Smith's Avatar

    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).

    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.

    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.

  2. 2 Posted by Arash on 01 Mar, 2013 07:07 PM

    Arash's Avatar

    Hi . Shaun , i don't know how to use it and where is the best place to code it ?

    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

  3. Support Staff 3 Posted by Shaun Smith on 02 Mar, 2013 02:02 PM

    Shaun Smith's Avatar

    Hi Arash,

    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:

    Let me know if you get stuck.

  4. 4 Posted by Arash on 02 Mar, 2013 08:05 PM

    Arash's Avatar

    :) 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.

  5. Arash closed this discussion on 02 Mar, 2013 08:06 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac