Does your VO class have the "[Bindable]" at the top of it?

-----Original Message-----
From: [email protected] on behalf of Douglas Knudsen
Sent: Thu 7/6/2006 11:05 PM
To: [email protected]
Subject: [flexcoders] modellocator and double bindings
 
Ok, before the big hoorah relase of FB 2 and cairngorm2 I had a app
that has a few forms in it bound to a VO hanging out in the
modellocator.  I used double bindings to display and update values in
the VO like this

<mx:Binding source="{mymodel.myVO.homeAddress.address1}"
destination="txtAddress1.text" />
        <mx:Binding source="{txtAddress1.text}"
destination="mymodel.myVO.homeAddress.address1" />

<mx:TextInput width="100%" id="txtAddress1" />

things worked swell.  Then came the update to Flez 2 and cairngorm and
teh above double binding attack bombs.  The txtAddrss1 input box is
diplayed empty and gets updated as empty too.  Yuk!

THe approach I have found to work is to use a local var as a pointer
and bind to it.  wierd.  So this works
[Bindable]
localAddy: Address = mymodel.myVO.homeAddress;

<mx:Binding source="{localAddy.address1}" destination="txtAddress1.text" />
        <mx:Binding source="{txtAddress1.text}" 
destination="localAddy.address1" />

<mx:TextInput width="100%" id="txtAddress1" />

Any thoughts?


-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?

-- 
WARNING
-------
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<<winmail.dat>>

Reply via email to