Mediator Registration and Popups
If your gonna listen out for notifications in a mediator thats registered using the PopManager class I detailed here http://www.newtriks.com/?p=76 be aware that the mediator may not be registered when the notifications are being fired.
For example, I want to populate a popup window with data from a proxy using the mediator to request the data. I do this by getting the mediator to send a notification to the facade which runs a command telling my proxy to get the data, the proxy will then send a notification with the data as its body.
The key to this all working is the point in which we send the notification for the data from the mediator, obviously the mediator needs to be registered with the facade so it can listen out for the notification sent by the proxy.
The View calls onRegister() when the Mediator is registered, so override this method in the mediator and send the notification for the data within this method.