flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piotrz <piotrzarzyck...@gmail.com>
Subject Re: [FlexJS] Data-binding fails when following multiple references
Date Tue, 10 Jan 2017 06:42:59 GMT
Alex, Sankar,

I did some investigation. Here is where I'm now. I did simplification of
Sankar's code. Some things is no needed in my opinion and binding should
VO -> https://paste.apache.org/UVh7
View -> https://paste.apache.org/GI5n

After compilation _bindings array look like that ->

ViewDataBinding checking the condition and decide that will create generic
binding - execute -> makeGenericBinding. Inside it's create PropertyWatcher
object who is registering on "valueChanged" events.

VO for fieldA has some default value. ("Change Value..")

- When we have first initialization of this ViewDataBinding function
"makeGenericBinding" do his job - Register PropertyWatcher. Inside this
class call: parentChanged (registration for "valueChanged") and update
bindable property by "updateProperty". - Init is OK.

- I'm changing something in my TextInput and "onTextInputChangeA" has been

1) Binding is not working: getter "anyClass" is being fired, but no changes.
2) If I dispatch commented event "valueChanged" - PropertyWatcher class is
properly calling "changeHandler" function and Binding is working fine.

First questions:
- Should we have a BUG or maybe this is how it works in FlexJS ? 

I will go farther with this, but I'm trying to think loudly to get some help
on this one. I will attach to jira changed example with pom file.


Apache Flex PMC
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p58063.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

View raw message