Re: [FlexJS] How to add html content?

2017-01-02 Thread OmPrakash Muppirala
On Sun, Jan 1, 2017 at 11:44 PM, Alex Harui wrote: > > > On 1/1/17, 11:35 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala" > wrote: > > >On Sun, Jan 1, 2017 at 10:18 PM, Alex Harui wrote: > > > >> > >> > >> On 1/1/17, 1:15 AM, "omup...@gmail.com on behalf of OmPrakash > Muppirala" > >>

Re: [FlexJS] How to add html content?

2017-01-02 Thread Alex Harui
On 1/2/17, 12:01 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala" wrote: >On Sun, Jan 1, 2017 at 11:44 PM, Alex Harui wrote: > >> >> >> On 1/1/17, 11:35 PM, "omup...@gmail.com on behalf of OmPrakash >>Muppirala" >> wrote: >> >> >On Sun, Jan 1, 2017 at 10:18 PM, Alex Harui wrote: >> >

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread Alex Harui
If data and menuitem are Object then these are legitimate warnings. There is no way to tell without introspection what the change events are. See FlexJSStore's ProductListItem for one way to deal with it. It declares a custom property of the type of the ValueObject. You can also cast the data p

broken

2017-01-02 Thread Harbs
I have a couple of places where I’m using to insert references to javascript and css fils. In the current nightly this is no longer working. Harbs

Re: [FlexJS] How to add html content?

2017-01-02 Thread OmPrakash Muppirala
On Mon, Jan 2, 2017 at 12:15 AM, Alex Harui wrote: > > > On 1/2/17, 12:01 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala" > wrote: > > >On Sun, Jan 1, 2017 at 11:44 PM, Alex Harui wrote: > > > >> > >> > >> On 1/1/17, 11:35 PM, "omup...@gmail.com on behalf of OmPrakash > >>Muppirala" >

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread piotrz
Alex, I have such property: [Bindable("dataChange")] public function get menuItem():MenuItemVO { return data as MenuItemVO; } My item renderer inherits from MXMLItemRenderer. I see that property "data" in my item renderer is being assigned and "data" from MXMLItemRenderer dispatch event "data

Re: [FlexJS] Using Maven with Flash Builder

2017-01-02 Thread yishayw
Ok, I don't mind using the command line to build. How do I create a minimal FlexJS project? What is the minimal pom.xml? Reading a thread you and Chris has on the subject, I tried doing this: C:\dev\printui\project>mvn -s C:\dev\mvn_flexjs\flex-asjs\settings-template.xml archetype:generate -Darc

I just learned something in Javascript

2017-01-02 Thread Harbs
Apparently Number(“1234”) is the same as a shorthand version: +”1234”. Both of these will convert a string into a number and will give NaN if the string can not be converted to a logical number. Performance-wise, different browsers seem to give different results as to which one is faster. I th

Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2017-01-02 Thread piotrz
Carlos, I just switched your "ItemRendererFactoryForArrayData" to "DataItemRendererFactoryForArrayData" for list and menu. Everything seems to be working fine. I think we should use class from core and remove redundant code. Maybe try to change it yourself to see whether I didn't miss anything.

Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2017-01-02 Thread piotrz
I see only one difference which I think could be moved to "DataItemRendererFactoryForArrayData" ItemRendererFactoryForArrayData: var component:UIBase = _strand as UIBase; ir.labelField = component["labelField"]; DataItemRendererFactoryForArrayData: labelField = (listView.host as List).labelField;

Re: AW: How to put an example online

2017-01-02 Thread Alex Harui
On 12/29/16, 10:51 AM, "Alex Harui" wrote: >OK. I might copy the config to apacheflexbuild since it isn't under as >much load until you get all this working. I have MDLExample building on apacheflexbuilds. The apache URL shortener may have overwritten the old mapping (which might be a good t

Re: [FlexJS] Using Maven with Flash Builder

2017-01-02 Thread Alex Harui
Copy a pom.xml from flex-asjs/examples/flexjs/DataBindingExample or FlexJSStore or MDLExample. Then run: mvn clean install And adjust the pom as needed. -Alex On 1/2/17, 2:12 AM, "yishayw" wrote: >Ok, I don't mind using the command line to build. How do I create a >minimal >FlexJS project?

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread Alex Harui
On 1/2/17, 12:54 AM, "piotrz" wrote: >Alex, > >I have such property: > >[Bindable("dataChange")] >public function get menuItem():MenuItemVO >{ > return data as MenuItemVO; >} > >My item renderer inherits from MXMLItemRenderer. I see that property >"data" >in my item renderer is being assigned

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread piotrz
I just tried "__NoChangeEvent__" and results is same. If it is like you said my renderer should pickup from each object property at creation required value. - It still not working for me. I will try to check whether it's working in FlexJSStore. Piotr - Apache Flex PMC piotrzarzyck...@gmail

Re: [FlexJS] Using Maven with Flash Builder

2017-01-02 Thread Christofer Dutz
The name of the artifactId is flexjs-simple-application-archetype (notice the additional “-simple” in there?) Hope I didn’t change the name after publishing anything on it. Chris Am 02.01.17, 11:12 schrieb "yishayw" : Ok, I don't mind using the command line to build. How do I create a minim

Re: [FlexJS] How to add html content?

2017-01-02 Thread Alex Harui
On 1/2/17, 12:30 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala" wrote: >On Mon, Jan 2, 2017 at 12:15 AM, Alex Harui wrote: > >> >> >> On 1/2/17, 12:01 AM, "omup...@gmail.com on behalf of OmPrakash >>Muppirala" >> wrote: >> >> > >> >AngularJS: https://docs.angularjs.org/api/ng/direct

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread Alex Harui
Are you still getting the warning at compile time? On 1/2/17, 7:39 AM, "piotrz" wrote: >I just tried "__NoChangeEvent__" and results is same. If it is like you >said >my renderer should pickup from each object property at creation required >value. - It still not working for me. > >I will try to

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread piotrz
Nope warning are gone. Previously I've missed Bindable property in VO object. - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Why-binding-is-not-working-in-MDL-example-tp57738p57756.html Sent from

Re: I just learned something in Javascript

2017-01-02 Thread Alex Harui
Interesting. Does it work everywhere? var foo = 20 + Number("1234"); Would that compile to the following and still work? var foo = 20 + +"1234"; -Alex On 1/2/17, 3:08 AM, "Harbs" wrote: >Apparently Number(“1234”) is the same as a shorthand version: +”1234”. >Both of these will convert a str

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread piotrz
You cane check fresh results - Menu tab [1]. Item renderer with my code is under: itemRenderers/CustomMenuItemRenderer.mxml http://apacheflexbuild.cloudapp.net:8080/job/MDLExample/lastSuccessfulBuild/artifact/examples/flexjs/MDLExample/bin/js-debug/index.html - Apache Flex PMC piotrzarzyck

Re: I just learned something in Javascript

2017-01-02 Thread Harbs
Apparently, yes: > var foo = 20 + +"1234"; < undefined > foo < 1254 On Jan 2, 2017, at 7:13 PM, Alex Harui wrote: > var foo = 20 + +"1234";

Re: I just learned something in Javascript

2017-01-02 Thread Harbs
Or more concisely: console.log(20 + +"1234") < 1254 On Jan 2, 2017, at 7:21 PM, Harbs wrote: > Apparently, yes: > > > var foo = 20 + +"1234"; > < undefined > > foo > < 1254 > > On Jan 2, 2017, at 7:13 PM, Alex Harui wrote: > >> var foo = 20 + +"1234"; >

Re: I just learned something in Javascript

2017-01-02 Thread Alex Harui
Where can I read more about this syntax? Does the difference really move the needle? Does GCC optimizer replace Number with a shortened name anyway? What if you take away all whitespace? What should we generate for: var bar = "1234"; var foo = Number(bar); var foo = Number("12" + "34"); Sorr

Re: [FlexJS] How to add html content?

2017-01-02 Thread OmPrakash Muppirala
On Jan 2, 2017 9:06 AM, "Alex Harui" wrote: On 1/2/17, 12:30 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala" wrote: >On Mon, Jan 2, 2017 at 12:15 AM, Alex Harui wrote: > >> >> >> On 1/2/17, 12:01 AM, "omup...@gmail.com on behalf of OmPrakash >>Muppirala" >> wrote: >> >> > >> >Angul

Re: [FlexJS, MDL] Update MDL to 1.3.0

2017-01-02 Thread Carlos Rovira
Hi Piotr, have your a link with the release notes to see what change? I all is working ok, I think we can upgrade and try to stick with latest version. Thanks 2017-01-02 8:03 GMT+01:00 piotrz : > Hi Carlos, Om > > I saw on github that there is 1.3.0 [1] version available. I've just > updated

Re: MDL => Material Design Components for web

2017-01-02 Thread Carlos Rovira
Thanks Josh!, world continue to moving faster than we can achieve. Ok, As Piotr suggest I think we should go soon with a MDC library. I think is better to cover soon the rest of components and move to MDC lib, what do you think? Do you know if our current components are part of MDC? (that will he

Re: [FlexJS, MDL] Update MDL to 1.3.0

2017-01-02 Thread piotrz
Actually I cannot find it :) We can only check it on github in code. :) I will push updates then. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Update-MDL-to-1-3-0-tp57732p57765.h

Re: [FlexJS, MDL] Help with MDL

2017-01-02 Thread piotrz
Carlos, What are you going to work on next ? Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Help-with-MDL-tp56556p57766.html Sent from the Apache Flex Development mailing list archive at N

Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2017-01-02 Thread Carlos Rovira
Hi Piotr, if the Class is the same I don't have any problem to remove the redundant class. I only was following Peter's ListExample, so If you think is equal feel free to remove. Thanks 2017-01-02 15:17 GMT+01:00 piotrz : > I see only one difference which I think could be moved to > "DataItemR

Re: MDL => Material Design Components for web

2017-01-02 Thread Josh Tynjala
Here's what "All Components" links to in the readme. Seems that they don't have a nice website with a list of components and docs for each one yet, but this should give you an idea. https://github.com/material-components/material-components-web/tree/master/packages I get the impression that it's

Re: [FlexJS, MDL] Help with MDL

2017-01-02 Thread Carlos Rovira
Hi Piotr, I was thinking in go for the Footer. and you? 2017-01-02 18:44 GMT+01:00 piotrz : > Carlos, > > What are you going to work on next ? > > Piotr > > > > - > Apache Flex PMC > piotrzarzyck...@gmail.com > -- > View this message in context: http://apache-flex- > development.247.n4.n

Re: MDL => Material Design Components for web

2017-01-02 Thread Carlos Rovira
Right, I was browsing the demos here: https://material-components-web.appspot.com Are promising, but as Josh say, I don't see it in a stable version, and most of the things we already have it in MDL now. So for me the plan continues as I stated before. Finish the actual MDL set and then start lo

Re: AW: How to put an example online

2017-01-02 Thread Carlos Rovira
Hi Alex, it works for me, but aside of the load time (it takes more than 3 secs for me, but I'm still in a low internet conecction, but maybe not too low for this ;)), is that build seems not as accurate as I have on maven, maybe is ANT?. The buttons are behaving strangely when go "on over" 2017-

Re: [FlexJS, MDL] Update MDL to 1.3.0

2017-01-02 Thread Carlos Rovira
I have to leave now, but I find a problem. If you go to Sliders example and move the thumb of a slider you'll see javascript errors, I think is due to 1.3.0, I didn't found nothing more 2017-01-02 18:34 GMT+01:00 piotrz : > Actually I cannot find it :) We can only check it on github in code. :) >

Re: AW: How to put an example online

2017-01-02 Thread OmPrakash Muppirala
We should probably link to the release version? On Jan 2, 2017 10:54 AM, "Carlos Rovira" wrote: > Hi Alex, > > it works for me, but aside of the load time (it takes more than 3 secs for > me, but I'm still in a low internet conecction, but maybe not too low for > this ;)), is that build seems no

Re: [FlexJS, MDL] Update MDL to 1.3.0

2017-01-02 Thread piotrz
Actually I don't see anything in the console. For me working without the problem. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Update-MDL-to-1-3-0-tp57732p57774.html Sent from the Apache F

Re: [FlexJS, MDL] Help with MDL

2017-01-02 Thread piotrz
Actually I'm not sure. I was thinking today that I will start adding dataProvider API to Tabs, but on the other hand we have enough things which we could present to the world. Maybe it's time to start changing our MDL Example application to real presentation of our work. Component + Code Example.

Re: [FlexJS, MDL] Help with MDL

2017-01-02 Thread Carlos Rovira
That is your choice. I'm as well tempted to make web with all this, but un The other hand see few components left, so having The set as finished as possible will make me brain more happy at this moment :) El El lun, 2 ene 2017 a las 20:49, piotrz escribió: > Actually I'm not sure. I was thinking

Re: [FlexJS] How Binding works?

2017-01-02 Thread piotrz
Just found this thread. I see that for Carlos binding was also didn't work in item renderer. I did deeper investigation and look into List and ComboBox html package. I think for those components there is a bug or something is not implemented yet. Let's take look in ComboBox where I have simple cod

Re: I just learned something in Javascript

2017-01-02 Thread Harbs
On Jan 2, 2017, at 7:34 PM, Alex Harui wrote: > Where can I read more about this syntax? https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators#Unary_plus_() > Does the difference really move the needle? Does GCC optimizer replace > Number with a shorten

Re: I just learned something in Javascript

2017-01-02 Thread Harbs
FWIW, ActionScript seems to have a unary plus as well. http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7fd1.html#WS5b3ccc516d4fbf351e63e3d118a9b90204-7f69 On Jan 2, 2017, at 11:09 PM, Harbs wrote: > > On Jan 2, 2017, at 7:34 PM, Alex Harui wrote

[FlexJS] Which java source version? What to do with unreachable code blocks?

2017-01-02 Thread Christofer Dutz
Hi, I am currently going through some issues in the code and stumbled over several that need discussion: - The Ant build script claims the source to be Java 1.6, but there’s code in there that is marked as “since 1.7” (COMPJSC.java Lines 349 and 351): What source level are we using?

Re: [FlexJS] Which java source version? What to do with unreachable code blocks?

2017-01-02 Thread Alex Harui
On 1/2/17, 1:54 PM, "Christofer Dutz" wrote: >Hi, > >I am currently going through some issues in the code and stumbled over >several that need discussion: > > >- The Ant build script claims the source to be Java 1.6, but >there’s code in there that is marked as “since 1.7” (COMPJSC.jav

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread piotrz
Alex, I did simple test: [Bindable("dataChange")] public function get menuItem():MenuItemVO { return data as MenuItemVO; } override public function set data(value:Object):void { super.data = value; dispatchEvent(new org.apache.flex.events.Event("dataChange")); } Above code do

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread Alex Harui
How are you using it? Are you getting compiler errors? Did you put a ContainerDataBinding or ItemRendererDataBinding in the MXML? -Alex On 1/2/17, 2:17 PM, "piotrz" wrote: >Alex, > >I did simple test: > >[Bindable("dataChange")] >public function get menuItem():MenuItemVO >{ > return data

Re: I just learned something in Javascript

2017-01-02 Thread Alex Harui
Thanks for the links. So, is my takeaway correct that we can't just use it everywhere and have to worry about whitespace and certain expressions? Would it just be better to rename Number to "a" or something like that? -Alex On 1/2/17, 1:13 PM, "Harbs" wrote: >FWIW, ActionScript seems to have

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread piotrz
I have following code [1]. MenuItemRenderer is extending org.apache.flex.html.supportClasses.MXMLItemRenderer [1] https://paste.apache.org/y0DG Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MD

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread Alex Harui
What does MenuItemRenderer extend? I don't see the ContainerDataBinding or ItemRendererDataBinding beads. Are they in a base class? -Alex On 1/2/17, 2:24 PM, "piotrz" wrote: >I have following code [1]. MenuItemRenderer is extending >org.apache.flex.html.supportClasses.MXMLItemRenderer > >[1]

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread piotrz
Alex, That's how it looks like: public class MenuItemRenderer extends MXMLItemRenderer public class MXMLItemRenderer extends DataItemRenderer implements ILayoutParent, ILayoutHost, IStrand public class DataItemRenderer extends UIItemRendererBase public class UIItemRendere

Re: [FlexJS] How to add html content?

2017-01-02 Thread Alex Harui
On 1/2/17, 9:38 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala" wrote: >On Jan 2, 2017 9:06 AM, "Alex Harui" wrote: > >Are you saying that Angular and Jquery have ways of preventing you from >writing to innerHTML directly? Otherwise it is opt-in. You must use the >APIs they offer. >

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread Alex Harui
DataBinding expressions turn into data structures. A bead like ContainerDataBinding has to be on the strand for the MXML file in order to interpret the data structure and set up and execute the actual binding. Maybe all you are missing is that. See ProductListItem.mxml in the FlexJSStore example

Re: [FlexJS] Support for CSS calc() function

2017-01-02 Thread Carlos Rovira
I opened a branch in falcon and asjs for this ticket, but I think I'm a bit stuck with that...don't know how to continue... 2017-01-01 10:36 GMT+01:00 OmPrakash Muppirala : > JIRA created here: https://issues.apache.org/jira/browse/FLEX-35235 > > Thanks, > Om > > On Fri, Dec 30, 2016 at 10:34 AM,

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

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

Re: [FlexJS] Support for CSS calc() function

2017-01-02 Thread Alex Harui
On 1/2/17, 3:38 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >I opened a branch in falcon and asjs for this ticket, but I think I'm a >bit >stuck with that...don't know how to continue... Well, I assume "mvn clean install" builds both repos for you. In compiler-jx/src/t

Re: broken

2017-01-02 Thread Alex Harui
On 1/2/17, 12:22 AM, "Harbs" wrote: >I have a couple of places where I’m using to insert >references to javascript and css fils. > >In the current nightly this is no longer working. I think it is fixed with my last commit. -Alex

Re: [FlexJS] Cleaning up in the compiler

2017-01-02 Thread Alex Harui
On 12/30/16, 8:38 AM, "Christofer Dutz" wrote: >Ok … so I did something … hope it’s correct … I was a little surprised to >find Ant build scripts in “src/main/resources” and “src/test/resources” >any reason for packing in these parts of the build scripts into the final >jar? Seemed ok. I had

Re: [FlexJS, MDL] Why binding is not working in MDL example

2017-01-02 Thread piotrz
Alex, That's what I'm missing. It's a bit better cause when I add bead "ItemRendererDataBinding" my getter has been fired, although binding is still not working. I've just pushed my code. - Not sure what can be wrong. I have to admit I'm still thinking to much Flex instead of FlexJS :) Piotr

Re: [FlexJS, MDL] Help with MDL

2017-01-02 Thread piotrz
Carlos, I'm starting to fight with dataProvider+itemRenderer API for Tabs. :) Let's finish whole set of components! Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Help-with-MDL-tp56556p5779