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]
|
1
|
PureMVC Manifold / Standard Version / Cliff Help. Viewstack in CSharp
|
on: August 21, 2013, 06:49:02
|
I have used puremvc in flex before, and trying the same in c#. Question is about single window, multiple views using concept of viewstack, and ideally lazy loading.
One approach is the grid and all views created in same co-ordinates. Using the visibility property through puremvc.
Any other better suggestion?
|
|
|
3
|
PureMVC Manifold / MultiCore Version / pipeworks - where are the module swf?
|
on: August 01, 2009, 11:50:35
|
Cliff,
We recently implemented mc version of our single-core application using mx:modules, and are not yet using pipes. In looking at the pipeworks demo, I am confused why the module's (Logger / Prattle) swf don't exist - when the implementation uses modulebase.
If the mediator loads ahead of the view creation to do the framework wiring, do we lose the benefits of independent swf loading and memory management - as I only see one consolidated swf in pipeworks? I am not clear, just need you to point me to more resources to look at.
Thanks.
|
|
|
4
|
Announcements and General Discussion / Fabrication / Re: Will Fabrication be rolled into Multicore and Pipes as default?
|
on: June 17, 2009, 10:50:27
|
Cliff, I am an ardent fan of singlecore, and I continuosly insist my team to go through the first pains of learning and I have to say it is a success story for me. I hope singlecore continuous to benefit from the focus on multicore. I feel singlecore appeals to small apps, and multicore w/pipes as it is now appeals to complex apps and is just harder to sell to developers for small apps.
I may be caused more grief than expected when I asked for accommodating Fabrication. My intention (poorly communicated) is to understand if key features such as reflection and the notion of notification would be extended to pipes to reduce the boiler plate without the need for using fabrication?
Thanks for your explanation and I understand and appreciate your clear direction on change management. PureMvc works.
|
|
|
8
|
Announcements and General Discussion / General Discussion / Re: handling mx:state view creation and view re-activation in mvc
|
on: December 28, 2008, 11:08:44
|
just to add code context ... a sample below:
//parent code ... // state s1 adds component c1. // c1 fires a creationComplete to the parent, which in turn fires // EVENT_C1_CREATED to inform the mediator // // watch I had to keep a boolean flag as state to track the creation.
<mx:states> <mx:State name="s1"> <mx:AddChild> <mx:target> <components:C1 id="c1" onc1CreatedEvent="_bc1Created = true; dispatchEvent(new Event(EVENT_C1_CREATED));"/>
//base state //As the user may reactivate S1 after initial creation, the mediator needs to know again. // the boolean flag is checked to re fire the creation event to allow the mediator to do whatever....
<components:B1 id="b1" c1SelectedEvent="currentState='customScanInputState'; (_bc1Created)?dispatchEvent(new Event(EVENT_C1_CREATED)):''"
This is a mess. I hope someone can provide me guidance.
Thank you.
|
|
|
12
|
Announcements and General Discussion / Architecture / Re: listNotificationInterests
|
on: June 26, 2008, 08:26:38
|
Also Cliff forgot to mention that the mediator try to access unique notification by accessing a public variable implemented in GenericView, but populared by the ServiceView.
So how can I access a view property before executing listNotificationsInterests? I am assuming the view coupling is after mediator creation, and here it looks like listNotificationsInterests happens before view coupling.
THANKYOU.
|
|
|
13
|
Announcements and General Discussion / Architecture / Re: listNotificationInterests
|
on: June 26, 2008, 08:21:08
|
Cliff thanks. I understand your info, but I am missing one more thing. So really appreciate your insight.
My use case is simple. Verify a bunch of HTTP services. The request params are prompted using Form. Although the services are different from each other, they also share a common set of parameters. So I implemented a GenericView with a standard form containing the common set of form items and the submit process. Next I extended the GenericView to respective Service#1View, Service#2View etc. Each ServiceView uses addChildAdd to introduce additional form items and overrides the submit process.
Now the ServiceViews are under a ViewStack. So the mediator gets handed the ServiceView Object accordingly. However the mediator does not know which child view was passed, so I simply cast to GenericView to access view attributes in the mediator, and I really only need access to attributes defined in the GenericView. Now since I don't know the view, I have to assign a generic notification id between the mediator and the model. However I can not support a multi threaded model effectively.
So if Service#1View was invoked, - I want the mediator to first retrieve the generic model. - Then mediator will tell generic proxy to notify back using notification "Service#1View". - Then mediator will kick off model process. - Model will notify using the "Service#1View" when it has fault or result event. - Mediator will then update the response area which is inside GenericView.
Explain to me what happens when the same instance of Flex runs Service#1View and Service#2View concurrently. I have to use a unique notification to track them.
What I am saying is I need listNotificationsInterest to be kicked off after the View object is created. While debugging I found that listNotificationInterest is executed as part of the construction phase. Is there a possibility of calling listNotificationInterest out of the event handler coming from the view submit event?
Thanks.
|
|
|
14
|
Announcements and General Discussion / Architecture / listNotificationInterests
|
on: June 26, 2008, 03:05:35
|
Pardon my limited expertise.
In implementing mediator on flex, I realize the listNotificationInterest method is executed during the construction of the mediator. Is there a method available to dynamically modify the notification list after mediator is constructed. I have a generic mediator which supports multiple views, so I want to include a notification in mediator under the event handler scope instead of the construction phase - as the notification value will only be available on creationComplete of the view.
Thank you.
|
|
|
|
|
|