Skip to main content
Participant
March 4, 2010
Question

Presentation Model for dynamically generated components

  • March 4, 2010
  • 1 reply
  • 658 views

I've examined the Cairngrom 3 Beta examples and i'm very glad that it's now about MVP and IoC.

But there is one Promblem which is not covererd neither by the Cairngorm examples nor by any of the IoC framework providers:

What if you have custom ItemRendereres or Repeater components or just adding childs dynamically in action script?

Which would be the best way to inject PM's and establsih communication is such an environment?

This topic has been closed for replies.

1 reply

Participating Frequently
March 22, 2010

Using custom item renderers/editors, you'd drive your PM from i.e. the data property. The Insync sample doesn't show item renderes but a repeated component (ContactForm) inside a TabNavigator. That's getting a PM injected each time a new instance of the same view is created via Parsley's singleton property set to false via the context.