This content has been marked as final. Show 3 replies
I have also got this problem on some of my variables instanciated in the model locator.
Did you come up with an solution on this?
I have run into this as well but I am not sure it is a Cairngorm problem.
I also ran into this issue with some objects that are not Cairngorm based.
I didn't have much luck in figuring out why it is a problem but use a binding statement as a work around.
<mx:Binding source="modelLocator.personData.emptstatus" destination="someLocalVariable" />
Your method would pass in the someLocalVariable as a argument.
It certainly seems that it should be bindable right to the modelLocator but until I can figure out why this error happens we just use the local bindable variable.
I already use the "[Bindable]" for modelLocator but why I can not bind "modelLocator.personData.emptstatus"
Your properties in your value object should also be declared bindable. Or you could just declare the whole PersonVO class as bindable:
public class PersonVO