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?

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 =

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

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

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

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.

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

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

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.

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

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.

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

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

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,

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

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

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

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"

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

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.

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

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

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

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

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

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

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

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

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

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”

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:

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 piotrz
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 ? Piotr - Apache Flex PMC

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

2017-04-18 Thread Justin Mclean
Hi, Missing [1] reference in my last email was http://caniuse.com/#search=Intl Justin

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

2017-04-18 Thread Justin Mclean
HI, > The recommended pattern is in UIBase and hopefully elsewhere. I’ll give that a try. > Do we need resources in order to make a locale-dependant DateFormat bead? Probably not but I’ve no idea can you can conditionally include classes in CSS based on locale or pass property of a bead based

Re: [FlexJS] Status of dev branch/nightly build

2017-04-18 Thread OK
Thanks Alex, I've already downloaded it and will report issues... Olaf -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Status-of-dev-branch-nightly-build-tp61158p61174.html Sent from the Apache Flex Development mailing list archive at Nabble.com.