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]
1  PureMVC Manifold / MultiCore Version / Re: Good logic for proxies on: April 04, 2009, 03:39:13
Thanks, Cliff. You have saved me from writing tonns of unneсessary code!
2  PureMVC Manifold / MultiCore Version / Good logic for proxies on: April 03, 2009, 06:26:53
Hello!

I'm using multicore version of PureMVC and i implemented data modification logic by creating 4 proxies
for data object. For example, to work with "orders" i will write 4 proxy:
 - OrdersFetchProxy
 - OrdersInsertProxy
 - OrdersUpdateProxy
 - OrdersDeleteProxy

because if I implement all of this methods in single proxy class, I don't know
which operation(FETCH, UPDATE or DELETE?) returns OK or FAULT message.

How I may implement all data modification(and another - search, filter etc) operations in a single
proxy class, with different result messages? If proxy executes all income calls one after another,
I may remember current operation type in variable, and return result messages depend on this variable...

P.S.:Sorry for my bad English.
3  PureMVC Manifold / MultiCore Version / Re: Bug(?) in a Multicore version on: February 18, 2009, 08:55:55
I understood this by experiment))) and now i write my "sendNotofocation..." code on
actor's "onRegister" method.

But anyway - thanks, Cliff! I had some doubt in my solution...
4  PureMVC Manifold / MultiCore Version / Bug(?) in a Multicore version on: February 17, 2009, 03:50:50
Hi all!

I'm new to programming in multicore PureMVC, and i had this run-time error

:
Error: multitonKey for this Notifier not yet initialized!
at org.puremvc.as3.multicore.patterns.observer::Notifier/get facade()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\org\puremvc\as3\multicore\patterns\observer\Notifier.as:89]
at org.puremvc.as3.multicore.patterns.observer::Notifier/sendNotification()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\org\puremvc\as3\multicore\patterns\observer\Notifier.as:59]
at kz.kazinfosystems.tdb.controller::AppStartupCommand/initializeMacroCommand()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\kz\kazinfosystems\tdb\controller\AppStartupCommand.as:11]
at org.puremvc.as3.multicore.patterns.command::MacroCommand()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\org\puremvc\as3\multicore\patterns\command\MacroCommand.as:58]
at kz.kazinfosystems.tdb.controller::AppStartupCommand()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\kz\kazinfosystems\tdb\controller\AppStartupCommand.as:9]
at org.puremvc.as3.multicore.core::Controller/executeCommand()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\org\puremvc\as3\multicore\core\Controller.as:115]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\org\puremvc\as3\multicore\patterns\observer\Observer.as:100]
at org.puremvc.as3.multicore.core::View/notifyObservers()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\org\puremvc\as3\multicore\core\View.as:127]
at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:294]
at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:277]
at kz.kazinfosystems.tdb::ApplicationFacade/startup()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\kz\kazinfosystems\tdb\ApplicationFacade.as:31]
at app/handleCreationComplete()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\app.mxml:19]
at app/___app_Application1_creationComplete()[E:\Data\Work\Projects\workspaces\flex\tdb-modular\src\app.mxml:3]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]

when i wrote in AppStartupCommand

:
... AppStartupCommand extends Macrocommand{
override protected function initializeMacroCommand():void{
    addSubCommand(RegisterMediatorCommand);
    sendNotification(ApplicationFacade.STARTED);
    }
}

I get error when I tried to send Notification after executing of some simpleCommands.

Where is a problem?

P.S.:Sorry for my bad English
Pages: [1]