Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-10 Thread OmPrakash Muppirala
Okay, I have merged it into the develop branch. Thanks Om On Mon, Jan 9, 2017 at 9:41 AM, piotrz wrote: > I think it pass experimentation state, Once you get a chance please merge > it > to develop. > > Thanks, > Piotr > > > > - > Apache Flex PMC > piotrzarzyck...@gmail.com > -- > View this

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-09 Thread piotrz
I think it pass experimentation state, Once you get a chance please merge it to develop. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Runtime-error-when-setting-a-property-to-a-constan

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-09 Thread OmPrakash Muppirala
On Jan 9, 2017 8:25 AM, "piotrz" wrote: Santanau, I will be looking into this issue [1] and I will try to test also your case with BindableCSSStyles on fontawesome branch where my fixes is and let you whether you need raise separate jira. Btw. Om do you plan soon merge fontawesome to develop ?

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-09 Thread piotrz
Santanau, I will be looking into this issue [1] and I will try to test also your case with BindableCSSStyles on fontawesome branch where my fixes is and let you whether you need raise separate jira. Btw. Om do you plan soon merge fontawesome to develop ? [1] https://issues.apache.org/jira/bro

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-09 Thread sankar
I was reading through this mailing thread. Recently I've created a post http://apache-flex-development.247.n4.nabble.com/FlexJS-Does-BindableCSSStyles-requires-any-particular-way-of-implementation-td58040.html against BindableCSSStyles class problem, and I noticed that LayoutChangeNotifier's /w

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-08 Thread piotrz
Hah Thank you Alex! :) And because of that I just took care for next jira related to Data Binding :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Runtime-error-when-setting-a-property-to-a-con

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-08 Thread Alex Harui
Good to know that it works for you. Congratulations Piotr, you can now claim to be one of the top 3 or 4 experts in FlexJS DataBinding. -Alex On 1/7/17, 10:57 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala" wrote: >I just tested the fix and everything works fine! Piotr and Alex, than

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-07 Thread OmPrakash Muppirala
I just tested the fix and everything works fine! Piotr and Alex, thanks for fix this so quickly - right in time for my weekend :-) Regards, Om On Sat, Jan 7, 2017 at 3:27 AM, piotrz wrote: > Alex, > > Thank you for help and testing. I had something wrong with the build. > > Om, > > Issue has b

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-07 Thread piotrz
Alex, Thank you for help and testing. I had something wrong with the build. Om, Issue has been successfully fixed. :) Currently fix on FlexJS sight is only on your fontawesome branch, Falcon sight fix is on develop. Once you merge it we will have it full tegrated then I will Resolve jira. Piotr

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-06 Thread Alex Harui
I just synced up everything and it seems to be working. In the compiler output, you should see things like: [java] Dependencies calculated for '/Users/aharui/git/flex/release/flex-asjs/examples/flexjs/FlexTeamPage_MDL/ bin/js-debug/org/apache/flex/fa/FontAwesomeIconSize.js' [java] Dependencie

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-06 Thread piotrz
Just small screenshot that I don't see classes although imports are in mxml. - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-06 Thread piotrz
Alex, I just provide fix from FlexJS sight. It's working if classes are in their place with compiled Team page. Just tried your fix but still result is same classes were not included in build. I jus pushed changes which allows you test your fixes in Flex Team page. Piotr - Apache Flex

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-06 Thread Alex Harui
OK, I pushed a change that should fix this in flex-falcon. See if that works better. -Alex On 1/6/17, 2:36 PM, "piotrz" wrote: >JS for MXML -> https://paste.apache.org/90gS > > > >- >Apache Flex PMC >piotrzarzyck...@gmail.com >-- >View this message in context: >http://apache-flex-developme

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-06 Thread piotrz
JS for MXML -> https://paste.apache.org/90gS - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Runtime-error-when-setting-a-property-to-a-constant-value-tp57874p57971.html Sent from the Apache Flex Develo

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-06 Thread Alex Harui
On 1/6/17, 1:33 PM, "piotrz" wrote: >Alex, > >I just test your changes on fontawesome branch and falcon produces correct >values, but another problem appears. > >Once I got my string how actually I can create in javascript my class ? > >1) Probably I need to have my class produced by compiler,

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-06 Thread piotrz
Alex, I just test your changes on fontawesome branch and falcon produces correct values, but another problem appears. Once I got my string how actually I can create in javascript my class ? 1) Probably I need to have my class produced by compiler, but it doesn't happen. If I have in mxml script

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-06 Thread Alex Harui
OK, I think the compiler handles both cases now. You should see ["org.apache.flex.fa.FontAwesomeIconType", "GLASS"] in the data. -Alex On 1/5/17, 1:22 PM, "Alex Harui" wrote: > > >On 1/5/17, 12:05 PM, "piotrz" wrote: > >>Exactly I even have the code ready but I need to wait for your fix,

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread Alex Harui
On 1/5/17, 12:05 PM, "piotrz" wrote: >Exactly I even have the code ready but I need to wait for your fix, cause >currently if run this code: > >iconType="{org.apache.flex.fa.FontAwesomeIconType.GLASS}" size="fa-lg" /> > >I have in my _bindings array something like that > > function() { return

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread piotrz
Exactly I even have the code ready but I need to wait for your fix, cause currently if run this code: I have in my _bindings array something like that function() { return org.apache.flex.fa.FontAwesomeIconType.GLASS; }, so source is an function - It should be simple string ["org.apache.fle

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread Alex Harui
On 1/5/17, 11:44 AM, "piotrz" wrote: >Ok I will handle code with package on FlexJS sight and force to generic >binding. Hi Piotr, IMO, you want to try to use a ConstantBinding and not force to generic binding. GenericBinding is pretty heavy. So I think if the source is null, and eventNames

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread piotrz
Ok I will handle code with package on FlexJS sight and force to generic binding. Jira: https://issues.apache.org/jira/browse/FLEX-35239 Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Runtime-er

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread Alex Harui
On 1/5/17, 11:04 AM, "piotrz" wrote: >Alex, > >I have no idea how can I check whether "FontAwesomeIconType" (sourceID) >is a >class based on this code: > >["FontAwesomeIconType", "GLASS"] > >I know that in case of Flash I have getQualifiedClassName or >getDefinitionByName, but even that if I ha

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread piotrz
Alex, I have no idea how can I check whether "FontAwesomeIconType" (sourceID) is a class based on this code: ["FontAwesomeIconType", "GLASS"] I know that in case of Flash I have getQualifiedClassName or getDefinitionByName, but even that if I have above string without package I got from this met

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread Alex Harui
On 1/5/17, 9:29 AM, "piotrz" wrote: >Alex, > >Understand, but where I should put these code ? ConstantBinding should >handle such case ? Yes, ConstantBinding should handle it. There may be a similar issue with binding to static variables in other classes, but I wouldn't worry about that just

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread piotrz
Alex, Understand, but where I should put these code ? ConstantBinding should handle such case ? Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Runtime-error-when-setting-a-property-to-a

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread Alex Harui
Hi Piotr, Thanks for digging into it. It looks like ConstantBinding hasn't been written to handle an external constant. In looking through all of our examples, there is binding only to constants in the same document. So please add code to handle external constants. Thanks, -Alex On 1/5/17, 1:

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread piotrz
Om, I'm working on your branch with this bug. Just updated it with newest changes from develope. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Runtime-error-when-setting-a-property-to-a-consta

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread piotrz
Stack trace -> https://paste.apache.org/Q3xt - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Runtime-error-when-setting-a-property-to-a-constant-value-tp57874p57936.html Sent from the Apache Flex Develo

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-05 Thread piotrz
Alex, I've made the changes where constant binding is being fired, but story is still same. In set strand of ConstantBinding FontAwesomeIconType is being searched in document. Since FontAwesomeIconType is not a property of this document it doesn't exists there.

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-04 Thread Alex Harui
On 1/4/17, 12:02 PM, "piotrz" wrote: >Alex, > >I've went through the code and it seems that it can be no problem with >ItemRendererDataBinding. > >In _bindings array I have > > ["FontAwesomeIconType", "GLASS"] > >In ItemRendererDataBinding there is condition in set strand > >if (binding.source i

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-04 Thread piotrz
Alex, I've went through the code and it seems that it can be no problem with ItemRendererDataBinding. In _bindings array I have ["FontAwesomeIconType", "GLASS"] In ItemRendererDataBinding there is condition in set strand if (binding.source is Array && binding.source.length == 2 && binding.des

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-04 Thread piotrz
Hi Alex, Wow! No problem I just needed some tip where to look. So I will go deeper into ItemRendererDataBinding once I finish playing with Tabs in MDL :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-04 Thread Alex Harui
Hi Piotr, You made my day by being willing to dig into this. If you can continue to dig, I suggest trying to understand why the code in ItemRendererDataBinding didn't go down one of the code paths that create a ConstantBinding. Thanks, -Alex On 1/4/17, 12:36 AM, "piotrz" wrote: >Om, > >I know

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-04 Thread piotrz
Om, I know what happened, but not sure where fix should go. Compiler or ItemRendererDataBinding. Once project is built in MemberItemRenderer itemRenderers.MemberItemRenderer.prototype._bindings which contains all bindings. [1] As you can see array has: ["FontAwesomeIconType", "GLASS"], ItemRen

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-03 Thread OmPrakash Muppirala
Thank you! On Tue, Jan 3, 2017 at 11:34 PM, piotrz wrote: > Thank you Om! I'm looking into that. > > > > - > Apache Flex PMC > piotrzarzyck...@gmail.com > -- > View this message in context: http://apache-flex- > development.247.n4.nabble.com/FlexJS-Runtime-error-when- > setting-a-propert

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-03 Thread piotrz
Thank you Om! I'm looking into that. - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Runtime-error-when-setting-a-property-to-a-constant-value-tp57874p57885.html Sent from the Apache Flex Development ma

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-03 Thread OmPrakash Muppirala
On Tue, Jan 3, 2017 at 10:17 PM, piotrz wrote: > Hi Om, > > Did you commit this code somewhere ? I don't see it in your branch > fontawesome. Can you commit ? > I pushed everything into the feature/fontawesome branch. The fontawesome library has all the required code and the flexteampage_mdl pr

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-03 Thread piotrz
Hi Om, Did you commit this code somewhere ? I don't see it in your branch fontawesome. Can you commit ? I was trying also run team page project and got following error: XMLHttpRequest cannot load http://flex.apache.org/team/team.json. No 'Access-Control-Allow-Origin' header is present on the requ

Re: [FlexJS] Runtime error when setting a property to a constant value

2017-01-03 Thread OmPrakash Muppirala
I tried changing public static const APPLE:String = "fa-apple"; to public static var APPLE:String = "fa-apple"; I see a warning about data-binding, and I am still getting the same error in runtime. On Tue, Jan 3, 2017 at 6:28 PM, OmPrakash Muppirala wrote: > This works: > > > > T