Re: [FlexJS] SimpleCSSStyles properties

2017-02-17 Thread Justin Mclean
Hi, > Well, it is all supposed to be PAYG. If your app only needs padding and > fancy borders and backgrounds, Just about all applications are going to need those features IMO. If every application developer has to implement themselves they may give up. In my experience most (but not all) appl

Re: [FlexJS] Error with Alert.show

2017-02-17 Thread Alex Harui
On 2/17/17, 7:50 PM, "Justin Mclean" wrote: >Hi, > >Currently when using Alert we’re getting this when compiling: > >SEVERE: .../javascript/bin/js-debug/org/apache/flex/html/Alert.js:254: >ERROR - Object literal contains illegal duplicate key "show", disallowed >in ES5 strict mode >'sho

Re: [FlexJS] SimpleCSSStyles properties

2017-02-17 Thread Alex Harui
On 2/17/17, 10:49 PM, "Justin Mclean" wrote: >Hi, > >> For the most part, SimpleCSSStyles contains styles we have at least >> attempted to support in the SWF side. So if you want to add fancier >> background styles it would be nice to add a background bead that >>supports >> it. > >I looked in

Re: [FlexJS] SimpleCSSStyles properties

2017-02-17 Thread Justin Mclean
Hi, > For the most part, SimpleCSSStyles contains styles we have at least > attempted to support in the SWF side. So if you want to add fancier > background styles it would be nice to add a background bead that supports > it. I looked into that the issue I think is that SimpleCSSStylesValueImpl

Re: [FlexJS] SimpleCSSStyles backgroundAlpha not working on JS

2017-02-17 Thread Alex Harui
On 2/17/17, 10:24 PM, "Justin Mclean" wrote: >Hi, > >Looking at SimpleCSSStyles I can see a property called backgroundAlpha, >but there is no CSS property called backgroundAlpha and as far as I can >tell SimpleCSSValueImpl does nothing special with backgroundAlpha. I >think it needs to be conve

Re: [FlexJS] SimpleCSSStyles properties

2017-02-17 Thread Alex Harui
On 2/17/17, 6:26 PM, "Justin Mclean" wrote: >Hi, > >Any objection if I add background-repeat and background-position as >properties to SimpleCSSStyles? It contains the other background >properties and these are quite commonly used. For the most part, SimpleCSSStyles contains styles we have at

Re: [Flex JS] Font support

2017-02-17 Thread Alex Harui
On 2/17/17, 5:00 PM, "Justin Mclean" wrote: >Hi, > >So I’ve come up with a way that works but not sure it it’s ideal or not. >It's certainly not an obvious way to add font support. > >And Pangolin.as used like so: > >Is BeadViewBase the correct class to extend? Sorry, forgot to answer this ea

[FlexJS] SimpleCSSStyles backgroundAlpha not working on JS

2017-02-17 Thread Justin Mclean
Hi, Looking at SimpleCSSStyles I can see a property called backgroundAlpha, but there is no CSS property called backgroundAlpha and as far as I can tell SimpleCSSValueImpl does nothing special with backgroundAlpha. I think it needs to be converted to the corresponding CSS style opacity? At a g

[FlexJS] Error with Alert.show

2017-02-17 Thread Justin Mclean
Hi, Currently when using Alert we’re getting this when compiling: SEVERE: .../javascript/bin/js-debug/org/apache/flex/html/Alert.js:254: ERROR - Object literal contains illegal duplicate key "show", disallowed in ES5 strict mode 'show': { type: 'void', declaredBy: 'org.apache.flex.html.

[FlexJS] SimpleCSSStyles properties

2017-02-17 Thread Justin Mclean
Hi, Any objection if I add background-repeat and background-position as properties to SimpleCSSStyles? It contains the other background properties and these are quite commonly used. Thanks, Justin

Re: [Flex JS] Font support

2017-02-17 Thread Justin Mclean
Hi, So I’ve come up with a way that works but not sure it it’s ideal or not. It's certainly not an obvious way to add font support. Here’s the main application: http://ns.adobe.com/mxml/2009"; xmlns:js="library://ns.apache.org/flexjs/basic" xmlns:fonts="fonts.*">

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-17 Thread Carlos Rovira
Great Chris!, as I'm focused with AMF/RemoteObject, I try to end that and then go to that branch. Thanks for get that problem solved! :)) 2017-02-17 17:30 GMT+01:00 Christofer Dutz : > Hi Carlos, > > I just had a look and your code had the problem, that the import was a JS > only import and your

Re: [Flex JS] Label's text gets trimmed

2017-02-17 Thread Carlos Rovira
Ok Alex, one of my plans is to get over basic FlexJS components to style it. That means to implement theming, as I get to that task, I'll be tweaking that. Thanks 2017-02-17 16:59 GMT+01:00 Alex Harui : > > > On 2/17/17, 12:22 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > > wrote:

Re: [FlexJS] MDL - Dynamic Child Problem

2017-02-17 Thread Carlos Rovira
Hi, for what you said we have various "update" methods I wasn't aware. (updateDom, updateAllRegistered and updateElement...and maybe others to look for) We should see where's the best way to introduce it in our FlexJS architecture. Maybe Alex suggestion could be explored to see the best place to d

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Carlos Rovira
Hi Alex, that does the trick! I need an additional dependency with typedefs The case is that I'm pretty sure that I setup in the right way from start but compilation issues made me remove them. Anyway many thanks! I get remote object amp code to compile. Now the tricky part to get an exam

Re: [FlexJS] MDL - Dynamic Child Problem

2017-02-17 Thread piotrz
Hi Sankar, For me this jira is more like feature than Bug. I will look into that. I think all I need to do is add element to the DOM on specified event. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/

Re: [FlexJS] - Is FlexJS ready for production?

2017-02-17 Thread Christofer Dutz
Hi Carlos, I just had a look and your code had the problem, that the import was a JS only import and your code was JS-only. I added some defines and I compiled. I checked in the changes on your branch so you can have a look. Chris Am 15.02.17, 20:36 schrieb "carlos.rov...@gmail.com im Auftrag

Re: [FlexJS] MDL - Dynamic Child Problem

2017-02-17 Thread sankar
I think this should be an answer what they already mentioned in the original MDL library page: I also found somewhere at Stackoverflow people discussing on this, someone suggested this: > For future readers and use

Re: [FlexJS] MDL - Dynamic Child Problem

2017-02-17 Thread Alex Harui
On 2/17/17, 7:51 AM, "Josh Tynjala" wrote: >I used in MDL in a JS project recently, and I found that if I created MDL >components after the initial page load, I needed to run the following code >once they were added to the DOM: > >if("componentHandler" in window) >{ >window["componentHandle

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Alex Harui
Need a test case. You can also try using the command-line to prove it isn't Maven, but I'm pretty sure it isn't Maven. BTW, it appears that you are modifying a SWC instead of building an app, and I think SWCs need dependencies declared differently than applications because the SWC's dependencies

Re: [FlexJS MDL] release build broken

2017-02-17 Thread Alex Harui
On 2/17/17, 5:54 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >2017-02-17 12:36 GMT+01:00 Harbs : > >> Simply specifying strings instead of the constants would be the most >> efficient currently. >> > >But that's what we try to avoid in order to support type safe code > >I pu

Re: [Flex JS] Label's text gets trimmed

2017-02-17 Thread Alex Harui
On 2/17/17, 12:22 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Aside from the problem begin discussed, I continue thinking that generated >code should not have the verbose hardcoded styles that is shown and should >be created as CSS. I think for various reasons. > >1.- I don

Re: [FlexJS] Text binding showing undefined

2017-02-17 Thread Alex Harui
On 2/16/17, 11:59 PM, "Harbs" wrote: > >> On Feb 17, 2017, at 12:43 AM, Alex Harui wrote: >> >> >> >> On 2/16/17, 2:34 PM, "Harbs" wrote: >> Well, that's not PAYG (yes, I'm being picky). >>> >>> I disagree. For string it certainly is PAYG. There’s no extra cost. >>>(and >>> consider

Re: [FlexJS] MDL - Dynamic Child Problem

2017-02-17 Thread Josh Tynjala
I used in MDL in a JS project recently, and I found that if I created MDL components after the initial page load, I needed to run the following code once they were added to the DOM: if("componentHandler" in window) { window["componentHandler"].upgradeAllRegistered(); } My app was divided into

Re: [FlexJS] MDL - Dynamic Child Problem

2017-02-17 Thread sankar
Hi Carlos, Is this makes some sense? - http://stackoverflow.com/questions/32363511/how-can-i-update-refresh-google-mdl-elements-that-i-add-to-my-page-dynamically (the answer part). I'm not very familiar with DOM development, though. Thanks! -- View this message in context: http://apache-flex-

Re: [FlexJS] Text binding showing undefined

2017-02-17 Thread Alex Harui
On 2/17/17, 3:22 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >2017-02-16 23:34 GMT+01:00 Harbs : > >> > Well, that's not PAYG (yes, I'm being picky). >> >> I disagree. For string it certainly is PAYG. There’s no extra cost. (and >> considering the three bytes of ‘=“”’ in the

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Carlos Rovira
ok Chris, hope someone could give us some light here to know what's happening. 2017-02-17 16:17 GMT+01:00 Christofer Dutz : > Hi Carlos, > > Well as Ant and Maven both use the same compiler, it is generally possible > to do in Maven what you do in Ant. > > It just might be that I must extend the

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Carlos Rovira
Ok Josh, so if that should work I don't understand why I can't use it in Network.swc I try HTTPService and works ok, so I declare the lib in the right way I think while registerClassAlias is not found. I think this is not a maven issue, but something related to the compiler. do you know what could

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Carlos Rovira
I created a bug FLEX-35270 - Reflection API expose methods without classes that can't be used 2017-02-17 16:23 GMT+01:00 Josh Tynjala : > A function may exist in a package instead of a class. It's perfectly valid. > In the Flash world, a commonl

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Josh Tynjala
A function may exist in a package instead of a class. It's perfectly valid. In the Flash world, a commonly used example is flash.net.navigateToURL(). - Josh On Feb 17, 2017 7:12 AM, "Carlos Rovira" wrote: > Hi Chris, > > I never seen anything like that before, but I assume that is something > v

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Carlos Rovira
Hi searching on list I found this: http://apache-flex-users.246.n4.nabble.com/FlexJS-AMFJS-Class-Mapping-tp14106p14109.html 2017-02-17 16:12 GMT+01:00 Carlos Rovira : > Hi Chris, > > I never seen anything like that before, but I assume that is something > valid. I think this classes was d

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Christofer Dutz
Hi Carlos, Well as Ant and Maven both use the same compiler, it is generally possible to do in Maven what you do in Ant. It just might be that I must extend the plugin to support that use-case. So, no worries … as soon as someone tells me and I know what I have to do, I’ll do it and then you

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Carlos Rovira
Hi Chris, I never seen anything like that before, but I assume that is something valid. I think this classes was done by Greg Dove, maybe he or Alex can let us know how to deal with it. I assume that this work, since people are using, but maybe they compile with ANT and Maven doesn't support it?

Re: [FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Christofer Dutz
Hi Carlos, I just had a look at the class which is a Function outside a class and not a class itself … never seen such a thing. So I had a look at the output and couldn’t find any. It seems most modules have a “ModuleNameClasses” class to tell the compiler what to compile or a manifest to do so

[FlexJS][Maven] import not recognized when trying to create RemoteObject with reflection API dependencies

2017-02-17 Thread Carlos Rovira
Hi, trying to create a RemoteObject AMF class in Network lib I need to use reflection API (getClassByAlias, registerClassAlias,...), so I add to the pom a dependency ... org.apache.flex.flexjs.framework Reflection 0.8.0-SNAPSHOT swc But compilation fails: [IN

Re: [BlazeDS] landing in git version of BlazeDS

2017-02-17 Thread Christofer Dutz
Hi Carlos, Glad you like the archetype and my spring-boot-starter ☺ But be aware of changes to BlazeDS I just committed today … I’ll post the changes in a new thread. Chris Am 17.02.17, 15:21 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos Rovira" : Hi Chris, just report that Arch

Re: [Flex JS] Padding not working as expected

2017-02-17 Thread Peter Ent
I'll try and look into this next. ‹peter On 2/16/17, 5:40 PM, "Justin Mclean" wrote: >Hi, > >Anyone have thought on this? > >It looks to be a serious bug to me and there¹s no workaround except in >the simplest cases. > >One alternative is to wrap a component in 4 boxes to simulate the padding >b

Re: [BlazeDS] landing in git version of BlazeDS

2017-02-17 Thread Carlos Rovira
Hi Chris, just report that Archetype is working good and is a breeze to generate a basic java blazeds project with that. Very useful! I can now concentrate in make some AMF work and see if I can get some communication between FlexJS and BlazeDS :) Thanks! 2017-02-17 10:14 GMT+01:00 Carlos Rovi

Re: [FlexJS MDL] release build broken

2017-02-17 Thread Carlos Rovira
2017-02-17 12:36 GMT+01:00 Harbs : > Simply specifying strings instead of the constants would be the most > efficient currently. > But that's what we try to avoid in order to support type safe code I put on my plate to break the class in 16 classes, but as I'm working on other things I invite pe

Re: [FlexJS] MDL - Dynamic Child Problem

2017-02-17 Thread Carlos Rovira
Hi Sankar, when using MDL standard (non flexjs version) how things are done to dinamicaly create some component? Since FlexJS MDL is a "wrap" over MDL js/css libraries, what we should envision is the way to "flex"-ify the things coming from MDL world. So I propose that investigate the problem and

[FlexJS] MDL - Dynamic Child Problem

2017-02-17 Thread sankar
Hi, There's a critical and major problem exists with dynamic child creation in MDL structure. I've reported this to JIRA at: https://issues.apache.org/jira/browse/FLEX-35269. Request to look into this once. Thanks! -- View this message in context: http://apache-flex-development.247.n4.

Re: [FlexJS MDL] release build broken

2017-02-17 Thread Harbs
I’d really like to eventually see the compiler to optimize constants better, but yes, breaking the constant classes into smaller categories will help if only some of them are used. Simply specifying strings instead of the constants would be the most efficient currently. > On Feb 17, 2017, at 1

Re: [FlexJS] Text binding showing undefined

2017-02-17 Thread Carlos Rovira
2017-02-16 23:34 GMT+01:00 Harbs : > > Well, that's not PAYG (yes, I'm being picky). > > I disagree. For string it certainly is PAYG. There’s no extra cost. (and > considering the three bytes of ‘=“”’ in the source code is getting petty > IMO) Adding an extra TextModelWithEmptyStringDefaults is to

Re: [FlexJS MDL] release build broken

2017-02-17 Thread Carlos Rovira
Hi Harbs, if we don't use constants what you suggest? One of the things we provide is "type safe". I think this is the minimal version we can provide. Think that before we was creating a class per icon, given the 900+ icons would be a problem to both in terms of coding and space used. The only th

Re: TLF, problem with the delay of updates

2017-02-17 Thread goratz
Hi Harbs I only want to reply you to see my previous message. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/TLF-problem-with-the-delay-of-updates-tp59313p59591.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [BlazeDS] landing in git version of BlazeDS

2017-02-17 Thread Carlos Rovira
Great Chris! I'll try to take a look at this today as I get some times here and there. Thanks! :) Carlos 2017-02-17 10:03 GMT+01:00 Christofer Dutz : > Hi guys … > > So, the archetype is done … > > Now all you must do to generate a new BlazeDS application is execute this > on the command line:

Re: [BlazeDS] landing in git version of BlazeDS

2017-02-17 Thread Christofer Dutz
Hi guys … So, the archetype is done … Now all you must do to generate a new BlazeDS application is execute this on the command line: mvn archetype:generate -DarchetypeGroupId=org.apache.flex.blazeds -DarchetypeArtifactId=blazeds-spring-boot-example-archetype -DarchetypeVersion=4.7.3-SNAPSHO

Re: [Flex JS] Label's text gets trimmed

2017-02-17 Thread Carlos Rovira
Aside from the problem begin discussed, I continue thinking that generated code should not have the verbose hardcoded styles that is shown and should be created as CSS. I think for various reasons. 1.- I don't like CSS hardcoded in control/view component in source code 2.- that would make people u

Re: [BlazeDS] landing in git version of BlazeDS

2017-02-17 Thread Christofer Dutz
Hi Carlos, The thing is that BlazeDS was in a strange state when it was donated to Apache. It looked as if there was an Ant build, but the core was built with maven. I invested quite a lot of work into cleaning up the maven build but outside of the parts Adobe initially built with maven were An

Re: [FlexJS] Text binding showing undefined

2017-02-17 Thread Harbs
> On Feb 17, 2017, at 12:43 AM, Alex Harui wrote: > > > > On 2/16/17, 2:34 PM, "Harbs" wrote: > >>> Well, that's not PAYG (yes, I'm being picky). >> >> I disagree. For string it certainly is PAYG. There’s no extra cost. (and >> considering the three bytes of ‘=“”’ in the source code is gett