Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Christofer Dutz
Well from my point of view it was the whole “write once run everywhere” thing. I was totally annoyed of having to write UI things once and then patch and bugfix things for all the other Browsers. But in general I think you (Alex) and I have one great difference in our assumption of who will pro

Re: [FalconJX] Output path

2017-01-13 Thread Christofer Dutz
Well the Maven build shouldn’t care at all as the output path is always set in the build and it’s never built using the CWD as for a maven multi-module build is always the directory where the build was started (so in case of a multi-module build it could be some directory other than the current

Re: Apache Flex Twitter Account Changes

2017-01-13 Thread Carlos Rovira
Yeah! just see it! :) 2017-01-13 1:08 GMT+01:00 OmPrakash Muppirala : > Looks very nice, Carlos! > > Great idea, adding the appropriate tags. Looks like we already have a hit > :-) > > Thanks, > Om > > On Thu, Jan 12, 2017 at 3:01 PM, Carlos Rovira > wrote: > > > Hi, > > > > just make some ad

[FlexJS] [Discuss] Add support for "automationName" for making unit-tests simpler

2017-01-13 Thread Christofer Dutz
Hi, I am currently writing some unit-tests for the Examples and encountered something I would like to discuss with you. For example, in FlexJSStore the search field doesn’t have an id so it is not very simple to select the field. I could simply give the field an id, but I remembered in the old

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Harbs
I agree with Chris that target #1 is developers migrating from Flash. But, #2 is a very close second with JS developers looking for better productivity. #2 is where we can have a real win in terms of adoption. I think the reason js developers seem to always flutter from framework to framework i

[FlexJS] Problem in FlexJSStore

2017-01-13 Thread Christofer Dutz
Hi, I am currently investigating a problem in FlexJSStore which is preventing any of the top navigation-buttons from doing anything. It turns out that the problem can be solved by commenting out the line: The problem I can see in the console log is: that binding is unable to get the value of p

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Dev LFM
Hi all, For me, as I since 8 years constantly developed content editors for printing labs (basically I would use a Canvas on FlexJS), it was the no crossbrowsing differences, one player that behaves the same on all targets (This is the key). My company currently relies on Flash to sell.. and html/

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Dev LFM
Actually it would be more easy, if adobe just convert their flashplayer to render on webgl and that would work for all... 2017-01-13 15:15 GMT+00:00 Dev LFM : > Hi all, > > For me, as I since 8 years constantly developed content editors for > printing labs (basically I would use a Canvas on FlexJ

Re: [FlexJS] Problem in FlexJSStore

2017-01-13 Thread piotrz
Hi Chris, I just dig into that and have some solution, but not sure whether it is correct. In PropertyWatcher class we have function updateProperty. If "source" is available we are trying to apply value from source, but if I correct understand sometimes the "getterFunction" is our source. If ge

Re: AW: [FALCONJX] Combining SWF and JS compilers (was Re: AW: [FalconJX][FlexJS] COMPJSC and Build order)

2017-01-13 Thread Alex Harui
Back to working on this again... Currently, there are "clients" like MXMLJSC, COMPJSC, and ASDOCJSC. You launch one of these clients. Then you specify (via -js-output-type) what "backend" you want the client to use. A backend supplies an "emitter" that walks the AST and generates some sort of o

Re: [FlexJS] Problem in FlexJSStore

2017-01-13 Thread Alex Harui
Sounds reasonable. Binding should have try/catch blocks in the right places and expect to handle null. Now when you get null, the watcher chain has to know to watch for the value becoming non-null so it can attach watchers to the new object to watch. Not sure if we have the right code for that or

Re: [Jenkins] All build is down

2017-01-13 Thread Alex Harui
OK, I brought it back up. All PMC members should be able to get the credentials from the private@ list and Remote Desktop and launch the slave agent and not have to wait for me. I'll re-send instructions to private@. -Alex On 1/12/17, 11:41 PM, "piotrz" wrote: >Hi All, > >I noticed that from

Re: [FlexJS] Problem in FlexJSStore

2017-01-13 Thread piotrz
Place where it blow up cause of these PropertyWatcher is in wrapUpdate (WatcherBase): try { wrappedFunction.apply(this); } catch(error:Error) { we are logging on console here error } Searching no-null object, but how and where ? If I do not have such code once this property get back from nul

Re: [Jenkins] All build is down

2017-01-13 Thread piotrz
Thank you Alex. I just saved your email and will try to do this next time. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Jenkins-All-build-is-down-tp58226p58240.html Sent from the Apache Flex Developm

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Alex Harui
On 1/13/17, 12:44 AM, "Christofer Dutz" wrote: >Well from my point of view it was the whole “write once run everywhere” >thing. >I was totally annoyed of having to write UI things once and then patch >and bugfix things for all the other Browsers. I would say that fits under the "Developer Pro

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Carlos Rovira
The last time I saw webgl working was testing Unity 3D webgl. Unity invest much effort and they got it working, but mainly on desktop, and without great performance. In mobile devices, was not supported (that was about 6 month ago), and when playing on iPhone (for example) was really bad experience

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Peter Ent
I was speaking to a friend that has some JavaScript developers working for him. They use React and React/Native for their mobile apps. His feeling is that web-centric apps (e.g. Amazon.com) are going to be replaced with mobile apps since mobile devices are cheaper than laptops. They are concentrati

Re: [FlexJS] [Discuss] Add support for "automationName" for making unit-tests simpler

2017-01-13 Thread Alex Harui
My thought was that automated testing properties would be a separate bead. That way you can more easily rip it out before going to production. My 2 cents, -Alex On 1/13/17, 5:53 AM, "Christofer Dutz" wrote: >Hi, > >I am currently writing some unit-tests for the Examples and encountered >someth

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Carlos Rovira
2017-01-13 19:11 GMT+01:00 Alex Harui : > > > IMO, there are at least some existing Flex apps that don't use AMF. Now > it may turn out that we will have AMF shortly, but until it is done, those > who don't need it can start migrating their apps today. Some folks are > already migrating. I don

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Carlos Rovira
Hi Peter, 2017-01-13 19:22 GMT+01:00 Peter Ent : > I was speaking to a friend that has some JavaScript developers working for > him. They use React and React/Native for their mobile apps. His feeling is > that web-centric apps (e.g. Amazon.com) are going to be replaced with > mobile apps since mo

Re: [FlexJS] Problem in FlexJSStore

2017-01-13 Thread piotrz
Once I add above code something additional has been exposed. JSONItemConverter crashed in function convertItem. If data = "" function is adding to one "}". In the results JSON.parse("}") is taking which cause an error. I think I it should be JSON.parse("{}"); I think this fix issue -> https://pas

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Peter Ent
See in-line. ‹peter On 1/13/17, 1:35 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Peter, > >2017-01-13 19:22 GMT+01:00 Peter Ent : > >> I was speaking to a friend that has some JavaScript developers working >>for >> him. They use React and React/Native for their mobile app

Re: [FlexJS] Problem in FlexJSStore

2017-01-13 Thread Alex Harui
We should probably build out some test cases for this. It looks like PropertyWatcher.parentChanged should be called with the parent object goes from null to non-null, but maybe that code doesn't exist. -Alex On 1/13/17, 10:03 AM, "piotrz" wrote: >Place where it blow up cause of these PropertyW

Re: [FlexJS] Problem in FlexJSStore

2017-01-13 Thread piotrz
Basically we should build example where object with similar structure as in case from FlexJSStore at start is null, but later it turns out to non-null - Maybe it will be working without any additional changes. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Carlos Rovira
2017-01-13 19:46 GMT+01:00 Peter Ent : > > > I wasn't thinking of FlexJS/Native as desire to dump SWF and JS-xcompile, > but FlexJS/Native as a new addition and option for folks who want to work > in ActionScript and layout their apps in MXML but want a native > application as the end result, rath

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Alex Harui
On 1/13/17, 10:28 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >2017-01-13 19:11 GMT+01:00 Alex Harui : > >> >> >> IMO, there are at least some existing Flex apps that don't use AMF. Now >> it may turn out that we will have AMF shortly, but until it is done, >>those >> who d

Re: [FlexJS] Problem in FlexJSStore

2017-01-13 Thread Alex Harui
On 1/13/17, 10:44 AM, "piotrz" wrote: >Once I add above code something additional has been exposed. >JSONItemConverter crashed in function convertItem. > >If data = "" function is adding to one "}". In the results JSON.parse("}") >is taking which cause an error. I think I it should be JSON.pars

Re: [FlexJS] [Discuss] Add support for "automationName" for making unit-tests simpler

2017-01-13 Thread Carlos Rovira
Hi great to think in it as a bead. But this makes me thing about a way to "inject the beads" so we doesn't need to touch code, but some config that remove the inject of automation beads in all components...(the manual way of write the bead and remove would be not usable in the real world) 2017-01-

Re: [FlexJS] [Discuss] Add support for "automationName" for making unit-tests simpler

2017-01-13 Thread piotrz
Hi Guys, In my opinion injecting Beads by some configuration will confuse people. As I understand such Bead which adding automation name will take same parameter with this name. Once you have Beads in your view it's giving really nice and clean information, what actually is happening with compon

Re: [FlexJS] [Discuss] Add support for "automationName" for making unit-tests simpler

2017-01-13 Thread Alex Harui
On 1/13/17, 11:03 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi great to think in it as a bead. But this makes me thing about a way to >"inject the beads" so we doesn't need to touch code, but some config that >remove the inject of automation beads in all components...(the

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread piotrz
I was working on Big Flex app where we were using SOAP/XML. - I think now we can consume XML in FlexJS. Another thing which came up to my mind - Did we ever write any WIKI page to show people what actually option of data consuming we have ? I think if it will be pointed on WIKI and in Release no

Re: [FlexJS] [Discuss] Add support for "automationName" for making unit-tests simpler

2017-01-13 Thread Alex Harui
On 1/13/17, 11:09 AM, "piotrz" wrote: >Hi Guys, > >In my opinion injecting Beads by some configuration will confuse people. >As >I understand such Bead which adding automation name will take same >parameter >with this name. > >Once you have Beads in your view it's giving really nice and clean

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Alex Harui
On 1/13/17, 11:13 AM, "piotrz" wrote: >I was working on Big Flex app where we were using SOAP/XML. - I think now >we >can consume XML in FlexJS. Yes. You can migrate today if you are using XML, only need to support one language and don't use modules. Regarding skinning, in theory your compan

Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Table component and example initial implementation

2017-01-13 Thread Piotr Zarzycki
Love this commit :) On Fri, Jan 13, 2017, 20:34 wrote: > Repository: flex-asjs > Updated Branches: > refs/heads/develop 2e52060f3 -> b0b41aefe > > > MDL Table component and example initial implementation > > > Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo > Commit: http://git-

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-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 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 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 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 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
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 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 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 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 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
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 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

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

2017-01-13 Thread flex . ci . builds
flex-sdk_release-candidate - Build #201 - Successful Changes since last build: [Mihai Chira] FLEX-27509 [Mihai Chira] FLEX-35149 updating release notes with fix for FLEX-27509 For more information, check the console output at http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_release-candid

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 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: > >

[FlexJS] static method with arguments failing

2017-01-13 Thread Carlos Rovira
Hi, I'm trying to create a ObjectUtil.as Core class with the following method borrowed from Flex SDK: /** * Convert the object to a string of form: PROP: VAL&PROP: VAL where: PROP is a property VAL is its corresponding value & is the specified optional delimiter * @param obj Obje

Re: [FlexJS] [Discuss] Add support for "automationName" for making unit-tests simpler

2017-01-13 Thread Carlos Rovira
mmm I was thinink on Injecting, but inject could be problematic since mainly *all* components would get the automation bead and maybe that's not what we want. Ejecting? mmm don't like the idea of "writing" it down to the component...don't know right now I like the spring framework philosophy f

Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Table component and example initial implementation

2017-01-13 Thread Carlos Rovira
Yeah! :) 2017-01-13 20:43 GMT+01:00 Piotr Zarzycki : > Love this commit :) > > On Fri, Jan 13, 2017, 20:34 wrote: > > > Repository: flex-asjs > > Updated Branches: > > refs/heads/develop 2e52060f3 -> b0b41aefe > > > > > > MDL Table component and example initial implementation > > > > > > Proje

Re: [FlexJS] Some things still missing ni FlexJS

2017-01-13 Thread Carlos Rovira
2017-01-13 20:01 GMT+01:00 Alex Harui : > > > why can't we call that our 1.0? What would be wrong with > calling that 1.0? > > As I said, for me 0.8, 1.0, 0.15 or 2.1 is not a problem. Things out there taught us that number version not really matters I'm more with the internal thinking that make

Re: [FlexJS] static method with arguments failing

2017-01-13 Thread Carlos Rovira
The problem seems related to the method name "toString" already in use... But the object doesn't extend nothing, so there's no super.toString() This seems a bug right? I workaround changing the name to _toString(...) 2017-01-14 0:26 GMT+01:00 Carlos Rovira : > Hi, I'm trying to create a Obje

[FlexJS] Reflection API - How to Use

2017-01-13 Thread Carlos Rovira
Hi, where I can learn to use the Reflection API? I want to introspect a object an get the properties and its corresponding values If I make a for loop as normal I get lots of functions and see FLEXJS_REFLECTION_INFO I assume that's the work done by the reflection API, but can't find any docume

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

2017-01-13 Thread flex . ci . builds
flex-sdk_release-candidate - Build #202 - 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/202/.

[FlexJS] className problem with MDL properties that modifies component className

2017-01-13 Thread Carlos Rovira
Hi, found an issue with MDL and custom class. If you declare a component that has some new custom additional class (lets call "someClass"), and has some property that modifies the className (in our case always through classList API), let's say is a button, and this is the example: the result i

Re: [FlexJS] className problem with MDL properties that modifies component className

2017-01-13 Thread OmPrakash Muppirala
On Jan 13, 2017 6:30 PM, "Carlos Rovira" wrote: Hi, found an issue with MDL and custom class. If you declare a component that has some new custom additional class (lets call "someClass"), and has some property that modifies the className (in our case always through classList API), let's say is

Re: [FlexJS] Reflection API - How to Use

2017-01-13 Thread Greg Dove
Hi Carlos, If you look inside manualtests/GenericTests and in particular at the reflection unit tests it should give you some (hopefully) good examples. e.g. ReflectionTesterTest [1] 1. https://git-wip-us.apache.org/repos/asf?p=flex-asjs.git;a=blob_plain;f=manualtests/GenericTests/src/flexUnitT

Re: [FlexJS] static method with arguments failing

2017-01-13 Thread Alex Harui
On 1/13/17, 4:18 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >The problem seems related to the method name "toString" already in use... > >But the object doesn't extend nothing, so there's no super.toString() > >This seems a bug right? Yes, please file a bug. Thanks, -Alex

Re: [FlexJS] [Discuss] Add support for "automationName" for making unit-tests simpler

2017-01-13 Thread Alex Harui
On 1/13/17, 3:35 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >mmm I was thinink on Injecting, but inject could be problematic since >mainly *all* components would get the automation bead and maybe that's not >what we want. Ejecting? mmm don't like the idea of "writing" it do

Re: [FlexJS] className problem with MDL properties that modifies component className

2017-01-13 Thread Alex Harui
typeNames are classSelectors meant to act like TypeSelectors. Like DataGrid or DropDownList. If the customer sets className it shouldn't affect typeNames. Can the customer also use the classList API? If so, then you may need yet another thing like typeNames like "internalClassNames" which is th