Re: [FlexJS] Setting background colour at run time fails

2017-02-12 Thread Justin Mclean
Hi, > Raise a jira for Bindable - I will try to look into that. Here you go https://issues.apache.org/jira/browse/FLEX-35265 > What's the difference between BindableCSSStyles to ContainerDataBinding ? Code is very different looks like BindableCSSStyles just specifies the list of styles to

Re: [1/2] git commit: [flex-asjs] [refs/heads/develop] - - Fix not working numElements - Fix failing internalChildren function when element is undefined

2017-02-12 Thread yishayw
numElements works for me. The problem you found was with $numElements. I think we haven't seen a bug thus far because ContainerBase.$numElements just calls super.numElements which returns the number of elements in UIBase. Usually (always?) there's one component there, which is the internal

Re: [FlexJS] Setting background colour at run time fails

2017-02-12 Thread piotrz
Justin, Raise a jira for Bindable - I will try to look into that. What's the difference between BindableCSSStyles to ContainerDataBinding ? Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

Re: [FlexJS] Setting background colour at run time fails

2017-02-12 Thread Justin Mclean
Hi, >> Also using BindableCSSStyles like so doesn’t change the style box. In >> fact the initial style is not set either. >> >> Is it intended to be used in this way? If so that looks to be a bug to me. > > FlexStore uses BindableCSSStyles. See if that usage pattern works for you. I just did

Re: [FlexJS] Setting background colour at run time fails

2017-02-12 Thread Alex Harui
On 2/12/17, 10:07 PM, "Justin Mclean" wrote: >Hi, > >Also using BindableCSSStyles like so doesn’t change the style box. In >fact the initial style is not set either. > >Is it intended to be used in this way? If so that looks to be a bug to me. FlexStore uses

Re: [FlexJS] maven faling (WeakMap)

2017-02-12 Thread Alex Harui
Hopefully I fixed it. On 2/12/17, 3:25 PM, "Harbs" wrote: >It compiles in ant. It looks like the Maven build does not recognize >ES2015 APIs. I don’t know how to point it to the right typedefs.

Re: [FlexJS] CompressionUtils (linking scripts)

2017-02-12 Thread Alex Harui
On 2/12/17, 3:17 PM, "Harbs" wrote: >I just added a CompressionUtils class which uses ByteArray on the Flash >side and pako on the javascript side. > >It uses inject_html to link to the js because I don’t know of a better >way to currently do this. > >I don’t like this

Re: [FlexJS] Setting background colour at run time fails

2017-02-12 Thread Justin Mclean
Hi, Also using BindableCSSStyles like so doesn’t change the style box. In fact the initial style is not set either. Is it intended to be used in this way? If so that looks to be a bug to me. http://ns.adobe.com/mxml/2009; xmlns:js="library://ns.apache.org/flexjs/basic">

Re: Donating to Apache Flex

2017-02-12 Thread Alex Harui
On 2/12/17, 4:25 PM, "Justin Mclean" wrote: >Hi, > >> Don't worry about finances, that's an ASF corporate question - to start >> with, look at the directed funding proposal from the past President's >> report in a board report. > >Alex’s suggestion as I understand it

[FlexJS] HTTTPService modifies headers when it shouldn't

2017-02-12 Thread Justin Mclean
Hi, When running a HTTPServer call I'm getting the following browser errors: Refused to set unsafe header "Content-length" org.apache.flex.net.HTTPService.send @ HTTPService.js:167 Refused to set unsafe header "Connection" org.apache.flex.net.HTTPService.send @ HTTPService.js:168 Should

Re: [FlexJS] Setting background colour at run time fails

2017-02-12 Thread Justin Mclean
Hi, > [1] > http://apache-flex-development.247.n4.nabble.com/FlexJS-Applying-styles-td56104.html#a56120 Thanks for that, that’s unfortunate. I think both Flex and JS developers are going to run into that as they expect to be able to modify styles at runtime, in particular for simple UI

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

Re: [FlexJS] Setting background colour at run time fails

2017-02-12 Thread yishayw
See this [1] discussion. [1] http://apache-flex-development.247.n4.nabble.com/FlexJS-Applying-styles-td56104.html#a56120 -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Setting-background-colour-at-run-time-fails-tp59273p59277.html Sent from

Re: [FlexJS] Uncaught type exception

2017-02-12 Thread Alex Harui
On 2/12/17, 1:39 AM, "piotrz" wrote: >Alex, > >In case of raised jira by Justin - do you think that bug is inside >compiler >or do you want me to look into that? You are welcome to look into it. Maybe you or Justin can build the exact same test case in regular Flex

[4.16.0] # Apache Flex SDK 4.16.0 nightly build 232: Successful

2017-02-12 Thread flex . ci . builds
flex-sdk_release-candidate - Build #232 - Successful Changes since last build: No changes For more information, check the console output at http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_release-candidate/232/.

Re: Donating to Apache Flex

2017-02-12 Thread Justin Mclean
Hi, > Don't worry about finances, that's an ASF corporate question - to start > with, look at the directed funding proposal from the past President's > report in a board report. Alex’s suggestion as I understand it doesn’t seem to fit with the above experiment. Alex (please correct me if I’m

[FlexJS] Setting background colour at run time fails

2017-02-12 Thread Justin Mclean
Hi, Any reason this may fail (ie the box isn’t turned form black to red) when clicking on the button? I can see that parseStyles is working correctly and returning {background-color: "red”} and I can see that a stylesChanged event is being dispatched. Is it a bug or is there another way you

Re: [FlexJS] maven faling (WeakMap)

2017-02-12 Thread Harbs
It compiles in ant. It looks like the Maven build does not recognize ES2015 APIs. I don’t know how to point it to the right typedefs. > On Feb 13, 2017, at 1:19 AM, Carlos Rovira wrote: > > Hi, > > Harbs I think something goes wrong with your last commit. Could you

Re: [FlexJS] Stuck due to "Dictionary"

2017-02-12 Thread Harbs
I did not know there are polyfills, but it looks like I did a (simplified) solution similar to what I see here: https://github.com/Benvie/harmony-collections/blob/master/harmony-collections.js I already uploaded

[FlexJS] maven faling (WeakMap)

2017-02-12 Thread Carlos Rovira
Hi, Harbs I think something goes wrong with your last commit. Could you take a look? [INFO] Executing COMPC in tool group FlexJS with args: [-load-config=/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/frameworks/projects/Core/target/compile-js-config.xml, -js-output-type=FLEXJS,

[FlexJS] CompressionUtils (linking scripts)

2017-02-12 Thread Harbs
I just added a CompressionUtils class which uses ByteArray on the Flash side and pako on the javascript side. It uses inject_html to link to the js because I don’t know of a better way to currently do this. I don’t like this approach for a number of reasons: 1. It hardwires the link into the

Re: [FlexJS] Stuck due to "Dictionary"

2017-02-12 Thread Carlos Rovira
Hi Harbs, When I read about Josh lines about Map and WeakMap y saw that there are some polyfills out there to support older browsers. You implemented this using some polyfill or you found some other way to do it? If you plan to upload this in the following days I'll wait for it. Thanks Carlos

Re: [FlexJS] Stuck due to "Dictionary"

2017-02-12 Thread Harbs
I had a need for Dictionary for my purposes as well (i.e. using Objects as keys). I just implemented ObjectMap which wraps Map, WeakMap and Dictionary. It falls back to plain objects for browsers which do not support Map and inserts uids into the objects. It’s not tested yet, but it compiles.

Re: [FlexJS] UndoManager

2017-02-12 Thread Harbs
I just committed this. > On Feb 12, 2017, at 10:17 PM, Harbs wrote: > > I would like to add the tlf UndoManager to FlexJS Core utils. > > Any objections to my doing so? > > Harbs

Re: MXML Azzurro

2017-02-12 Thread Carlos Rovira
So Cool Jude, I add to Harbs question would it work for FlexJS? That would be awesome!! :) 2017-02-12 22:23 GMT+01:00 Harbs : > Jude, > > That is way cool! > > What would be involved in getting it to work with FlexJS MXML? > > Harbs > > > On Feb 12, 2017, at 11:14 PM,

Re: MXML Azzurro

2017-02-12 Thread Harbs
Jude, That is way cool! What would be involved in getting it to work with FlexJS MXML? Harbs > On Feb 12, 2017, at 11:14 PM, flex capacitor wrote: > > I just wanted to make the community aware of the project MXML Azzurro > . It's an

Re: [FlexJS] UndoManager

2017-02-12 Thread Harbs
In the past, I’ve used the TLF UndoManager in my projects for full undo and added my own IOperations. Operations are not specific to TLF. Hence my desire to add it to Core. I’m actually working on porting TLF for FlexJS, but I expect it will be near the end of the year before I have anything

MXML Azzurro

2017-02-12 Thread flex capacitor
I just wanted to make the community aware of the project MXML Azzurro . It's an online MXML editor, interpreter and render that you can use to create and post MXML snippets. Why do this? - So Flex developers can see MXML code rendered live without installing a

Re: [FlexJS] UndoManager

2017-02-12 Thread piotrz
Hi Harbs, I like UndoManager and I don't see anything wrong to have it in FlexJS. Can you share how you are going to use it in your project? Ho it will help you? Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

[FlexJS] UndoManager

2017-02-12 Thread Harbs
I would like to add the tlf UndoManager to FlexJS Core utils. Any objections to my doing so? Harbs

Re: Donating to Apache Flex

2017-02-12 Thread Shane Curcuru
A few clarifications on this excellent conversation from a long-time Apache Member perspective: Harbs wrote earlier: > My thoughts: > > Conceptually, I like the idea of donating to projects (and in our > case Flex). The direction of Apache seems to be moving to a more >

Re: Donating to Apache Flex

2017-02-12 Thread Harbs
> On Feb 12, 2017, at 2:16 PM, Justin Mclean wrote: > > Hi, > >> The direction of Apache seems to be moving to a more project-centric >> approach like we’re seeing with ApacheCon. > > Not sure that's case, for instance the other streams include Cloud, Big Data >

Re: Donating to Apache Flex

2017-02-12 Thread Justin Mclean
Hi, > The direction of Apache seems to be moving to a more project-centric approach > like we’re seeing with ApacheCon. Not sure that's case, for instance the other streams include Cloud, Big Data and IoT which involve multiple projects. The IoT stream is likely to involve a dozen or so

Re: Donating to Apache Flex

2017-02-12 Thread Harbs
My thoughts: Conceptually, I like the idea of donating to projects (and in our case Flex). The direction of Apache seems to be moving to a more project-centric approach like we’re seeing with ApacheCon. That makes sense to me in general as Apache has grown quite a bit and diversified a lot in

[FlexJS] Layout Problem

2017-02-12 Thread yishayw
Can you confirm the fix proposed in [1] ? It'll have to be done in layouts other than BasicLayout. [1] https://issues.apache.org/jira/browse/FLEX-35263 -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Layout-Problem-tp59255.html Sent from the

Re: [FlexJS] Spacers and positioning

2017-02-12 Thread Harbs
Documentation is the key. I don’t know what to say, but we need a solution to that problem. The current BasicLayout seems to be pretty inefficient as-is for HTML layout. It currently runs layout twice, and we observed some pretty extreme delays in laying out lists. For example, a list with

Re: [FlexJS] Uncaught type exception

2017-02-12 Thread piotrz
Alex, In case of raised jira by Justin - do you think that bug is inside compiler or do you want me to look into that? Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

Re: [FlexJS] Uncaught type exception

2017-02-12 Thread Justin Mclean
Hi, > Binding works mostly. It looks like the generated code might need a > try/catch. File a bug. https://issues.apache.org/jira/browse/FLEX-35262 > Yes, that is probably the case. If your properties are being applied to > objects being