Skip to main content
Participant
March 15, 2009
Question

Cairngorm and Presentation Model

  • March 15, 2009
  • 1 reply
  • 1750 views
I am using the Presentation Model (PM) to architecture a Flex/Cairngorm application.

The implementation of the PM goes fine, except that I am not sure of one thing: how to update your PM properties each time you update your domain model properties.

Does anyone have any thoughts on this? Examples of the PM can be found through Google but do not cover multi-view applications, or any extended implementation of the PM.

Any pointers to extended examples would be most welcome.
This topic has been closed for replies.

1 reply

Participant
January 21, 2010

Hi FlexFlip,

I'm considering starting to use PM or Passive View pattern and I wonder how did you solve this issue. I guess I could bind the domain model objects or properties (in the cairngorm model locator) from each PM instance according to what it needs. Finally I think it would be possible to get the labels of the view components from flex resourcebundle manager or from the pm, in this latter case the pm instances should look into the resource bundle. Have you found a better way?  I also wonder if you have made PM instances to reference the view or the view to reference and bind the PM instances properties.

thanks in advance.