Hi Piotr,

If I understand correctly, this example is working as expected.  When you
use just plain "[Bindable]" the compiler will generate getter/setters and
dispatch "valueChange" events for you.  When you use
"[Bindable("someEventName")]" you are responsible for dispatching that
event somewhere in your code.  The compiler will not change your code.

HTH,
-Alex

On 1/9/17, 10:42 PM, "piotrz" <piotrzarzyck...@gmail.com> wrote:

>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
>works. 
>Code:
>VO -> https://paste.apache.org/UVh7
>View -> https://paste.apache.org/GI5n
>
>After compilation _bindings array look like that ->
>https://paste.apache.org/m5oA
>
>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
>called. 
>
>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.
>
>Piotr
>
>
>
>
>
>-----
>Apache Flex PMC
>piotrzarzyck...@gmail.com
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Data-binding-f
>ails-when-following-multiple-references-tp58022p58063.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to