1. #1 by Jashraj - April 28th, 2010 at 10:20

    Hi

    I am trying to configure the application above with new AbstractMediator and LoginViewMediator.. But with the changes suggested for Swiz beta 1.0 it doesn’t seem to be working.

    Request you to post the entire source code if possible which is compiled using Beta1.0 swc..

    If possible could you please mail the source code if you can’t upload it.. jashrajd at gmail.com

  2. #2 by brianr - April 30th, 2010 at 10:23

    Keep in mind that I start out by saying tha I pulled down the latest code from github and compiled the SWC myself with their ant build…so it’s not using the Swiz Beta 1 code, but rather the latest and greatest.

  3. #3 by bhenderson71 - May 7th, 2010 at 13:10

    Great idea, but I am still trying to figure out how the mediator gets wired to the view. I’ve implemented very similar mediators, however, even under the latest from GitHub, without knowing how the mediators are wired, nothing works.

  4. #4 by bhenderson71 - May 7th, 2010 at 13:47

    I see where the view and mediator will be matched, but now I’m experiencing a problem wherein nothing from Swiz is working in any sort of way, and I don’t get debug feedback to determine why controllers/mediators, etc. are not working.

  5. #5 by Pie21 - May 29th, 2010 at 02:24

    I like this approach (although catching every single addedToStage event with every single concrete view mediator seems a little unwieldy), but I’m having trouble getting it to work with a popup.

    I have various dialogs that I want to pop up to allow the user to input values (e.g. registration, much like your LoginView). However when I create the view with PopupManager.createPopUp(), the addedToStage event for the view I’m using as the popup isn’t caught by the mediator.

    I’ve run through it and everything is being created in the right order (the mediator is certainly listening for the popup when it should be and the addedToStage event handler of the view does execute) but not communicating properly. I’ve read that PopUpManager can do some funky things when creating popups… any idea how I can get it working?

    Cheers!

  6. #6 by brianr - August 9th, 2010 at 18:05

    @Pie21

    Yeah, the ViewMediator approach that I’m using in this example won’t work with popups since they are added to the SystemManager and not the actual display list…it’s this last part that keeps the ADD_TO_STAGE from firing and thus from actually wiring together the view + view mediator in my AbstractViewMediator’s (AVM) setView(view:*) method.

    That said, I recently updated the AVM to work for popups. I’ll post it later this wk.

(will not be published)
  1. No trackbacks yet.