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 / Unable to retrieve registered Proxy on: June 05, 2008, 02:39:29
Hi Folks,

I am registering a Proxy that sends a notification in initializeNotifier() to inform the system that the proxy data model has been loaded (I am using a local test stub so it goes very fast). I have a registered Mediator (Registered before the Proxy in my StartupCommand) that listens for the proxies 'init_complete' notification. When the Mediator receives the notification it retrieves the proxy from the facade, but it is null. How can this be, it was registered, initializeNotifier was called...

In debugging I walk through the modules startup command and step over the registration of the proxy. The mediator has a breakpoint in handleNotification and it is triggered before register proxy returns as I step over. I 'think' my proxies multiton key had not been set before initializeNotifier was called (just a guess).

As an added note my proxy is a common proxy. Most of my modules need access to a common VO's so I have a common package with my common VO's proxies ect. I have modeled the multicore demo app and altered it to load/unload modules. This proxy was first loaded by the module shell and all was well. My first loaded module also needs this proxy and registers it to its own facade, but the second time this this problem occurs.

Any help much appreciated.

Thanks,

Greg

2  PureMVC Manifold / MultiCore Version / Proxy data not ready when UIComponents are created on: June 04, 2008, 01:14:41
Hi All,

New to ActionScript, pureMVC and multicore.

My application has a ServerConfigProxy responsible for caching and providing access to a ServerConfigVO. In my Proxies initializeNotifier() I initiate an HTTPService call via a remote stub class, once the result is ready I seed the proxies cache with the constructed ServerConfigVO.

Problem is the UI Mediator requests the ServerConfigVO before the Proxy has received it. How should I be handling this? Should I check if the VO is null, use a Proxy loading flag and display a progress meter, once the loading flag is false get the VO?

Any help much appreciated.

Thanks,

Greg
3  PureMVC Manifold / MultiCore Version / How to register dynamic components (Popups) on: May 13, 2008, 02:16:17
Hi Folks,

New to ActionScript, puremvc so please bare with me.

In registering my Mediators I need reference to the UIComponent for the constructor. I have a Footer component that has a few links; About, Terms of Use, Privacy policy ect... My Footer has a mediator to listen to the link clicks dispatched and perform the associated action such as display a TitleWindow as a pop up. My About component has some other links allowing the user to navigate to the EULA, and some external url's so I felt it was just to have an AboutMediator to listen to the components dispatched events and decouple the About window functionality from the footer. My StartupCommand responsible for registering the mediators does not have the ability get a reference to the About component by drilling down through parentComp.footer.aboutWin because it is only instantiated at runtime. I tried to just have a member variable in the Footer.mxml component instantiated to an instance of the About.mxml component so I can reference it when registering the AboutMediator. When I run the application I get the following error:

Error: multitonKey for this Notifier not yet initialized!
   at org.puremvc.as3.multicore.patterns.observer::Notifier/get facade()[C:\Documents and Settings\Owner\My Documents\workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Notifier.as:89]
   at com.corp.prod.common.view::AboutMediator()[C:\dev\eclipse\workspaces\corp\proj\src\com\axentra\hipserv\common\view\AboutMediator.as:25]
   at com.corp.prod.modules.landingPage.controller::StartupCommand/execute()[C:\dev\eclipse\workspaces\copr\proj\src\com\corp\prod\modules\landingPage\controller\StartupCommand.as:43]

I am using the multicore version as I am employing a modular design, hoping my issue is not related, if so I can provide more info.

Any help much appreciated.

-Greg
4  Announcements and General Discussion / General Discussion / Project Directory structure on: February 06, 2008, 11:23:30
Hi All,

Getting ready to start my first project and am looking for guidance on the project directory structure.

Should the main source folder just be the root project dir?

Should this main source folder contain an assets, css, com, org ect.. or should I separate swf, css and image resources from the code?

From the training I like the package structure com.comp.app.model/view/controller.

Any examples are much appreciated.

Thanks,

Greg


Pages: [1]