Title: Fabrication module view mediators receiving puremvc multicore notifications... Post by: grimmwerks on February 22, 2011, 01:35:20 Hey all
As outlined in another message - I've got an app where I'm using a puremvc / multicore / pipes library for connecting to a socket server; but my shell application and widgets are all fabrication. The gist is this: does fabrication route 'respondTo' for sendNotification? Does it process sendNotification as if it were 'routeNotification('', null, null, "*")' ? There's no way for me to use routeNotification from where I need to sendNotifications as the messager is puremvc, not fab. Title: Re: Fabrication module view mediators receiving puremvc multicore notifications... Post by: grimmwerks on February 22, 2011, 02:28:30 I'm confused as the docs themselves seem to state that this is the case:
http://code.google.com/p/fabrication/wiki/GettingStarted
But I've got Modules that are using fabrication that are waiting to respondToOrderNew and don't seem to be getting the message. On top of which these notifications DO NOT seem to be the same: routeNotification(MixConstants.ORDER_NEW, null, null, "*") routeNotification(MixConstants.ORDER_NEW); Two modules, each within the shell - when one sends the first message ("*") the sibling receives the message in it's respondToOrderNew. When the second one is sent, the other widget ignores it. Worse still - when the first widget sends sendNotification(MixConstants.ORDER_NEW); the second widget ignores it as well. I even tested with sendNotification(CRUD) and a 'respondToCrud' handler from one widget to another -- no go -- as well as putting a respondToCrud in the shell -- and THAT didn't get it either. So do respondTo work with sendNotifications? So is routeNotification(x, y, z, "*") necessary for sending info from //sendNotification(MixConstants.ORDER_NEW, null); routeNotification(MixConstants.ORDER_NEW); |