Re: [FlexJS] Data-binding fails when following multiple references

2017-02-15 Thread sankar
Great Piotr, Thank you! I shall give it a try soon possible! I'll keep you updated. Thanks! -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p59506.html Sent from the Apache Flex Developm

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-15 Thread piotrz
Sankar, Build with my fixes is online: http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/2009/ You can grab it through the installer. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-b

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-13 Thread piotrz
I think I have provided all the fixes. Comments in jira has been added. :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p59335.html

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-12 Thread sankar
Hi Piotr, Sure, if we need to move early (than you fix) we'll probably need to move with the basic proven way of binding (to tab type of components). But I'm afraid some of the application here based on rendering dynamic data. Thus tabs and some other items shall be drawn after data available to t

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-11 Thread piotrz
Sankar, If you wanna move forward with your application you can always use data binding as we show it in example. It seems that it takes me more time what actually is broken in case od Tabs. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-f

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-09 Thread piotrz
Hi Sankar, I just pushed fix for your failing, but Binding is still something which I will be looking - probably today. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-fo

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-09 Thread sankar
piotrz wrote > Put into model only one model and it should work. Hi Priotr, I'm okay with adding only one model class in tag. I also tested if I declare an external class having data for Table component in tag and then bind to Table component, that does work. But Tabs and TabBar component sti

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-08 Thread Alex Harui
On 2/8/17, 12:17 PM, "piotrz" wrote: >Hi Sankar, > >I did look into that. Here where the problem is. We have tag - >which >looks like can contains only one model. Once you declare: > > > > > Seems like there should have been a compiler error here. -Alex

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-08 Thread piotrz
Hi Sankar, I did look into that. Here where the problem is. We have tag - which looks like can contains only one model. Once you declare: After compilation only the last one was picked up and put into the strand. Since you were used the first one Binding was

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-08 Thread piotrz
Alex, He means that he has simple Model in MXML and push array to the component: I'm going to look into that today. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-devel

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-08 Thread Alex Harui
On 2/7/17, 10:56 PM, "sankar" wrote: >piotrz wrote >> I just resolved your jira. Take a look into the comments and let me know >> if anything is wrong. > >Hi Priotr, > >I just looked into. Most of the components now working nicely! Thanks! >Yet a >few components missing their bracketed binding

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-07 Thread sankar
piotrz wrote > I just resolved your jira. Take a look into the comments and let me know > if anything is wrong. Hi Priotr, I just looked into. Most of the components now working nicely! Thanks! Yet a few components missing their bracketed binding ways. If you please take a look into my findings a

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-07 Thread piotrz
Hi Sankar, I just resolved your jira. Take a look into the comments and let me know if anything is wrong. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multip

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-06 Thread sankar
Hi Piotr, I've created a JIRA issue pointing bracketed binding problems to MDL components. You can find it at here: https://issues.apache.org/jira/browse/FLEX-35256 Please, take a look. Thanks! -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Dat

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-05 Thread sankar
Hi Piotr, Sorry it's my bad. I was busy lately with other things running here. I shall plan to putup a demo with MDL on binding problems. I shall let you know. At present I'm updating recent source from Apache repository. Thanks! -- View this message in context: http://apache-flex-develo

Re: [FlexJS] Data-binding fails when following multiple references

2017-02-04 Thread piotrz
Hi Sankar, What's with your binding issue ? Do you still experience it? I don't see any jira about that. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multipl

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-31 Thread Carlos Rovira
Hi Sankar, IMHO, you should not introduce FlexJS components from HTML but the ones that introduce simple tags like Span, H1, A, and so on... Layouts in MDL are performed with layout components: https://getmdl.io/components/index.html#layout-section So the ones that we created in MDL library The

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-30 Thread sankar
Hi Piotr, Carlos, Thanks for replying. I understand that the things now in random testing phase and some functionalities may found still not implemented, i.e. bracketed binding to some components. I shall plan to create JIRA issue with examples for yours easy. Talking something else, I was won

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-30 Thread Carlos Rovira
Hi Sankar, as Piotr said, let us know what you find. Our way to work on MDL was: 1.- Get all components in place and with exact HTML structure 2.- Get Flex Events work mapping MDL ones 3.- ... try example when see what's missing --> I think we are here right now So Data binding could be one of t

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-30 Thread piotrz
Hi Sankar, Please specify what is broken and in which case. If you can raise a jira with example I will be looking into that. :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fa

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-29 Thread sankar
It looks like data binding is terribly broken in MDL components. Any plan to work on this soon? Thanks! -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p58785.html Sent from the Apache

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-19 Thread sankar
I updated with latest compiler, and I confirm it's working fantastic! Thank you for yours effort Alex, Piotr. I've updated the JIRA issue as well. Thanks! -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-r

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-19 Thread piotrz
Alex, Everything is working fine. I tested it with sub classes inside class etc. It looks really good. I will resolve jiras. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-17 Thread piotrz
Hi Alex, Thank you! Just tested it and it seems that multiple references working fine now. I will do more tests tomorrow my time. :) If everything go well I will resolve both jiras and upload to jira my final code. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in c

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-17 Thread Alex Harui
Hi Piotr, I think you should now get 3 things in the array. There might still be an issue with the property watchers, not sure. Let me know what you find out. Thanks, Alex On 1/13/17, 1:45 PM, "Alex Harui" wrote: >IMO, the output should be: >["anyClass", "subClass", "fieldC"] > > > >I will l

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread Alex Harui
IMO, the output should be: ["anyClass", "subClass", "fieldC"] I will look into it. -Alex On 1/13/17, 1:42 PM, "piotrz" wrote: >Alex, > >I think in case of subClass again _bindings [1] array is wrong. Cause >sourceID is being searched in View - Take a look: > >

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread piotrz
Alex, I think in case of subClass again _bindings [1] array is wrong. Cause sourceID is being searched in View - Take a look: I think in case of subClass it should look or something like that: ["anyClass.subClass",

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread piotrz
I just tested your last commit and it's working, so multiple ref binding is still which I need to investigate. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-mu

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread piotrz
In AS class A [1], B [2], InitView [3] and A [4] before I change subClass to getter/setter/ [1] https://paste.apache.org/YRqm [2] https://paste.apache.org/Gwsl [3] https://paste.apache.org/6q5m [4] https://paste.apache.org/DlLs - Apache Flex PMC piotrzarzyck...@gmail.com -- View this messag

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread Alex Harui
Yeah, I wanted to see what the original data binding expression looks like. Thanks, -Alex On 1/13/17, 12:59 PM, "piotrz" wrote: >Alex, > >Do not understand - You need MXML code? > >Piotr > > > >- >Apache Flex PMC >piotrzarzyck...@gmail.com >-- >View this message in context: >http://apache-f

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread piotrz
Alex, Do not understand - You need MXML code? Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p58270.html Sent from the Apache Flex

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread piotrz
Source for A [1], B [2] and InitView [3] [1] https://paste.apache.org/6YzL [2] https://paste.apache.org/hMCA [3] https://paste.apache.org/QfK3 Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Dat

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread Alex Harui
I'm looking for the MXML file with the {} expression. Thanks, -Alex On 1/13/17, 12:46 PM, "piotrz" wrote: >Source for A [1], B [2] and InitView [3] > >[1] https://paste.apache.org/6YzL >[2] https://paste.apache.org/hMCA >[3] https://paste.apache.org/QfK3 > >Piotr > > > >- >Apache Flex PMC >

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread Alex Harui
Please post the source as well. On 1/13/17, 12:25 PM, "piotrz" wrote: >With getter and setter class B has been created, but Binding doesn't >work. I >will take a look in that scenario what is happening with binding. >Generated binding array [1] > >[1] https://paste.apache.org/LodF > >Piotr > > >

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread piotrz
With getter and setter class B has been created, but Binding doesn't work. I will take a look in that scenario what is happening with binding. Generated binding array [1] [1] https://paste.apache.org/LodF Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread Alex Harui
OK. I will take a look. But if you workaround it by using getter/setter and not a [Bindable] var, does that allow the chain to work? -Alex On 1/13/17, 12:13 PM, "piotrz" wrote: >Alex, > >I see the problem it's probably again in the compiler. I have two classes >A[1] and B[2]. Class B is being

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread Alex Harui
OK. There should be an array of 3 properties in the data binding structure. It shouldn't give up and create a getter function. Then, ViewDataBinding may need to detect that and use a ChainBinding. It could borrow code from ContainerDataBinding. -Alex On 1/13/17, 12:04 PM, "piotrz" wrote: >I

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread piotrz
Alex, I see the problem it's probably again in the compiler. I have two classes A[1] and B[2]. Class B is being created in A, but after compilation I have null there. Generated Class A [3] - Doesn't contain B at all. [1] https://paste.apache.org/t5pH [2] https://paste.apache.org/ji8J [3] https://

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread piotrz
I just tested it and it's working fine. Now we have clean VO object without dispatching anything inside and in view. :) Multiple reference binding is still not working. I will take a look now to this closer. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-13 Thread Alex Harui
OK. I pushed changes that should generate the code code for [Bindable] on getter/setters. HTH, -Alex On 1/10/17, 2:38 PM, "piotrz" wrote: >No problem - "patient" - will be my second name :) > >I just did small clarification for code in ViewDataBinding. I will commit >it >along with this first f

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread piotrz
No problem - "patient" - will be my second name :) I just did small clarification for code in ViewDataBinding. I will commit it along with this first fix for this jira. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.24

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread Alex Harui
On 1/10/17, 12:11 PM, "piotrz" wrote: >Alex, > >I think I have fix on flexjs sight, so waiting on your changes in >compiler. Looks like a significant amount of work, so don't hold your breath ;-) -Alex

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread piotrz
Alex, I think I have fix on flexjs sight, so waiting on your changes in compiler. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread piotrz
I reported something similar, so it may be related. https://issues.apache.org/jira/browse/FLEX-35236 Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-re

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread Alex Harui
OK, sounds like the generated code for [Bindable] on getter and setters is broken. I will take a look. -Alex On 1/10/17, 10:28 AM, "piotrz" wrote: >Alex, > >I just wanted to write it that compiled class doesn't contains it [1]. >Additionally what is funny - debugger do not stop when generate s

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread piotrz
Alex, I just wanted to write it that compiled class doesn't contains it [1]. Additionally what is funny - debugger do not stop when generate setter is ClassA.prototype.set__fieldA = function(value) { this._fieldA = value; }; but it's do work when I have following ClassA.prototype.set__fieldA

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread Alex Harui
On 1/10/17, 10:02 AM, "piotrz" wrote: >Alex, > >I was also thinking that it shouldn't necessary be in that case generic >binding, but again it is all about condition. > >In case of ViewBinding condition is > >if (binding.source is Array >&& binding.source[0] == "applicationModel" >&& binding.so

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread Alex Harui
Hi Piotr, In the code you posted links to, fieldA has a getter marked with [Bindable]. The compiler should output code that converts ClassA to extend EventDispatcher and wrap the setter to dispatch a valueChange event and then things should work. If that isn't the case that would be where the bu

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread piotrz
Alex, Answer for you second question - "fieldA" do not dispatch "valueChanged" event. If I have to dispatch it manually from setter I will need also extend my simple VO class by Dispatcher. I doubt that is the case. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread piotrz
Alex, I was also thinking that it shouldn't necessary be in that case generic binding, but again it is all about condition. In case of ViewBinding condition is if (binding.source is Array && binding.source[0] == "applicationModel" && binding.source.length == 2 && binding.destination.length ==

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread Alex Harui
On 1/9/17, 11:45 PM, "piotrz" wrote: >Sankar, > >Yes I know, but I've started to investigate why you need to dispatch any >events from VO class in order to have workable Binding. - If someone can >shed some light on this - Is it how we should work with our classes which >we >are writing ? In a

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread Alex Harui
On 1/9/17, 10:43 PM, "piotrz" wrote: >Sorry View code should be this one -> https://paste.apache.org/bPbC I didn't see this until I'd already replied. So when you dispatch "valueChanged" and had [Bindable("valueChanged")] on anyClass you were telling the binding system that anyClass changed w

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread Alex Harui
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

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread sankar
I'm from India Piotr. :) -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p58082.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread piotrz
Understand, so it is probably the way we should go, but for sure you don't need to extend your VO class by EventDispatcher. This investigation helped me with your issue with multiple references. I will be investigate it farther later today. Sankar just out of curious - where are you based ? What

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-10 Thread sankar
piotrz wrote > Yes I know, but I've started to investigate why you need to dispatch any > events from VO class in order to have workable Binding. This is how field binding to UI component has demonstrated in the example(s) that supplied within Apache FlexJS SDK. I followed that only; And I vaguely

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-09 Thread piotrz
Sankar, Yes I know, but I've started to investigate why you need to dispatch any events from VO class in order to have workable Binding. - If someone can shed some light on this - Is it how we should work with our classes which we are writing ? Piotr - Apache Flex PMC piotrzarzyck...@gmail

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-09 Thread sankar
Actually the above scenario was always working in my tests also, previously, when you binding a field to an UI component in single reference way, i.e., {anyClass.fieldName}*"/> But, this never works if you the field name comes after multiple references, i.e., {anyClass.anotherClass.fieldName}*"/>

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-09 Thread piotrz
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

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-09 Thread piotrz
Sorry View code should be this one -> https://paste.apache.org/bPbC - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p58064.html Sent from the

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-09 Thread sankar
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(ev

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-09 Thread PKumar
@Sanker, 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] privatevar anyClass:ClassA = new ClassA(); protected function onTextInputChangeA(event:Event):void {

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-08 Thread sankar
Sounds great! Thank you, Piotr! -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p58031.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-08 Thread piotrz
Hi Alex, Santanau, Since I was digging lately a bit in data binding on flexjs sight - I will try to look into that. Let you know whether this is a compiler o FlexJS sight. :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-08 Thread sankar
Alex Harui wrote > How are the three elements defined? IOW: what is anyClass, a variable, a > getter/setter, a [Bindable]? What about subClass? > > Where there any warnings in the compiler output? Here is an example code snippets that should demonstrate the problem I described above. MyIniti

Re: [FlexJS] Data-binding fails when following multiple references

2017-01-08 Thread Alex Harui
How are the three elements defined? IOW: what is anyClass, a variable, a getter/setter, a [Bindable]? What about subClass? Where there any warnings in the compiler output? -Alex On 1/8/17, 9:07 PM, "sankar" wrote: >Hi, > >I've reported this issue to JIRA at: >https://issues.apache.org/jira/b