PKumar wrote
> I checked the same scenario with minor changes. You need to use bit more
> code to achieve the binding in FlexjS. use following code to achieve
> correct binding behavior,
>
> [Bindable]
*
> public
*
> var anyClass:ClassA = new ClassA();
> protected function onTextInputChangeA(event:Event):void
> {
> anyClass.fieldA = myTI1.text;
> }
>
> protected function onTextInputChangeB(event:Event):void
> {
> anyClass.subClass.fieldB = myTI2.text;
> }
> ...
> <js:valuesImpl>
>
> <js:SimpleCSSValuesImpl />
>
> </js:valuesImpl>
*
>
> <js:beads>
>
>
> <js:ApplicationDataBinding />
>
>
> </js:beads>
*
>
> <js:VContainer width="500">
> ...
>
> <js:TextInput id="myTI1" text="Change Value"
> change="onTextInputChangeA(event)"/>
>
> <js:Label id="lbl" text="{anyClass.fieldA}" width="300"/>
> </js:VContainer>
> <js:VContainer width="500">
Unfortunately, that didn't worked for me. You probably put all the codes in
<js:Application> file; My codes are all in a separate view and called into
<js:InitialView> in main application file. I tried to put the
<js:ApplicationDataBinding> tag in my View file (which I tried already in
past) but that didn't helped. Nor if I put the tag in main application file.
PKumar wrote*
> Also do not extend the eventdispatcher and use the [Bindable] tag on
> class level as we used in regular FlexSDK.
*
I'm not sure about the above point. Both of my demonstrated classes doing
set/get to it's field, which dispatching change event also - don't I need to
extend EventDispatcher? I haven't made any changes to my classes yet, but if
that is a gamechanger then please guide me.
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p58061.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.