PopUp Inner View Injections Not Working

mbarjawi's Avatar


11 Oct, 2012 08:45 PM


Was wondering if I this was a bug in the SW or is it something wrong that I am doing here.
Basically, I have a dialog, inside which I have a small view component. This view component has a mediator (not the dialog that has the mediator... its the inside component). I open the dialog normally using the viewManager.addContainer( ) and then the PopUpManager.

When I get into the initialize() method of the inner-view mediator, all the injections are "null".

Maybe it is also important to mention that this whole dialog is inside a Module. At the beginning I had trouble opening the popup window, until I defined the import mx.managers.PopUpManager; inside the Main Application (instead of inside the Module only). The trouble that I used to get was something else completely (an adobe defined object inside PopUpManager itself was null).


  1. 1 Posted by mbarjawi on 12 Oct, 2012 08:04 AM

    mbarjawi's Avatar

    I just created a sample test application to resemble this bug... however, mediation worked fine. Which means there is a big chance that it was my mistake that cause the bug in the first place.

    However, I'll come back later on with the sample app as well as, hopefully, an explanation/solution as there are some differences between the sample app and my current application.

  2. 2 Posted by mbarjawi on 12 Oct, 2012 11:11 PM

    mbarjawi's Avatar

    Haha...!! It was my mistake... I used the tag [Injector] instead of [Inject]... that's why my injections were null. My friend was able to spot it in 5 seconds... I am glad I asked him to take a look with me. :) Thank you Pooyan!

  3. mbarjawi closed this discussion on 12 Oct, 2012 11:11 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