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 / General Discussion / How to manage multi-view in one mediator? on: October 14, 2008, 09:20:18
Hi,

According to best pratice, a Mediator can be shared by several views. When initializing a mediator, we should pass that view component to constructor.
Now, I want to manage two relevant views in a mediator, one of which is to show the user list and the other of which is to edit the single entry. Since they are two different view components, how can I initialize the mediator?

public function Mediator( mediatorName:String=null, viewComponent:Object=null )

Thanks a lot.

yancaoshi
2  Announcements and General Discussion / General Discussion / How to manage notifications? on: October 14, 2008, 07:20:51
Hi,

I  am still on the way to pureMVC and I find it's really tough to trace who is processor to some notification. Since notifications are broadcasted to the whole application, there's no clue to know who will process the notification from the broadcaster. Therefore, it's not easy to trace.

Anybody has suggestion to manage notifications?

Best regards,
yancaoshi
3  Announcements and General Discussion / General Discussion / Where should business logic been processed strictly? on: October 04, 2008, 05:13:52
As most knew, it shuold be taken into account at Controller - Command in pureMVC architecture. But it seems, also I saw in some demos, that simple logic such as validating user input is processed in Mediator. Since Mediator is the manager of Views, I don't understand the role mediator acts. Of course it's clear to do simple check in Mediator, but View&Controller aren't separated clearly, right?

Would anybody offer me some help? Thanks!
Pages: [1]