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: creating and destroying mediators at runtime on: March 08, 2009, 05:21:16
thanks, that sounds good :)
2  PureMVC Manifold / Standard Version / creating and destroying mediators at runtime on: March 06, 2009, 04:31:40
hello,

what are the best practices to handle creation and destruction of mediators at runtime?

In my app, there is a "ContentMediator" which creates and initializes different types of dumb (non-interactive) subpages. Now there is an additional type of such subpage, which contains a contact form. I don't want the ContentMediator to know anything about that form, but instead I somehow want to connect something like a ContactFormMediator to the form.

ContentMediator could send a notification carrying the subpage each time some content is created; a command could be executed which checks the content type and creates the ContactFormMediator. Same thing for destroying content.

Is there any better way to accomplish this?

Cheers
Hannes
Pages: [1]