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  Announcements and General Discussion / Architecture / Commands as Proxy handlers on: November 15, 2011, 06:25:21
Hello PureMVC forum,

One of our projects has a sort of this mechanism (let's call it 'command as a proxy handler') which works as follows.

E.g., we have an application with a popup and sort of a logging system. The popup saves data using remote method and after result is retrieved it launches some Notification (ProxyResult). We also have a Command (the name is not correct because it doesn't represent any actions - ProxyResultCommand) that closes that popup and sends a success message to the logger.

The alternative approach (and a classic I guess) is to listen that Notification in Mediator that manages popup and the Mediator.

What is the best solution? What to apply if we have a set of actions (close popup 1, close popup 2, send something to Logger). If this can be used what is the best name for this Command?
2  Announcements and General Discussion / Public Demos, Tools and Applications / Pureclipse - a plugin for Eclipse with PureMVC/Fabrication support for AS3 on: October 04, 2010, 08:14:54
SlideUI recently released their development tool called Pureclipse which is a great helper in PureMVC development.
It can be downloaded here: http://www.slide.name/pureclipse/
Currently it supports AS3 only.
3  Announcements and General Discussion / Fabrication / FlexModuleLoader and application style on: July 21, 2010, 04:39:40
Hello Fabrication users!

There is a shell application here with a module that is loaded with FlexModuleLoader
Earlier (before I figured out that Fabrication is now supported again) this module was loaded using default <ModuleLoader> component and everything works good. The problem now is that application style is not used in the module loaded with FlexModuleLoader now. There is a number of assets including font styles and images and they are not appled now. The loader is now created in command and then it is added to a container:
private function onModuleReady(e:ModuleEvent):void
var scm : SectionContainerMediator = SectionContainerMediator(facade.retrieveMediator(SectionContainerMediator.NAME))
4  Announcements and General Discussion / Fabrication / Get Proxy from another Proxy on: May 25, 2010, 07:06:31
Seems that retrieveProxy is not accessible from FabricationProxy. Is that done intentionally?
The workaround is to use facade.retrieveProxy instead.
5  Announcements and General Discussion / General Discussion / Pass data from one View to another on: March 12, 2010, 05:44:46
Hello, forum!

There is a main display View with a ViewStack where ListView and DetailView is put. When user hits the item in ListView, ListViewMediator generates a notification that is handled by MainDisplayMediator and it changes the selectedIndex in the ViewStack. The question is how to pass a parameter from ListView (selectedItem) to the DetailViewMediator? What is the best way to do that?

I guess, I need to pass the selectedItem as a notification's argument but the problem is how to pass it further to the DetailViewMediator. Should it be the special Proxy for that?

I found something similar in CafeTownsend demo: there is also a list of employees and a detail screen. But there is a ViewStack with creationPolicy="all" there which simplifies things a lot. A mediator in detailviewmediator just listens to the notification that is generated when list item is changed. In my case I have no mediator at that very moment when List item is changed. So I need register a mediator for the detail when user goes to the details screen. And after that get the value from ListViewMediator.

Thanks a lot,

6  Announcements and General Discussion / Architecture / Where would you place X? on: February 19, 2010, 04:56:35

I would like to know where do you usually place such classes as extended Notifications or class of constants for a specific View Component. Should they fall into model or view directories or they shouldn't be littered with these classes?
7  Announcements and General Discussion / Fabrication / Add Child Demo and onRegister method on: February 15, 2010, 08:13:54

I'm trying to understand why add child resolver doesn't work for me and got the following issue:
I've changed the demo so item is added to the panel and not to the form.
<mx:AddChild relativeTo="{loginPanel}" position="before">
                <!-- This is where the confirm component is defined -->
                    <mx:FormItem id="confirm" label="Confirm:">
After that change the onRegister method of ConfirmMediator isn't executed. How to make the add child resolver work with containers like Application?

Pages: [1]