Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
June 27, 2017, 10:32:12 AM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: Help with puremvc/mulitcore 'common' and fabrication shells / widgets...  (Read 2307 times)
grimmwerks
Jr. Member
**
Posts: 14


View Profile Email
« on: February 15, 2011, 01:56:33 PM »

I'm losing my mind and could *really* use some help here from the masters as to what I'm doing being feasible or the best way of handling this.... this is coming from http://forums.puremvc.org/index.php?topic=1872.0


I've got a project structure like this:


<--- this is a puremvc multicore app structure that holds commands that are async and need to be there for any shell startup, as well as common biz objects, etc.
mix/common/controller
---- InitCommunications <---- this is AsyncMacroCommand that calls a few others
---- (Other Commands here).

mix/common/model/vo  <-- biz objects, not needed to know


Then I've got

mix/app1    <--  all fabrication shell

mix/widget 1--x    <-- a number of widgets that are also fabrication. 

All the app/widgets work fine as well as pulling models in from the common 'app' structure.

The thing that's KILLING me is that I want to initiate the async command that is puremvc / sub commands so that the data communications are up and running for any of the shell apps we're going to build and child widgets.

Whenever I initiate the communications via a notification (ie CommonConstants.BEGIN_COMM)  I get an error of: multitonKey for this Notifier not yet initialized!

(You can see the full error in the thread above).


The thing that I get where the error *IS* but not how best to proceed -- is that since there's no true applicationFacade on the common structure that creates a multiton with a unique key/id that the request for the command blows up.

The problem I'm getting around in terms of solving it is that I don't know how best to implement this:  -- ie do I create a secondary fake facade that I somehow birth from a fabrication app?

Do I create a MacroCommand within my fab shell that pulls in the single async commands from the top level common app?

Do I look to the StateMachine?


Do I make the common structure a fabricated one?

Would REALLY appreciate some pointers as I'm quite frustrated.





Logged
Pages: [1]
Print
Jump to: