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 / Standard Version / Re: Register Mediator on: June 09, 2009, 04:45:49
I understood the reason for must not register a Mediator at view component. This makes sense at PureMVC.

But, it's very strange create a command just to register a Mediator. I think we can create a command for register many Mediators.

In my case, I have 3 Proxys and 10 Mediators. The business logics I implement in 3 Commands.

Thanks for help!
2  PureMVC Manifold / Standard Version / Register Mediator on: May 29, 2009, 07:34:17
Hey PureMVC Coders,

What's the best place to register a Mediator? In a Command, facade method, in the View Component or other place?

I don't see a reason to create a command just register a mediator. I prefer to register in the View Component, at creationComplete handler. I guess it is more simple and straight to the point!

I'm doing this, inside the View Component:

private function init():void
{
   facade.registerMediator( new UserAddMediator(this) );
}

Is it right?

Thanks,
Saulo
Pages: [1]