[flexcoders] Re: Two-Way Binding Solutions?

2007-03-26 Thread Shaun
can you not just create a new ContactVO with your form control values when the user goes to save their changes, and, depending on the result from the server, either set your form controls back to the model (you'll have to assign them manually as binding won't fire if the values don't change)

[flexcoders] Re: Two-Way Binding Solutions?

2007-03-26 Thread simonjpalmer
You are right, it is because your model.pendingContact and model.newContact are object references and not object instances. When you do the assignment you are just pointing them to the same object in memory - 2 references, 1 object. In your second case you create a second object, 2 objects, 2

Re: [flexcoders] Re: Two-Way Binding Solutions?

2007-03-26 Thread Kevin
Thanks for you thought on this. Actually the only reason that I need a copy of the object is to achieve the binding from the text field back to the data model. I created a simple function to bind the text field to a data model: private function bindToInput(event:FlexEvent):void{