Skip to main content
Participant
Oct 12, 2008 7:49 PM UTC
Question

Cairngorm updating the view based on the model

I have an ArrayCollection in my model which represents what the view should show, when I update that array collection, a listener to that array collection does the actual UI component changes.

At present, my listener code is in my view mxml files, and it listens for changes in an array collection (add, update, delete etc.) and modifies the view accordingly.

Is the view the appropriate place to have the code for this?
Also, what is the best way to go about modifying the view when your view is based on a complex data model where simple data binding doesn't work?
This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participant
May 30, 2009 4:40 PM UTC

This should solve your problems. You just take the view actions based on the completion of execution of the given commands.

Translate