ApplicationMediator
Hi every body , in robotlegs1 when we wanted to mediate the main application we did something like this :
mediatorMap.mapView(Main, ApplicationMediator);
mediatorMap.createMediator(mainContext);
what is the plan in RL2 ?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Shaun Smith on 01 Mar, 2013 03:23 PM
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 Posted by Arash on 01 Mar, 2013 07:07 PM
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
Support Staff 3 Posted by Shaun Smith on 02 Mar, 2013 02:02 PM
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:
https://github.com/robotlegs/robotlegs-framework
Let me know if you get stuck.
4 Posted by Arash on 02 Mar, 2013 08:05 PM
:) 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.
Arash closed this discussion on 02 Mar, 2013 08:06 PM.