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

2017-04-18 Thread piotrz
Alex, Well I have to admit that I didn't find reason. Not sure if I found the time to dig into that. I can create some example which allows me reproduce it if my memory back on this one. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-

Re: [FlexJS] Release cycles

2017-04-18 Thread Christofer Dutz
Especially doing them with maven ( Chris Am 18.04.17, 00:54 schrieb "Justin Mclean" : Hi, There are also several unresolved licensing issues, which from memory are: - outstanding issues from the last two releases - JSON license “do no evil” dependancy issue - possible IP

Re: [FlexJS] Release cycles

2017-04-18 Thread OK
>Are you volunteering to be the release manager? Maybe some day if I understand FlexJS better and know what's necessary to cut a release... >Releases have historically been a lot of effort. It's a bit uncomfortable to speak about effort while contributing nothing by myself but I also could imagine

Re: [FlexJS] Release cycles

2017-04-18 Thread Christofer Dutz
Well the manual effort of releasing itself isn’t that much. In case of a maven release its executing two commands and then going to Apache’s Nexus Web UI and doing a few clicks. It’s what comes after that: Initiating the Vote and Release emails and doing the discussion. That’s also not too much

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Justin Mclean
Hi, > There are variants where you do something like: > > var controller:IBeadController = getBeadByType(IBeadController); > If (controller == null) > { >c = ValuesManager.valuesImpl.getValue(this, "iBeadController") as > Class; >if (c) >{ > controller = new c as IBeadControl

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread justin
Hi, > JFYI - Tried it and it fails to fix the issue. It looks to related to a bug in getBeadByType. It’s checking _beads not beads and at this point beads has a single element in it but _beads is empty so this line: if (!_beads) return null; returns null and it doesn’t run the rest of the met

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread justin
Hi, > It looks to related to a bug in getBeadByType. And the reason for that is the addBead call to add DateFormatDDMMBead is called after DateField addedToParent is called Or if you prefer at the time addedToParent is called the beads have not been added so it will add the one defined in

Interview on the FlexJS Summit ...

2017-04-18 Thread Christofer Dutz
Hi guys, Yesterday Apache published an Interview about the FlexJS Summit last week ☺ https://feathercast.apache.org/2017/04/17/chris-dutz-apachecon-north-america-and-flexjs-summit/ Hope I didn’t talk any rubbish ;-) Chris

Re: Interview on the FlexJS Summit ...

2017-04-18 Thread piotrz
Hi Chris, Great talk! Everything in a nutshell ! :) Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Interview-on-the-FlexJS-Summit-tp61185p61186.html Sent from the Apache Flex Development mail

Re: Interview on the FlexJS Summit ...

2017-04-18 Thread yishayw
Nice interview, I'm sure it made some listeners curious about the summit. I thought there was potential for confusion when you compared the move to FlexJS to the move from Flex 3 to Flex 4. Flex 4 was backwards compatible with Flex 3 and feature rich. I think we need to be careful that listeners d

Re: Interview on the FlexJS Summit ...

2017-04-18 Thread Douglas McCarroll
Suggestion: Whoever is in charge of @ApacheFlex tweets - tweet about this. On Tue, Apr 18, 2017 at 5:35 AM, Christofer Dutz wrote: > Hi guys, > > Yesterday Apache published an Interview about the FlexJS Summit last week ☺ > > https://feathercast.apache.org/2017/04/17/chris-dutz- > apachecon-nort

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Alex Harui
On 4/17/17, 11:34 PM, "Justin Mclean" wrote: >>It looks like the Intl class is pretty well supported on JS these days? > >Sadly not, it’s supported but not everywhere [1] - about 80% globally. So >more people can’t use Intl than need the US date format. :-) Because the user has choices (this is

Re: git commit: [flex-asjs] [refs/heads/feature/chart-work] - Method getElementAt should return null if element not exists on JS sight

2017-04-18 Thread Alex Harui
On 4/17/17, 11:47 PM, "piotrz" wrote: >Hi Alex, > >I think I went in the scenario in MDL where children array do not contains >anything. It was related to Tabs, but I don't remember correctly. Similar >code is for SWF version in case where _element is null. > >Do you want me to remove it ? Try

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

2017-04-18 Thread Alex Harui
Let's wait a fees days to see if Santanu will see this and can provide the test case. Or at least, the stack trace. -Alex On 4/17/17, 11:56 PM, "piotrz" wrote: >Alex, > >Well I have to admit that I didn't find reason. Not sure if I found the >time >to dig into that. I can create some example w

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Peter Ent
It is supposed to work like this: A: You may have zero or more beads defined inline in MXML for your component using property. B: You may have zero or more beads defined in CSS for your component. When addElement is called on your component, it will add the underlying element to the display lis

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Alex Harui
What does your attempt to use the pattern look like? Did you apply the pattern inside addedToParent()? If so, what is the full code of addedToParent()? Did you apply the pattern after super.addedToParent()? -Alex On 4/18/17, 1:41 AM, "jus...@classsoftware.com" wrote: >Hi, > >> It looks to re

Re: [FlexJS] Release cycles

2017-04-18 Thread OK
Christofer Dutz wrote > Right now, with the Maven SNAPSHOTs I think we reduced the need to release > often What are the Maven snapshots and where are they located? Or is just the latest snapshot available? Thanks, Olaf -- View this message in context: http://apache-flex-development.247.

[FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread piotrz
Hi All, It look like we have issue in FlexJS with quite common scenario where JSON.stringify cannot create json from simple VO object which has been marked by [Bindable] property. Description: I have following class [1], which after compilation has additional properties:

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Justin Mclean
Hi, > What does your attempt to use the pattern look like? if (getBeadByType(IFormatBead) == null) { var klass:* = ValuesManager.valuesImpl.getValue(this, "iFormatBead"); var bead:IBead = new klass() as IBead; if (bead) { addBead(bead); } } > Did

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Justin Mclean
Hi, > Because the user has choices (this is not required code that everybody > must use) 80% is good enough for me. Again than mean that 20% of people using the application would see dates in the wrong format. Depending on the application they would get birthdays wrong or show up to meetings o

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Pan Li
Piotr I am afraid the javascript can only act as a tool to implementation the JSON class, it can't replace Flex JSON in whole, Since they are different. If you use different thing as replacement it isn't hard to find cases didn't cover and the FlexJS's JSON in js has more issues than Bindable, I

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Alex Harui
Hi Pan, What do you mean by "Flex JSON"? AFAICT, the JSON class in Flash/AIR and the JSON class in JavaScript intend to have equivalent functionality. Both seem to support a toJSON method which might be the right answer. Piotr, have you tested out toJSON methods? If you manually add those to y

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Alex Harui
On 4/18/17, 3:44 PM, "Justin Mclean" wrote: >Hi, > >> What does your attempt to use the pattern look like? > >if (getBeadByType(IFormatBead) == null) { > var klass:* = ValuesManager.valuesImpl.getValue(this, "iFormatBead"); > var bead:IBead = new klass() as IBead; > if (bead)

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Alex Harui
On 4/18/17, 3:50 PM, "Justin Mclean" wrote: >Hi, > >> Because the user has choices (this is not required code that everybody >> must use) 80% is good enough for me. > >Again than mean that 20% of people using the application would see dates >in the wrong format. Depending on the application the

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Justin Mclean
Hi, > Well, who is in the 20% that will see dates in the wrong format? Are the > likely customers of FlexJS this year? Yes. It very likely effects current users of a FlexJS application I’m working on / has been deployed. I would need to get access to browser stats to be 100% sure. But given so

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Justin Mclean
Hi, Also SWF is not an option in this environment. Otherwise the project would most likely be using the regular SDK and not FlexJS. But as yo say Intl support may be useful for someone else so could be useful to be implemented, it's just probably not going to be very useful on this project. Th

Re: Interview on the FlexJS Summit ...

2017-04-18 Thread Alex Harui
Well done, Chris! (Well, maybe not the part where you said Flash is dead ;-)). But I think you did better than I would in those conditions. Anyway, who do we currently know is going to the FlexJS Summit? Thanks, -Alex On 4/18/17, 4:00 AM, "yishayw" wrote: >Nice interview, I'm sure it made so

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Alex Harui
On 4/18/17, 10:04 PM, "Justin Mclean" wrote: >Hi, > >> Well, who is in the 20% that will see dates in the wrong format? Are >>the >> likely customers of FlexJS this year? > >Yes. It very likely effects current users of a FlexJS application I’m >working on / has been deployed. > >I would need t

Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-18 Thread Justin Mclean
Hi, > So how do you plan to detect which date format to use? In most case to avoid any potential confusion will use month names. > Whatever you do could be encapsulated into a bead and shared with others. Sure that’s my plan. I’ve already checked in a couple that are likely to be useful. Than

[FlexJS XML]

2017-04-18 Thread Harbs
TLF was missing EditManager. I added that, but it required XML as well, so I added XMLJS to the list of depenedencies. After fixing an issue with appendChild() I’m currently getting a number of errors: https://paste.apache.org/73uW Basically, they fall into two categories: 1. some_xml.@someattr

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread piotrz
Hi Alex, I just tried toJSON method on object in JS and it failed with error that those method do not exist. Did you mean something like this ? var book:Book = new Book(); book.title = "Trump"; var toJSON:Object = book["toJSON"](); var jsonString:String = JSON.stringify(toJSON); If such funct

Re: [FlexJS XML]

2017-04-18 Thread Alex Harui
Is this the SWF or JS compile? Where do the definitions for XML and Error come from? JS.swc, playerglobal? Did you try -compiler.strict-xml true and false? Thanks, -Alex On 4/18/17, 10:29 PM, "Harbs" wrote: >TLF was missing EditManager. I added that, but it required XML as well, >so I added

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Alex Harui
On 4/18/17, 10:34 PM, "piotrz" wrote: >Hi Alex, > >I just tried toJSON method on object in JS and it failed with error that >those method do not exist. Did you mean something like this ? > > var book:Book = new Book(); >book.title = "Trump"; > >var toJSON:Object = book["toJSON"](); >var jsonStr

Re: [FlexJS XML]

2017-04-18 Thread Harbs
JS compile. I added the following to the library-paths: ../../../../../libs/XMLJS.swc -compiler.strict-xml is set to true. I tried changing it to false and it did not help. > On Apr 19, 2017, at 1:48 AM, Alex Harui wrote: > > Is this the SWF or JS compile? Where do the defini

Re: [FlexJS XML]

2017-04-18 Thread Harbs
I have committed my changes to the tlf branch. Theoretically, you should get the same errors when trying to compile TLF. > On Apr 19, 2017, at 1:54 AM, Harbs wrote: > > JS compile. > > I added the following to the library-paths: >../../../../../libs/XMLJS.swc > > -compiler.str

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread piotrz
Alex, Just tested on SWF sight and got this one: In JS stack trace is: If we can still to do something with this I will raise a

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Harbs
That seems to make sense to me. toJSON is something which needs to be defined. If it’s not defined, it’s not going to work... Am I missing something? > On Apr 19, 2017, at 1:57 AM, piotrz wrote: > > Alex, > > Just tested on SWF sight and got this one: >

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Alex Harui
On 4/18/17, 11:20 PM, "Harbs" wrote: >That seems to make sense to me. > >toJSON is something which needs to be defined. If it’s not defined, it’s >not going to work... That's my understanding as well. The ValueObject class will need to define a toJSON method. I don't think there is a default.

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread piotrz
Alex, Harbs, I understand, but I thought that you will handle those method on the compiler sight - Am I miss something ? Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Issue-with-JSON-stringify

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Alex Harui
Hi Piotr, I am asking you to manually prototype and test that using toJSON will work before I spend time trying to get the compiler to generate such code. I believe it shouldn't take you that long to manually test it. It will take quite a while to change the compiler. Thanks -Alex On 4/18/17

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Greg Dove
I'd be happy to look at compiler side support for this at some point during the next month, it is something I have hand-coded many times and I think to/from JSON style support would be helpful for VO, especially bindables. It would need to add an interface I think so you could cast the VO in serial

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Greg Dove
maybe fromJson is not the best example :) On Wed, Apr 19, 2017 at 6:42 PM, Greg Dove wrote: > I'd be happy to look at compiler side support for this at some point > during the next month, it is something I have hand-coded many times and I > think to/from JSON style support would be helpful for

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Alex Harui
On 4/18/17, 11:45 PM, "Greg Dove" wrote: >maybe fromJson is not the best example :) I'm not sure I understand what you want to do. Are you trying to support types in the JSON reviver? -Alex > > >On Wed, Apr 19, 2017 at 6:42 PM, Greg Dove wrote: > >> I'd be happy to look at compiler side su

Re: [FlexJS XML]

2017-04-18 Thread Alex Harui
I got an error looking for FactoryBackgroundManager. Am I doing something wrong? -Alex On 4/18/17, 10:57 PM, "Harbs" wrote: >I have committed my changes to the tlf branch. Theoretically, you should >get the same errors when trying to compile TLF. > >> On Apr 19, 2017, at 1:54 AM, Harbs wrote:

Re: [FlexJS XML]

2017-04-18 Thread Harbs
I’m not sure why you’d be getting that error. I’m done for the day. > On Apr 19, 2017, at 2:48 AM, Alex Harui wrote: > > I got an error looking for FactoryBackgroundManager. Am I doing something > wrong? > > -Alex > > On 4/18/17, 10:57 PM, "Harbs" wrote: > >> I have committed my changes to

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread piotrz
Greg, The deal is that I don't want to any interface. In pure Flex we don't need interface and stringify is working. It would be awesome if you could take a look into that. Alex, So I don't understand what do you want from me. Do you want me to manually create toJSON inside object and implement

Re: [FlexJS XML]

2017-04-18 Thread Alex Harui
I cannot find a FactoryBackgroundManager.as. Should there be one? FactoryComposer is looking for it. -Alex On 4/18/17, 11:50 PM, "Harbs" wrote: >I’m not sure why you’d be getting that error. > >I’m done for the day. > >> On Apr 19, 2017, at 2:48 AM, Alex Harui wrote: >> >> I got an error loo

Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects

2017-04-18 Thread Alex Harui
On 4/18/17, 11:40 PM, "piotrz" wrote: >Greg, > >The deal is that I don't want to any interface. In pure Flex we don't need >interface and stringify is working. It would be awesome if you could take >a >look into that. > >Alex, > >So I don't understand what do you want from me. Do you want me to

Re: [FlexJS XML]

2017-04-18 Thread Harbs
Yes there should it’s located in: org.apache.flex.textLayout.factory.FactoryBackgroundManager and it extends BackgroundManager. > On Apr 19, 2017, at 2:56 AM, Alex Harui wrote: > > I cannot find a FactoryBackgroundManager.as. Should there be one? > FactoryComposer is looking for it. > > -Alex