Nice catch! That didn't seem to be causing the problem but thanks for pointing it out.
I've simplified the case in that I'm not calling the web service anymore, just flipping the enabled property but binding still is not updating. Any other ideas? Thanks, John On Mar 10, 2009, at 10:53 AM, valdhor wrote: > I don't know if this is your problem but one thing I noticed is youu > have an ambiguous set of your enabled property. You have > > enabled = enabled; > > which (I assume) is to set the enabled property of your class to the > enabled parameter that is passed in. This won't work. You should have > > this.enabled = enabled; > > or change one of the parameter names. > > --- In flexcoders@yahoogroups.com, John Robinson <jrobi...@...> wrote: >> >> I have a strange issue with data binding not updating when an item in >> an ArrayCollection is changed. I'm using Cairngorm and have the >> following setup. In my ModelLocator I have a 'users' ArrayCollection >> that contains 'UserVO' objects. I have a two views that binds their >> dataProvider to the 'users' AC in the ModelLocator. My UserVO looks >> like so: >> >> package com.jrobinson.model.VO >> { >> [Bindable] >> public class UserVO >> { >> public var id:int = -1; >> public var username:String = null; >> public var enabled:Boolean = false; >> public var userData:XMLList = null; >> >> >> public function UserVO(user_id:int, uName:String, >> enabled:Boolean, >> d:XMLList) >> { >> id = user_id; >> username = uName; >> enabled = enabled; >> userData = d; >> } >> >> } >> } >> >> I first have a command that loads all of the users and populates the >> AC. This updates the bindings as expected. I then have a second >> command that loads the userData portion for a given user. Once >> retrieved, I update the given UserVO's userData, but this time, the >> bindings fail to update. >> >> I feel like I've seen this before but can't find where or what the >> workaround might be. I guess I'm just looking for confirmation that >> this should or shouldn't work. >> >> Thanks! >> John >> > > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo > ! Groups Links > > > John Robinson - Flash/Flex Developer at large Blog: http://jrobinsonmedia.wordpress.com John Robinson - Flash/Flex Developer at large Blog: http://jrobinsonmedia.wordpress.com