Re: [FlexJS] How Binding works?

2016-12-09 Thread Alex Harui
On 12/9/16, 2:45 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: > >@Alex, as you mentioned the current IR is not working. So I think, I'll >continue with the raw version as I understand you need to fix some >internals. Thanks This appears to be working now. -Alex

Re: [LAST CALL] Flex SDK 4.16

2016-12-09 Thread OmPrakash Muppirala
I've pushed a fix, but unable to test it on the nightly. For some reason or the other, the nightly builds keep failing. My weekend has started, so I will be able to spend more time on this over the next couple of days. Thanks, Om On Fri, Dec 9, 2016 at 7:13 PM, Justin Mclean wrote: > Hi, > >

Re: [LAST CALL] Flex SDK 4.16

2016-12-09 Thread Justin Mclean
Hi, > A bit more progress over the weekend. Hopefully will be done this week. Any progress? Thanks, Justin

Re: [FlexJS] VO Constructor Bug

2016-12-09 Thread Alex Harui
I think I see a semi-colon after ActorVO(actorName:String = null) On 12/9/16, 3:59 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi, > >this simple VO > >package vos >{ >[Bindable] >public class ActorVO >{ >public function ActorVO(actorName:String = null); >{ >this.actorNa

[FlexJS] VO Constructor Bug

2016-12-09 Thread Carlos Rovira
Hi, this simple VO package vos { [Bindable] public class ActorVO { public function ActorVO(actorName:String = null); { this.actorName = actorName; } public var actorName:String = ""; } } is failing in something very basic: ActorVO.as(26): col: 4 The 'this' keyword can not be used in stati

Re: [FlexJS] Determine if a IR has content declared

2016-12-09 Thread Alex Harui
The MXMLDescriptor property should be null or an empty array if no MXML content. On 12/9/16, 3:30 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi, > >I want that my ListItemRenderer be smart enough to determine if there's >some mxml content declared (a or something by user)

[FlexJS] Determine if a IR has content declared

2016-12-09 Thread Carlos Rovira
Hi, I want that my ListItemRenderer be smart enough to determine if there's some mxml content declared (a or something by user) So If the user didn't declare a custom IR, the ListItemRenderer could create a textNode, but if there's some content by user bypass that code. I'm trying to see how I

Re: [FlexJS] How Binding works?

2016-12-09 Thread Carlos Rovira
Hi, @Chris, Thanks for the quick fix, I tested it and it works now without. Although I think as Alex that a VO is better, I think that is not related to get the build working although there's a warning. Thanks! :) @Alex, as you mentioned the current IR is not working. So I think, I'll continue wi

Re: [FlexJS] How Binding works?

2016-12-09 Thread Christofer Dutz
So I just pushed a new version which allows configuring if the build should fail on warnings (default is false) Chris Am 09.12.16, 22:40 schrieb "Christofer Dutz" : Ok ... for now 2 is ok ... I’ll probably just add a config option to allow „fail on warnings“ which defaults to false and can

Re: [FlexJS] How Binding works?

2016-12-09 Thread Christofer Dutz
Ok ... for now 2 is ok ... I’ll probably just add a config option to allow „fail on warnings“ which defaults to false and can be turned on if required. Chris Am 09.12.16, 22:31 schrieb "Alex Harui" : On 12/9/16, 1:08 PM, "Christofer Dutz" wrote: >I just comitted a fix th

Re: [FlexJS] How Binding works?

2016-12-09 Thread Alex Harui
On 12/9/16, 1:08 PM, "Christofer Dutz" wrote: >I just comitted a fix that doesn’t make the build fail on a return code >of 2 (Didn’t know that 2 was also ok) I think 2 means that there were warnings but no errors. That gives folks the option of failing on warnings if they do have a "no warnin

Re: [FlexJS] How Binding works?

2016-12-09 Thread Alex Harui
On 12/9/16, 12:02 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, I think I don't need to dispatch a "dataChange" event, I only >want >to ease writing. If you use [Bindable("dataChange")] the code must call dispatchEvent itself. The compiler does not generate any cod

Re: [FlexJS] How Binding works?

2016-12-09 Thread Christofer Dutz
I just comitted a fix that doesn’t make the build fail on a return code of 2 (Didn’t know that 2 was also ok) Should work now without modifying anything. Chris Am 09.12.16, 22:06 schrieb "Alex Harui" : The configs are the same regarding warnings. The warnings are output in both Ant an

Re: [FlexJS] How Binding works?

2016-12-09 Thread Alex Harui
The configs are the same regarding warnings. The warnings are output in both Ant and Maven. Let's use the other thread to try to work through this. -Alex On 12/9/16, 12:55 PM, "Christofer Dutz" wrote: >Hi Carlos, > >they are all in: >flexjs-compiler/flexjs-maven-plugin/src/main/resources/conf

Re: [FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread Christofer Dutz
I just comitted a change to allow a return value of 2 in flexjs-compiler/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java (Line 227) Chris Am 09.12.16, 22:00 schrieb "Alex Harui" : On 12/9/16, 11:54 AM, "Christofer Dutz" wrote: >The maven bui

Re: [FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread Alex Harui
On 12/9/16, 11:54 AM, "Christofer Dutz" wrote: >The maven build will not fail because of this. All it does is output >warnings. > >If it does fail, this is definitely something we need to fix. I observed that the SWF build output the warning and apparently did not think that was a failure beca

Re: [FlexJS] How Binding works?

2016-12-09 Thread Christofer Dutz
Hi Carlos, they are all in: flexjs-compiler/flexjs-maven-plugin/src/main/resources/config Depending on the type of compilation different templates are used. Chris Am 09.12.16, 21:05 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos Rovira" : Thanks Chris, I'm searching for config, b

Re: [FlexJS] ComboBox

2016-12-09 Thread Jeffry Houser
My bad; I completely missed the FlexJS mention in the subject header. You can probably ignore most of what I Said. On 12/9/2016 2:09 PM, Peter Ent wrote: Thanks for the details. I know we can include the assets, I'm just not show how we [will] do it with FlexJS build files; and I'll take a

Re: [FlexJS] How Binding works?

2016-12-09 Thread Carlos Rovira
Thanks Chris, I'm searching for config, but still don't know what file I should look. Could you share a path and concrete file to look for? thanks 2016-12-09 20:56 GMT+01:00 Christofer Dutz : > In general you could tweak the config-xml templates which are part of the > flexjs-maven-plugin. > Afte

Re: [FlexJS] How Binding works?

2016-12-09 Thread Carlos Rovira
Hi Alex, I think I don't need to dispatch a "dataChange" event, I only want to ease writing. In old Flex I use to do something similar as we did here and it works. Is there an easy way to do this? I only want to avoid the cumbersome ... "ValueObject(data)" everywhere and substitute for something m

Re: [FlexJS] How Binding works?

2016-12-09 Thread Christofer Dutz
In general you could tweak the config-xml templates which are part of the flexjs-maven-plugin. After all probably the Ant version simply has different defaults here. I think they should be reported as warnings, but not break the build. (In that particular type of problem). Chris Am 09.12.16,

Re: [FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread Christofer Dutz
The maven build will not fail because of this. All it does is output warnings. If it does fail, this is definitely something we need to fix. Chris Am 09.12.16, 19:50 schrieb "Alex Harui" : On 12/9/16, 10:25 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote:

Re: [FlexJS] How Binding works?

2016-12-09 Thread Alex Harui
If you don't dispatch "dataChange" it has no chance of working. There still might be other issues. -Alex On 12/9/16, 11:08 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >I tried this, but with no luck, still doesn't output nothing: > >http://ns.adobe.com/mxml/2009"; >

Re: [FlexJS] ComboBox

2016-12-09 Thread Alex Harui
For down arrow, aren't there symbols in most fonts we can use? On 12/9/16, 11:09 AM, "Peter Ent" wrote: >Thanks for the details. I know we can include the assets, I'm just not >show how we [will] do it with FlexJS build files; and I'll take a look at >this. > >‹peter > >On 12/9/16, 12:07 PM, "Je

Re: [FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread Alex Harui
On 12/9/16, 11:04 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala" wrote: >Even if the class as marked as Bindable? If I understand your plan, yes. When you write {data.foo}, the binding system is trying to detect not only changes to foo, but also data. If you say that data is of a m

Re: [FlexJS] ComboBox

2016-12-09 Thread Peter Ent
Thanks for the details. I know we can include the assets, I'm just not show how we [will] do it with FlexJS build files; and I'll take a look at this. ‹peter On 12/9/16, 12:07 PM, "Jeffry Houser" wrote: > > >On 12/9/2016 9:57 AM, Peter Ent wrote: >> Hi, >> >> I've re-worked ComboBox so that it

Re: [FlexJS] How Binding works?

2016-12-09 Thread Carlos Rovira
I tried this, but with no luck, still doesn't output nothing: http://ns.adobe.com/mxml/2009"; xmlns:js="library://ns.apache.org/flexjs/basic" xmlns:mdl="library://ns.apache.org/flexjs/mdl" xmlns="http://www.w3.org/1999/xhtml";>

Re: [FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread OmPrakash Muppirala
Even if the class as marked as Bindable? On Fri, Dec 9, 2016 at 11:03 AM, Alex Harui wrote: > > > On 12/9/16, 10:59 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala" > wrote: > > >On Fri, Dec 9, 2016 at 10:50 AM, Alex Harui wrote: > >> > >> The binding warning is legitimate. It says th

Re: [FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread Alex Harui
On 12/9/16, 10:59 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala" wrote: >On Fri, Dec 9, 2016 at 10:50 AM, Alex Harui wrote: >> >> The binding warning is legitimate. It says that there aren't change >> events for data.foo. That could bite you some day, but is ok in this >> particula

Re: [FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread OmPrakash Muppirala
On Fri, Dec 9, 2016 at 10:50 AM, Alex Harui wrote: > > > On 12/9/16, 10:25 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > wrote: > > >You're right, compile is working, but message was confused (BUILD FAILURE) > > > >Maybe Chris could help with this? > > Well, I'm sure he can, but Chr

Re: [FlexJS] How Binding works?

2016-12-09 Thread Alex Harui
Well, there isn't any dataChange property being dispatched, but the ItemRendererDataBinding may need to be upgraded to handle doing that. FWIW, I would probably not override data and just do: [Bindable("dataChange")] bublic function get product():ProductVO { return data as ProductVO; } -Alex

Re: [FlexJS] How Binding works?

2016-12-09 Thread Carlos Rovira
Hi Alex, I get to work as you said, but trying to make a bindable var to reduce verbosity like this: http://ns.adobe.com/mxml/2009"; xmlns:js="library://ns.apache.org/flexjs/basic" xmlns:mdl="library://ns.apache.org/flexjs/mdl" xml

Re: [FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread Alex Harui
On 12/9/16, 10:25 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >You're right, compile is working, but message was confused (BUILD FAILURE) > >Maybe Chris could help with this? Well, I'm sure he can, but Chris did want our stuff to compile without warnings, so I think he set

[FlexJS][Maven] Build failure caused by compiler warnings (was: Re: [FlexJS] How Binding works?)

2016-12-09 Thread Carlos Rovira
You're right, compile is working, but message was confused (BUILD FAILURE) Maybe Chris could help with this? 2016-12-09 17:48 GMT+01:00 Alex Harui : > Well, that is a legitimate warning, but is innocuous. I'm tempted to try > to figure out how to tell Maven to accept these warnings, but I don

Re: Slow performance > 1000 objects

2016-12-09 Thread Alex Harui
This looks like it includes startup of the app. In the original post, you indicated that a function called setAgentItem was causing a problem, but it doesn't show up on the screenshot (or maybe I'm just not seeing it). Is that function called at startup or off some button click? If it is off of s

Re: [FlexJS] ComboBox

2016-12-09 Thread Jeffry Houser
On 12/9/2016 9:57 AM, Peter Ent wrote: Hi, I've re-worked ComboBox so that it uses TextInput, Button, and List (as its pop-up). The original version had a lot of platform-specific code and just wasn't working cleanly. This new version is much better IMO. I still have to figure out how to de

Re: Slow performance > 1000 objects

2016-12-09 Thread gmanupnorth
Screenshot of profiler Profiler.PNG -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Slow-

Re: [FlexJS] How Binding works?

2016-12-09 Thread Alex Harui
Well, that is a legitimate warning, but is innocuous. I'm tempted to try to figure out how to tell Maven to accept these warnings, but I don't know how to do that. That's why the Ant builds work. Or get the compiler to suppress the warning. The other answer is to switch to ValueObjects if you a

Re: [FlexJS] How Binding works?

2016-12-09 Thread Carlos Rovira
Hi Alex, just updated all commits and test your ItemRenderer and is not working, do you know what could be? The project 'App' has been successfully compiled and optimized. /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/itemRenderers/CustomListItemRen

Re: [FlexJS] How Binding works?

2016-12-09 Thread Alex Harui
On 12/9/16, 5:35 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi > >I need to know how to deal with data binding in different situations, >ItemRenderer, View, Container, Component, Bead,... > >I saw various classes ConstantBinding, ViewBeadBinding... > >Hope someone could sh

[FlexJS] ComboBox

2016-12-09 Thread Peter Ent
Hi, I've re-worked ComboBox so that it uses TextInput, Button, and List (as its pop-up). The original version had a lot of platform-specific code and just wasn't working cleanly. This new version is much better IMO. I still have to figure out how to decorate the button with an arrow. I'm thinki

[FlexJS] How Binding works?

2016-12-09 Thread Carlos Rovira
Hi I need to know how to deal with data binding in different situations, ItemRenderer, View, Container, Component, Bead,... I saw various classes ConstantBinding, ViewBeadBinding... Hope someone could share the main principles of Binding in FlexJS Thanks -- Carlos Rovira http://about.me/carlo

Re: [FlexJS] Conditional compilation in user projects

2016-12-09 Thread Carlos Rovira
Hi Alex, with your example I got it working now I have li items with custom content, so great. The problem now is that I lost data from data provider. I need to know how to deal with binding, but I think better to close this thread and open another Thanks! 2016-12-09 8:52 GMT+01:00 Alex Harui :