Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: 1 [2] 3 4
16  Announcements and General Discussion / Fabrication / The modules with proxies have error when load both on: February 27, 2009, 12:28:20
Hi Darshan,

I have two fabrication database applications that have proxies and delegations,  they work fine independently,

I covert them to two modules as FlexModule(moduleA and moduleB)

I use shell load two modules(moduleA and moduleB). it works fine if I load just one of them(moduleA or moduleB). the functions in each module works.


The errors happen when I run any function in any module if I load both module (moduleA and moduleB) with shell.

I use your SimpleModule as an test module(moduleC). each of test module(moduleA and moduleB) works file with moduleC.

This is the summary:

moduleA works fine if shell only load moduleA.
moduleB works fine if shell only load moduleB.
moduleA works fine if shell load moduleA and moduleC.
moduleB works fine if shell load moduleB and moduleC.

moduleA or moduleB doesn't work  if shell load moduleA and moduleB.

It seem the database Modules (moduleA and moduleB) can not work when both are loaded.they affect each other

Please let me know how to fix the problem.

Thanks


Mark

ps: error message:

TypeError: Error #1034: Type Coercion failed: cannot convert mx.messaging.messages::AcknowledgeMessageExt@4ffc139 to mx.messaging.messages.IMessage.
TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::HistoryManagerImpl@ef18089 to mx.managers.IHistoryManager.
   at mx.managers::HistoryManager$/get impl()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96]
   at mx.managers::HistoryManager$/unregister()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\HistoryManager.as:144]
   at mx.containers::Accordion/removedFromStageHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\containers\Accordion.as:2160]
   at flash.display::DisplayObjectContainer/removeChild()
   at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5074]
   at mx.core::Container/removeChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Container.as:2267]
   at shell.view::ModulesContainerMediator/unloadModule()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\view\ModulesContainerMediator.as:110]
   at shell.view::ModulesContainerMediator/respondToRemovedFromList()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\view\ModulesContainerMediator.as:81]
   at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/invokeNotificationHandler()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\patterns\mediator\FabricationMediator.as:579]
   at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/handleNotification()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\patterns\mediator\FabricationMediator.as:384]
   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()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\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.patterns.observer::Notifier/sendNotification()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Notifier.as:60]
   at org.puremvc.as3.multicore.utilities.fabrication.patterns.proxy::FabricationProxy/sendNotification()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\patterns\proxy\FabricationProxy.as:161]
   at shell.model::ListProxy/remove()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\model\ListProxy.as:34]
   at shell.model::ListProxy/removeAll()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\model\ListProxy.as:40]
   at shell.controller::RemoveAllModulesCommand/execute()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\controller\RemoveAllModulesCommand.as:14]
   at org.puremvc.as3.multicore.utilities.fabrication.core::FabricationController/executeCommand()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\core\FabricationController.as:164]
   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()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\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.patterns.observer::Notifier/sendNotification()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Notifier.as:60]
   at shell.view::MessageControlBarMediator/removeAllButtonListener()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\view\MessageControlBarMediator.as:179]

17  Announcements and General Discussion / Fabrication / Re: "Router was not set on the module" error on: February 26, 2009, 02:36:52
Hi Darshan,

Please take a look the attached flex file that exported from flex builder. I am not sure why I get the runtime error.

Thanks

Mark

Attached file:
http://rapidshare.com/files/202955604/mdi3.zip.html
18  Announcements and General Discussion / Fabrication / "Router was not set on the module" error on: February 26, 2009, 01:17:34
Hi,

I am doing a module applicatoion with Fabrication.

I follow the url:

http://code.google.com/p/fabrication/wiki/UsingModules

and I have added the following statement to the moduleLoader instance

moduleLoader.router = applicationRouter;
moduleLoader.defaultRouteAddress = applicationAddress

What I have to do with module to fix the error.

Thanks

Mark
19  Announcements and General Discussion / Fabrication / Re: Question for "resolver add child"? on: February 26, 2009, 09:51:19
Hi,

I figure it out. the mediator create when the view create and I have to remove the mediator the the view is gone.

Thanks

Mark
20  Announcements and General Discussion / Fabrication / Re: Question for "resolver add child"? on: February 24, 2009, 07:50:28
Hi Darshan,

Thanks for your help.

In the attached code, the debug console will print out one "call mediator" when I click the "need to register" link once.

But I only need the mediator is called once and only register with "registermediator" statement.I do not want the view create a new instance of mediator when I open the view.

Can you tell me how to do this?

Thanks

Mark
21  Announcements and General Discussion / Fabrication / Re: Question for "resolver add child"? on: February 23, 2009, 02:07:40
Hi,

I use the same logic of the demo to my application.

my problem is same function is called many times after I visit the "view" many times.

Please give me a idea to fix my code.

Thanks

Mark
22  Announcements and General Discussion / Fabrication / Question for "resolver add child"? on: February 23, 2009, 01:54:13
Hi,

I read the demo 'resolver_add_child'. This demo show me how to do 'Reflexive Mediator Registration' with states.

The application build a new instance of  'ConfirmMediator' when I open the view of the 'confirm'.

Many instances of 'ConfirmMediator' will be built when I open the 'confirm view' many times.

In my case, I like to use 'Reflexive Mediator Registration' but I only need one instaNce of Mediator built at first time and it create by something like
"registerMediator(new ConfirmMediator(resolve(application)..confirm))".

I do not want the app to create other instance of the same Mediator when I visit the 'view'. I only have one instance for each mediator so I just call database once when I use a function in the mediator.

Please give me a guide for this.

Thanks for your help


Mark

23  Announcements and General Discussion / Fabrication / Question for the Demo code? on: February 20, 2009, 09:05:00
Hi,

I takes look the demo code at  AddChildDemo that have the following URL

http://code.google.com/p/fabrication/source/browse/examples/resolver_add_child/src/main/flex/AddChildDemo.mxml.

I need add name space "xmlns:fab="org.puremvc.as3.multicore.utilities.fabrication.components.*"  for <fab:states>, but I can not find the states class in package "org.puremvc.as3.multicore.utilities.fabrication.components"

Please give a help for this.I check API and I have not get answer.

Thanks

Mark


24  Announcements and General Discussion / Fabrication / Question for routeNotification? on: February 19, 2009, 10:14:16
Hi,

I read the code and I found the two line code for routeNotification. what is the meaning for "SimpleModule/#"  and "FabricationRoutingDemoShell/*".I confuse the usage for "*" and "#".

routeNotification(FabricationRoutingDemoConstants.RECEIVE_MESSAGE, "Message From Module", null, "SimpleModule/#");

routeNotification(FabricationRoutingDemoConstants.RECEIVE_MESSAGE, "Message From Module", null, "FabricationRoutingDemoShell/*");


Please help me!

Thanks

Mark
25  Announcements and General Discussion / Fabrication / Re: what is the different between AIR and Flex with Fabrication? on: February 19, 2009, 11:17:31
I use 0.6 library and try this.

It works now.Thanks

Mark
26  Announcements and General Discussion / Fabrication / what is the different between AIR and Flex with Fabrication? on: February 19, 2009, 09:45:44
Hi,

I need build a AIR application and the function is similar with demo "Simple Routing", I need pass data between modules.

I do a sample test,I just change "Simple Routing" to AIR from Flex.

I did the following.

1. copy air swc lib to lib folder
2. change main shell, from "fab:FlexApplication" to "fab:AirApplication"

I get some error.it seems I have to implement some interface methods(type 1044 errors).I confuse why this happen.

Thanks

Mark

Error message:

Severity and Description   Path   Resource   Location   Creation Time   Id
1044: Interface method acceptRouter in namespace org.puremvc.as3.multicore.utilities.fabrication.interfaces:IRouterAware not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149684
1044: Interface method addEventListener in namespace flash.events:IEventDispatcher not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648140   149676
1044: Interface method dispatchEvent in namespace flash.events:IEventDispatcher not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648140   149673
1044: Interface method get id in namespace org.puremvc.as3.multicore.utilities.fabrication.interfaces:IFabrication not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648140   149672
1044: Interface method getDefaultRoute in namespace org.puremvc.as3.multicore.utilities.fabrication.interfaces:IRouterAwareModule not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149680
1044: Interface method getModuleAddress in namespace org.puremvc.as3.multicore.utilities.fabrication.interfaces:IRouterAwareModule not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149679
1044: Interface method hasEventListener in namespace flash.events:IEventDispatcher not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648140   149675
1044: Interface method hasOwnProperty in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149681
1044: Interface method hasOwnProperty in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149685
1044: Interface method hasOwnProperty in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648171   149688
1044: Interface method isPrototypeOf in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149682
1044: Interface method isPrototypeOf in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149686
1044: Interface method isPrototypeOf in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648171   149689
1044: Interface method propertyIsEnumerable in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149683
1044: Interface method propertyIsEnumerable in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648171   149687
1044: Interface method propertyIsEnumerable in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648171   149690


27  Announcements and General Discussion / Fabrication / Re: How to convert apps to fabrication modules? on: January 21, 2009, 09:13:37
Hi Darshan,

I like use fabrication,Please help me for this.

I look for a common way to do the kind of work(convert fab apps to fab modules).

Thanks

Mark
28  Announcements and General Discussion / Fabrication / How to convert apps to fabrication modules? on: January 20, 2009, 12:12:18
Hi,

I have developed two applications with fabrication.

I plan to covert the two fabrication apps to two fabrication modules and use shell to integrate two modules.
I also need route message between the two module.

Do you think if it is possible? Can you give us some advice how to do this.

Thanks a lot

Mark
29  Announcements and General Discussion / Fabrication / May I use routeNotification in same file(module)? on: December 09, 2008, 10:28:21
I have the code in same file that is a mediator

static public const SEND_MESSAGE:String = "sendMessage";

routeNotification(SEND_MESSAGE, null, null, "*");

public function respondToSendMessage(note:INotification):void {
    trace("respondToSendMessage");
}

I already add the code in main page

override public function getClassByName(path:String):Class {
   return getDefinitionByName(path) as Class;   
}

But I do not know why I can not handle the notification in respondToSendMessage.
I can not trace message after I call routeNotification.

Please help me

Thanks

Mark
30  Announcements and General Discussion / Fabrication / Re: Fabrication and Adobe Air? on: December 09, 2008, 09:28:08
Hi  darshan & Jasonmac  ,

I extend mediators from FlexMediator now.it works for AIR !!

But why the Flex demo can extend FabricationMediator and works fine?

I hope to see your AIR demo soon.

Thanks

Mark

Pages: 1 [2] 3 4