Title: Cannot receive the same notification with multiple mediators Post by: eugene_se on January 14, 2009, 07:33:25 I have two mediators that should receive the same notification. Mediator A always receives the notification. Mediator B only receives the notification if I remove the notification from the function listNotificationInterests() in Mediator A.
Strange thing is that it worked a few hours ago... What kind of error can I have made? Thanks, Eugene Title: Re: Cannot receive the same notification with multiple mediators Post by: Jason MacDonald on January 14, 2009, 07:36:55 Could you post the two mediators? The relevant parts anyway. It's too hard to guess without seeing something.
Title: Re: Cannot receive the same notification with multiple mediators Post by: puremvc on January 14, 2009, 07:41:03 Try using the debugger. Its an x-ray machine. You can see what's registered and look at the observer lists in the view. Post back if you need help.
-=Cliff> Title: Re: Cannot receive the same notification with multiple mediators Post by: eugene_se on January 14, 2009, 08:11:44 Hi,
Thanks for your quick response. I found the error, I think. Mediator A always receives the notification before Mediator B. In Mediator A, a runtime error was generated because it tried to access a property of an uninitialized object. By commenting out that part, both Mediators receive the notification. So I guess that Mediator B did not receive the notification because of a runtime error in Mediator A. I also tried debugging to see the observer lists in the view, but I don't know where to find these lists. Title: Re: Cannot receive the same notification with multiple mediators Post by: Jason MacDonald on January 14, 2009, 09:22:43
The Observer map is in facacde.view.observerMap and Mediator Map is in facade.view.mediatorMap. Title: Re: Cannot receive the same notification with multiple mediators Post by: Joel Hooks on January 19, 2009, 10:15:09
After you choose "Show Inaccessible Member Variables" |