Skip to content
mhrivnak edited this page Apr 13, 2011 · 4 revisions

PlaceManager is a tool that works within PureMVC to present named view components to the user based on requests.

For example, a basic application may have a login view, a home page, and a couple of pop-up dialogs. Each of these gets a name, and when the time is right for the user to see one of these views, a notification is dispatched using PureMVC's message bus requesting the presentation of that view by name. PlaceManager translates that name into an actual component and delivers it to the pre-determined container.

In the case of dialogs, when requested, the correct modal dialog is presented.

Features

  • Each view component is imported and referenced in only one place.
  • Optionally specify a Mediator to go with each component, and it will be retrieved from the facade or automatically registered if necessary at request time.
  • Components are cached to fulfill later requests.
  • Other parts of your application can listen in on these messages to track what the user is viewing. For example, you could easily integrate this with Google Analytics.
Clone this wiki locally