Skip to main content
Participant
October 12, 2008
Question

Cairngorm updating the view based on the model

  • October 12, 2008
  • 1 reply
  • 1375 views
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 has been closed for replies.

1 reply

Participant
May 30, 2009

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