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
|
Pages: [1]
|
2
|
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?
|
|
|
9
|
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 { trace('LoadSearchModuleCommand:onModuleReady'); var scm : SectionContainerMediator = SectionContainerMediator(facade.retrieveMediator(SectionContainerMediator.NAME)) scm.mainDisplay.search.addElement(FlexModuleLoader(e.target)); }
|
|
|
12
|
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?
EDIT: 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, Mikhail
|
|
|
15
|
Announcements and General Discussion / Fabrication / Add Child Demo and onRegister method
|
on: February 15, 2010, 08:13:54
|
Hello
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"> <mx:target> <!-- This is where the confirm component is defined --> <mx:FormItem id="confirm" label="Confirm:"> <mx:TextInput/> </mx:FormItem> </mx:target> </mx:AddChild> After that change the onRegister method of ConfirmMediator isn't executed. How to make the add child resolver work with containers like Application?
Thanks, Mikhail
|
|
|
|
|
|