|
|
Show Posts
|
Pages: [1]
|
3
|
Announcements and General Discussion / Fabrication / Re: Can a module route notification to itself?
|
on: August 10, 2010, 11:37:09
|
Here I have a scenario where you need routeNotification to be handled in the same sender module as well.
Say my proxy made a call to some service and got the updated results ( a collection). Although I know I can update the same module localCollection in that resultHandler and dispath a routeNotification for other modules to update themselves.
But instead of that, I want to update the localCollection in a respondToXYZ(), so that it can update the localCollection always. Doesn't matter if the call happened in the same module or in a different module. Because I have to have this respondToXYZ() in any case(to handle the localCollection updates from other modules), then why shouldn't I move my logic for localCollection update from resultHandler to this respondToXYZ for all the use cases.
I am not sure if I am clear enough OR I did confused you with all this text. Let me know if you are confused then I 'll try to put some code to explain this.
Thanks, Manu.
|
|
|
4
|
Announcements and General Discussion / Fabrication / Re: Can a module route notification to itself?
|
on: August 10, 2010, 12:34:28
|
I also have a similar question. My understanding about notifications( with respect to modules) is that,
"sendNotification()" works for notification interests for intra-module communication (within the same module),
where as "routeNotification()" works for inter-module communication(among multiple modules). And any notification sent through routeNotification can not be listened in same module.
Now again, the question arises that why we can not use routeNotification() only for both the purposes??
|
|
|
6
|
Announcements and General Discussion / Fabrication / eventSource=this[lcfirst(eventSourceName)]; remains null in FabricationMediator
|
on: July 04, 2010, 07:49:03
|
I have no clue why eventSource remains null in function initializeReactions() line 497.
TypeError: Error #1009: Cannot access a property or method of a null object reference. at org.puremvc.as3.multicore.utilities.fabrication.vo::Reaction/start()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/vo/Reaction.as:81] at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/initializeReactions()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FabricationMediator.as:505] at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/onRegister()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FabricationMediator.as:577] at org.puremvc.as3.multicore.core::View/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:205] at org.puremvc.as3.multicore.patterns.facade::Facade/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:227] at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FabricationMediator.as:204] at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FlexMediator/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FlexMediator.as:209] at com.school.admin.modules.student.view::StudentViewMediator/onRegister()[C:\workspace\SchoolAdminAIR\src\main\flex\com\school\admin\modules\student\view\StudentViewMediator.as:44] at org.puremvc.as3.multicore.core::View/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:205] at org.puremvc.as3.multicore.patterns.facade::Facade/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:227] at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FabricationMediator.as:204] at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FlexMediator/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FlexMediator.as:209] at com.school.admin.modules.student.view::StudentModuleMediator/onRegister()[C:\workspace\SchoolAdminAIR\src\main\flex\com\school\admin\modules\student\view\StudentModuleMediator.as:23] at org.puremvc.as3.multicore.core::View/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:205] at org.puremvc.as3.multicore.patterns.facade::Facade/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:227] at org.puremvc.as3.multicore.utilities.fabrication.patterns.command::SimpleFabricationCommand/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/command/SimpleFabricationCommand.as:144] at com.school.admin.modules.student.controller::StudentModuleStartupCommand/execute()[C:\workspace\SchoolAdminAIR\src\main\flex\com\school\admin\modules\student\controller\StudentModuleStartupCommand.as:16] at org.puremvc.as3.multicore.utilities.fabrication.core::FabricationController/executeCommand()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/core/FabricationController.as:166] at Function/http://adobe.com/AS3/2006/builtin::apply() at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Observer.as:100] at org.puremvc.as3.multicore.core::View/notifyObservers()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:127] at org.puremvc.as3.multicore.utilities.fabrication.core::FabricationView/notifyObservers()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/core/FabricationView.as:77] at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:294] at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:277] at org.puremvc.as3.multicore.utilities.fabrication.patterns.facade::FabricationFacade/startup()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/facade/FabricationFacade.as:202] at org.puremvc.as3.multicore.utilities.fabrication.components.fabricator::ApplicationFabricator/startApplication()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/components/fabricator/ApplicationFabricator.as:354] at org.puremvc.as3.multicore.utilities.fabrication.components.fabricator::ApplicationFabricator/initializeFabricator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/components/fabricator/ApplicationFabricator.as:323] at org.puremvc.as3.multicore.utilities.fabrication.components.fabricator::ApplicationFabricator/readyEventListener()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/components/fabricator/ApplicationFabricator.as:363] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266] at mx.core::UIComponent/set processedDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1630] at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4173] at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3187] at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250] at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3129] at StudentModule/initialize() at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7142] at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3951] at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2616] at mx.containers::ViewStack/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\containers\ViewStack.as:1426] at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2534] at com.school.admin.shell.view::ModulesContainerMediator/moduleReadyListener()[C:\workspace\SchoolAdminAIR\src\main\flex\com\school\admin\shell\view\ModulesContainerMediator.as:136] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfoProxy/moduleEventHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1168] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfo/readyHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:812] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::FlexModuleFactory/update()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:433] at mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:582] at mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:126]
|
|
|
9
|
Announcements and General Discussion / Fabrication / Re: trap/reactTo not working (fabrication 0.7)
|
on: June 30, 2010, 12:26:00
|
I have the same situation where putting an addEventListener in onRegister works but reactTo does not work.
AppMediator's onRegister()
override public function onRegister():void { super.onRegister(); registerMediator(new NavBarMediator(navBar)); }
In NavBarMediator,
public function get someButton():Button{ return navBar.someButton as Button; }
public function reactToSomeButtonClick(e:MouseEvent):void { trace("In NavBarMediator: responding to SomeButtonClick"); //never executed with 0.7 }
|
|
|
13
|
Announcements and General Discussion / Fabrication / Re: First release of fabricator gem, feedback please! (new version/update)
|
on: October 12, 2009, 10:42:13
|
Thanks for this great utility.
I am just starting up with pureMVC and this utility made it en easy start. I am successfully using it for my experimental code.
While I was working with this utility, I had noticed a couple of missing things in code generation. At first, it generates authentication and dashboard modules successfully, ready to compile.
But after that whenever I add a module using this util, it completely ignores the "shell controller" part. It never generates the code for "LoadXXXModuleCommand.as" and also does not register the command with "XXXShellStartupCommand.as".
Other than that I think NavBar belongs to shell, as it will be holding navigation to all modules(I assume that).
Overall, it's a wonderful job and made it lot easier to learn pureMVC for me. Thanks for this great job.
Keep it up.
-Manu.
|
|
|
|
|