Jenkins build is back to normal : royale-asjs_MXTests #31

2018-10-08 Thread apacheroyaleci
See 




Re: Migrating Enterprise Flex Application

2018-10-08 Thread chembali
Alex, are you able to view the details in the error page that I have
attached?



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-10-08 Thread chembali
Error.PNG
  

Please see the attached error that shows the javascript error.



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-10-08 Thread Alex Harui
The zip file didn't work for me.  I'm not sure how well MenuExample and 
AccordionExample were tested before the release.

-Alex

On 10/8/18, 8:40 PM, "chembali"  wrote:

Will get to this as soon as I can. Here is another issue that I am having. I
am trying to take a look at some of the samples shipped with 0.9.3 release.
I am seeing issues while running some of the examples. Please see the
attached zip containing the screenshot showing the error while running the
MenuExample. I got the same error while running AccordionExample as well.
What would be the likely cause of this?

Error.zip


  



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cd8b4f17612c34a8944f708d62d9900f1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746532500815121sdata=0GNGs96MBe9R6VLAgBCaVqebLWp60YvEMnM7FwMGNc0%3Dreserved=0




Re: Migrating Enterprise Flex Application

2018-10-08 Thread chembali
Will get to this as soon as I can. Here is another issue that I am having. I
am trying to take a look at some of the samples shipped with 0.9.3 release.
I am seeing issues while running some of the examples. Please see the
attached zip containing the screenshot showing the error while running the
MenuExample. I got the same error while running AccordionExample as well.
What would be the likely cause of this?

Error.zip
  



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Build failed in Jenkins: royale-asjs_MXTests #30

2018-10-08 Thread apacheroyaleci
See 


Changes:

[carlosrovira] Add example to assign new data to combobox

--
[...truncated 2.04 MB...]
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/IMenuBarModel.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/beads/models/MenuBarModel.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/beads/NumericStepperView.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/spark/layouts/supportClasses/LayoutElementHelper.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/TestResult.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/IFactory.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/beads/layouts/BasicLayout.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/IDataProviderItemRendererMapper.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/List.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/Strand.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/events/ValueEvent.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/utils/IXMLNotifiable.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/collections/XMLListAdapter.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/events/ItemClickedEvent.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/utils/EffectTimer.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/supportClasses/DayNameItemRenderer.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/states/State.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/states/State.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/core/ContainerLayout.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/beads/models/MenuModel.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/CallLaterBead.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/beads/ToolTipBead.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/containers/utilityClasses/FlexChildInfo.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/DateChooser.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/resources/LocaleSorter.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/beads/DisableBead.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/IToggleButtonModel.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/binding/ContainerDataBinding.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/styles/StyleManager.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/graphics/IStroke.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/containers/beads/BoxLayout.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/TextButton.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/supportClasses/DateHeaderButton.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/containers/HBox.js
[mxmlc] 

Re: Proxy method calls with RemoteObject

2018-10-08 Thread Alex Harui
I think you'll have to wait until someone gets all of the old Flex RO code to 
compile and run.  I'm currently still debugging the compiler, so no way it will 
be ready tomorrow.

It doesn't make sense to try to duplicate all of this code and get it to work 
some other way.

-Alex

On 10/8/18, 3:21 PM, "Carlos Rovira"  wrote:

Hi Alex,

I'm closing for today, but tomorrow I'll need to handle more than one
Responder for RemoteObject calls, so each operation/method can have it's
own responder and create methods for each one in my controllers. with the
current RemoteObject implementation could you share what could be the most
quick and easy way to get this while the full RO implementation is on the
works? Now that I'm starting to grow the app code base I can rely on a
result handler full of if-then-else

Thanks for any help on this

Carlos




El lun., 8 oct. 2018 a las 18:52, Carlos Rovira ()
escribió:

> Ok Alex, thanks, didn't know that you have this task to make it work RO. I
> though you only try to compile it.
> That's good to know. I'm trying right now to make a real world app and
> since I don't have a micro structural IOC framework like Swiz, that was
> that I use in Flex, I'm trying to structure and organize screens,
> controllers, delegates, and so on, and I'm trying to put things as easy as
> possible so I can refactor more later to something more suited for this
> task, since I don't have time now to build a framework for this due to
> reduced time lines.
>
> If you get this RO proxy way to call backend methods and AsyncToken,
> that's what I need to connect with MX RemoteObject in the same way we use
> to do.
>
> I'll be waiting for your. progress there
>
> thanks
>
> Carlos
>
>
>
>
>
>
> El lun., 8 oct. 2018 a las 17:28, Alex Harui ()
> escribió:
>
>> I believe I already said I am working on RemoteObject.
>>
>> The Flex compiler generates custom code for mx:RemoteObject.  The Royale
>> Compiler currently does not.  I am working on it.
>>
>> Thanks,
>> -Alex
>>
>> On 10/8/18, 3:13 AM, "Carlos Rovira"  wrote:
>>
>> Hi,
>>
>> I was experimenting trying to get RemoteObject to proxy method calls.
>>
>> so instead of doing
>>
>> service.send("echo", [name_txt.text]);
>>
>> be able to do:
>>
>> service.echo(name_txt.text);
>>
>> I tried with Proxy class
>>
>> (org.apache.royale.utils.Proxy)
>>
>> and implementing IEventDispatcher, but compiler throws error:
>>
>> Call to a possibly undefined method echo through a reference with
>> static
>> type RemoteObject.
>>
>> It's possible to do something like this? what I'm missing?
>>
>> This seems a little enhancement, but it would be cool if we get it in
>> order
>> to be more near of the normal syntax we all have in our code bases.
>>
>> thanks
>>
>> --
>> Carlos Rovira
>>
>> 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C84a4258241354233aeeb08d62d6c7081%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746341103394266sdata=yVx9zWfP496aU9xnOJfjjS%2Flk88UaE0OY5SENAwT%2Fy8%3Dreserved=0
>>
>>
>>
>
> --
> Carlos Rovira
> 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C84a4258241354233aeeb08d62d6c7081%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746341103394266sdata=yVx9zWfP496aU9xnOJfjjS%2Flk88UaE0OY5SENAwT%2Fy8%3Dreserved=0
>
>

-- 
Carlos Rovira

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C84a4258241354233aeeb08d62d6c7081%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746341103394266sdata=yVx9zWfP496aU9xnOJfjjS%2Flk88UaE0OY5SENAwT%2Fy8%3Dreserved=0




Re: Proxy method calls with RemoteObject

2018-10-08 Thread Carlos Rovira
Hi Alex,

I'm closing for today, but tomorrow I'll need to handle more than one
Responder for RemoteObject calls, so each operation/method can have it's
own responder and create methods for each one in my controllers. with the
current RemoteObject implementation could you share what could be the most
quick and easy way to get this while the full RO implementation is on the
works? Now that I'm starting to grow the app code base I can rely on a
result handler full of if-then-else

Thanks for any help on this

Carlos




El lun., 8 oct. 2018 a las 18:52, Carlos Rovira ()
escribió:

> Ok Alex, thanks, didn't know that you have this task to make it work RO. I
> though you only try to compile it.
> That's good to know. I'm trying right now to make a real world app and
> since I don't have a micro structural IOC framework like Swiz, that was
> that I use in Flex, I'm trying to structure and organize screens,
> controllers, delegates, and so on, and I'm trying to put things as easy as
> possible so I can refactor more later to something more suited for this
> task, since I don't have time now to build a framework for this due to
> reduced time lines.
>
> If you get this RO proxy way to call backend methods and AsyncToken,
> that's what I need to connect with MX RemoteObject in the same way we use
> to do.
>
> I'll be waiting for your. progress there
>
> thanks
>
> Carlos
>
>
>
>
>
>
> El lun., 8 oct. 2018 a las 17:28, Alex Harui ()
> escribió:
>
>> I believe I already said I am working on RemoteObject.
>>
>> The Flex compiler generates custom code for mx:RemoteObject.  The Royale
>> Compiler currently does not.  I am working on it.
>>
>> Thanks,
>> -Alex
>>
>> On 10/8/18, 3:13 AM, "Carlos Rovira"  wrote:
>>
>> Hi,
>>
>> I was experimenting trying to get RemoteObject to proxy method calls.
>>
>> so instead of doing
>>
>> service.send("echo", [name_txt.text]);
>>
>> be able to do:
>>
>> service.echo(name_txt.text);
>>
>> I tried with Proxy class
>>
>> (org.apache.royale.utils.Proxy)
>>
>> and implementing IEventDispatcher, but compiler throws error:
>>
>> Call to a possibly undefined method echo through a reference with
>> static
>> type RemoteObject.
>>
>> It's possible to do something like this? what I'm missing?
>>
>> This seems a little enhancement, but it would be cool if we get it in
>> order
>> to be more near of the normal syntax we all have in our code bases.
>>
>> thanks
>>
>> --
>> Carlos Rovira
>>
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7Cd6e1679c9f4f46862fdf08d62d06c1da%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636745904387654783sdata=ZXdwxNAonPKWTeTzvkXW%2Ft3vI1lkIWau0Xla672rVA8%3Dreserved=0
>>
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Carlos Rovira
Thanks Alex,

after much trying I see I missed to put a [Bindable] in the intermediate
class variable that is nesting the var where the data is assigned, I
thinked that make Bindable the model class itself was sufficient, but you
need to make bindable as well the member that declares it, so lesson
learned, nested binding works, but don't forget to make Bindable all the
vars used!! :)

Thanks for the explanation!

Carlos


El lun., 8 oct. 2018 a las 23:29, Alex Harui ()
escribió:

> Some kinds of nested binding do work.
>
> Others did not work in Flex either.  Nested Arrays and Objects and other
> primitives don't dispatch change events.
>
> In Royale, because of PAYG, some basic implementations of ArrayList should
> not dispatch change events at all.  Some other bead or a more expensive
> implemention will.
>
> HTH,
> -Alex
>
> On 10/8/18, 2:22 PM, "Carlos Rovira"  wrote:
>
> Thanks Harbs, Olaf,
>
> I think the problem is nested Binding. It seems that doesn't work, and
> that's a problem since defeats the purpose to have a model bindable at
> level class. I'm pretty sure people will do this all the time.
>
> I get it working assigning a new ArrayList is I have in the same file.
>
>
> El lun., 8 oct. 2018 a las 22:57, Olaf Krueger ( >)
> escribió:
>
> > Ahh sorry, I didn't see the latest answers before posting so my post
> is a
> > duplicate to Harbs post ;-)
> >
> >
> >
> >
> > --
> > Sent from:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cc9e496aeafd7417a778c08d62d64250e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746305478306520sdata=gwICNpNf6Rky4%2F%2FHNGB1ddZVl4p%2FQrUregPS8egfaEg%3Dreserved=0
> >
>
>
> --
> Carlos Rovira
>
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7Cc9e496aeafd7417a778c08d62d64250e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746305478306520sdata=Jjd2hv%2B0oYMnOv0zY3g0JuwEPlSd9Cc4L1DRx6ySQM4%3Dreserved=0
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Alex Harui
Some kinds of nested binding do work.

Others did not work in Flex either.  Nested Arrays and Objects and other 
primitives don't dispatch change events.

In Royale, because of PAYG, some basic implementations of ArrayList should not 
dispatch change events at all.  Some other bead or a more expensive 
implemention will.

HTH,
-Alex

On 10/8/18, 2:22 PM, "Carlos Rovira"  wrote:

Thanks Harbs, Olaf,

I think the problem is nested Binding. It seems that doesn't work, and
that's a problem since defeats the purpose to have a model bindable at
level class. I'm pretty sure people will do this all the time.

I get it working assigning a new ArrayList is I have in the same file.


El lun., 8 oct. 2018 a las 22:57, Olaf Krueger ()
escribió:

> Ahh sorry, I didn't see the latest answers before posting so my post is a
> duplicate to Harbs post ;-)
>
>
>
>
> --
> Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cc9e496aeafd7417a778c08d62d64250e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746305478306520sdata=gwICNpNf6Rky4%2F%2FHNGB1ddZVl4p%2FQrUregPS8egfaEg%3Dreserved=0
>


-- 
Carlos Rovira

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7Cc9e496aeafd7417a778c08d62d64250e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746305478306520sdata=Jjd2hv%2B0oYMnOv0zY3g0JuwEPlSd9Cc4L1DRx6ySQM4%3Dreserved=0




Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Alex Harui
Yes, in theory.

The key to debugging binding in Royale is: "don't trust anything" __  
The compiler might be generating the wrong code, the widgets may not be 
dispatching change events, and also, Royale evaluates binding expressions only 
once at instantiation time whereas Flex tried at least twice and sometimes 
more, which is the main reason why Flex binding was so slow.

Fundamentally, Binding after instantiation is all about change events.  You can 
speculate all you want, but I think you are better served by learning how to 
debug it.  But first, make sure you can convince yourself that the changes that 
are happening will dispatch change events.  Arrays and Objects and other 
primitives do not dispatch change events.  Once you've convinced yourself of 
that, I recommend setting breakpoints in the debugger.  Below are places to 
look.

The compiler must find your binding and output it in the _bindings array in the 
class that represents the top-tag in your MXML file.
So stop in the debugger and check there.

Then, there must be a Binding implementation bead (ContainerDataBinding or 
similar).  Check the _beads array (which is the strand and not the "beads" 
array which is where you put in custom beads.  Note the leading underscore) to 
make sure the Binding implementation got loaded.

Then, there must be a triggering event that tells the Binding implementation to 
evaluate the _bindings array and set up bindings.

Then, the Binding implementation will generate instances of Bindings 
(SimpleBinding, ConstantBinding, GenericBinding, etc).  These instances replace 
the PropertyWatchers in Flex and end up on strands (the _beads array ) in the 
main class or on the component it is watching.

Those Bindings will evaluate the expression and set up change event listeners 
if needed.

(Now you can see why explicitly putting in Bindings on strands is more 
efficient than the compiler doing it for you from {} expressions)

Once all of that is set up, something has to change and dispatch the right 
change event, which should cause the Binding code to run.

It isn't fun, but it should be straightforward to debug.  In fact, I am about 
to debug one in RemoteObject code.

FWIW, another approach is to actually use Flex to create a similar scenario and 
make sure your bindings work there.  Then when you debug the Royale version you 
might have a better idea of what changes you are looking for.

HTH,
-Alex

On 10/8/18, 1:18 PM, "Carlos Rovira"  wrote:

Just to be sure: someClass is Bindable at level class, and collectionOfVOs
is not marked as Bindable since the class already is. I suppose this works
like in Flex right ? if the Class is Bindable, all members are Bindable
right?

El lun., 8 oct. 2018 a las 22:15, Carlos Rovira ()
escribió:

> Hi,
>
> just uploaded a example that works, I mean, it seems the component is ok,
> but something is making it to fail. What scares me is that I'm doing 
mostly
> the same but across multiple files and pulling data from AMF. I'll
> investigate more to see what could be happening
>
> thanks for the suggestions.
>
> Carlos
>
>
>
> El lun., 8 oct. 2018 a las 22:08, Carlos Rovira 
()
> escribió:
>
>> Hi Piotr,
>>
>> Jewel ComboBox uses DataItemRendererFactoryForCollectionView that
>> implements IDataProviderItemRendererMapper
>> thanks
>>
>> El lun., 8 oct. 2018 a las 21:02, Piotr Zarzycki (<
>> piotrzarzyck...@gmail.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> Maybe your ComboBox have to use IDataProviderItemRendererMapper ? It's
>>> just
>>> a shot.
>>>
>>> Piotr
>>>
>>> On Mon, Oct 8, 2018, 8:24 PM Alex Harui 
>>> wrote:
>>>
>>> > How can collectionOfVOs be a Constant when it is being assigned data
>>> off a
>>> > network request?
>>> >
>>> > -Alex
>>> >
>>> > On 10/8/18, 11:19 AM, "Carlos Rovira" 
>>> wrote:
>>> >
>>> > When I say this is not working, I mean, I have the data right in
>>> > place, but
>>> > the data provider is empty.
>>> >
>>> > El lun., 8 oct. 2018 a las 20:17, Carlos Rovira (<
>>> > carlosrov...@apache.org>)
>>> > escribió:
>>> >
>>> > > Hi,
>>> > >
>>> > > I'm retrieving a collection of VOs and storing in a class
>>> > >
>>> > > something like this
>>> > >
>>> > > someClass.collectionOfVOs = new ArrayList (event.data as Array);
>>> > >
>>> > > in the screen code I have:
>>> > >
>>> > > 
>>> > >   
>>> > >>> > >
>>> sourcePropertyName="collectionOfVOs"
>>> > >
>>> > destinationPropertyName="dataProvider"/>
>>> > >  
>>> > > 
>>> > >
>>> > > or I could have directly
>>> > >
>>> > > 
>>> > >
>>> > > I have 

Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Carlos Rovira
Thanks Harbs, Olaf,

I think the problem is nested Binding. It seems that doesn't work, and
that's a problem since defeats the purpose to have a model bindable at
level class. I'm pretty sure people will do this all the time.

I get it working assigning a new ArrayList is I have in the same file.


El lun., 8 oct. 2018 a las 22:57, Olaf Krueger ()
escribió:

> Ahh sorry, I didn't see the latest answers before posting so my post is a
> duplicate to Harbs post ;-)
>
>
>
>
> --
> Sent from: http://apache-royale-development.20373.n8.nabble.com/
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Olaf Krueger
Ahh sorry, I didn't see the latest answers before posting so my post is a
duplicate to Harbs post ;-)




--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Olaf Krueger
> someClass.collectionOfVOs = new ArrayList (event.data as Array); 

It seems to me that you are always creating a new ArrayList instance when
handling the event.
Did you try to initialize collectionVOs with an empty ArrayList in order to
make sure to populate always the same ArrayList object instance with
event.data?

someClass.collectionOfVOs = new ArrayList();
...
someClass.collectionOfVOs.source = event.data as Array;

HTH,
Olaf




--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Harbs
I just ran your example and it changes the data.

I’m not following you here.

> On Oct 8, 2018, at 11:15 PM, Carlos Rovira  wrote:
> 
> Hi,
> 
> just uploaded a example that works, I mean, it seems the component is ok,
> but something is making it to fail. What scares me is that I'm doing mostly
> the same but across multiple files and pulling data from AMF. I'll
> investigate more to see what could be happening
> 
> thanks for the suggestions.
> 
> Carlos
> 
> 
> 
> El lun., 8 oct. 2018 a las 22:08, Carlos Rovira ()
> escribió:
> 
>> Hi Piotr,
>> 
>> Jewel ComboBox uses DataItemRendererFactoryForCollectionView that
>> implements IDataProviderItemRendererMapper
>> thanks
>> 
>> El lun., 8 oct. 2018 a las 21:02, Piotr Zarzycki (<
>> piotrzarzyck...@gmail.com>) escribió:
>> 
>>> Hi Carlos,
>>> 
>>> Maybe your ComboBox have to use IDataProviderItemRendererMapper ? It's
>>> just
>>> a shot.
>>> 
>>> Piotr
>>> 
>>> On Mon, Oct 8, 2018, 8:24 PM Alex Harui  wrote:
>>> 
 How can collectionOfVOs be a Constant when it is being assigned data
>>> off a
 network request?
 
 -Alex
 
 On 10/8/18, 11:19 AM, "Carlos Rovira"  wrote:
 
When I say this is not working, I mean, I have the data right in
 place, but
the data provider is empty.
 
El lun., 8 oct. 2018 a las 20:17, Carlos Rovira (<
 carlosrov...@apache.org>)
escribió:
 
> Hi,
> 
> I'm retrieving a collection of VOs and storing in a class
> 
> something like this
> 
> someClass.collectionOfVOs = new ArrayList (event.data as Array);
> 
> in the screen code I have:
> 
> 
>  
>    
>>> sourcePropertyName="collectionOfVOs"
> 
 destinationPropertyName="dataProvider"/>
> 
> 
> 
> or I could have directly
> 
> 
> 
> I have setup
> 
> 
> 
> But this is not working, I suppose this is due to a complete
 reassignment
> of the dataProvider.
> 
> I think this worked in Flex, if I can recall right.
> 
> Can someone post some solution for this or let me know if see some
> problems in the way I'm creating this?
> Maybe I'm missing something?
> 
> thanks
> 
> 
> --
> Carlos Rovira
> 
 
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
> 
> 
 
--
Carlos Rovira
 
 
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
 
 
 
>>> 
>> 
>> 
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>> 
>> 
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira



Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Carlos Rovira
Just to be sure: someClass is Bindable at level class, and collectionOfVOs
is not marked as Bindable since the class already is. I suppose this works
like in Flex right ? if the Class is Bindable, all members are Bindable
right?

El lun., 8 oct. 2018 a las 22:15, Carlos Rovira ()
escribió:

> Hi,
>
> just uploaded a example that works, I mean, it seems the component is ok,
> but something is making it to fail. What scares me is that I'm doing mostly
> the same but across multiple files and pulling data from AMF. I'll
> investigate more to see what could be happening
>
> thanks for the suggestions.
>
> Carlos
>
>
>
> El lun., 8 oct. 2018 a las 22:08, Carlos Rovira ()
> escribió:
>
>> Hi Piotr,
>>
>> Jewel ComboBox uses DataItemRendererFactoryForCollectionView that
>> implements IDataProviderItemRendererMapper
>> thanks
>>
>> El lun., 8 oct. 2018 a las 21:02, Piotr Zarzycki (<
>> piotrzarzyck...@gmail.com>) escribió:
>>
>>> Hi Carlos,
>>>
>>> Maybe your ComboBox have to use IDataProviderItemRendererMapper ? It's
>>> just
>>> a shot.
>>>
>>> Piotr
>>>
>>> On Mon, Oct 8, 2018, 8:24 PM Alex Harui 
>>> wrote:
>>>
>>> > How can collectionOfVOs be a Constant when it is being assigned data
>>> off a
>>> > network request?
>>> >
>>> > -Alex
>>> >
>>> > On 10/8/18, 11:19 AM, "Carlos Rovira" 
>>> wrote:
>>> >
>>> > When I say this is not working, I mean, I have the data right in
>>> > place, but
>>> > the data provider is empty.
>>> >
>>> > El lun., 8 oct. 2018 a las 20:17, Carlos Rovira (<
>>> > carlosrov...@apache.org>)
>>> > escribió:
>>> >
>>> > > Hi,
>>> > >
>>> > > I'm retrieving a collection of VOs and storing in a class
>>> > >
>>> > > something like this
>>> > >
>>> > > someClass.collectionOfVOs = new ArrayList (event.data as Array);
>>> > >
>>> > > in the screen code I have:
>>> > >
>>> > > 
>>> > >   
>>> > >>> > >
>>> sourcePropertyName="collectionOfVOs"
>>> > >
>>> > destinationPropertyName="dataProvider"/>
>>> > >  
>>> > > 
>>> > >
>>> > > or I could have directly
>>> > >
>>> > > 
>>> > >
>>> > > I have setup
>>> > >
>>> > > 
>>> > >
>>> > > But this is not working, I suppose this is due to a complete
>>> > reassignment
>>> > > of the dataProvider.
>>> > >
>>> > > I think this worked in Flex, if I can recall right.
>>> > >
>>> > > Can someone post some solution for this or let me know if see
>>> some
>>> > > problems in the way I'm creating this?
>>> > > Maybe I'm missing something?
>>> > >
>>> > > thanks
>>> > >
>>> > >
>>> > > --
>>> > > Carlos Rovira
>>> > >
>>> >
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
>>> > >
>>> > >
>>> >
>>> > --
>>> > Carlos Rovira
>>> >
>>> >
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
>>> >
>>> >
>>> >
>>>
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Carlos Rovira
Hi,

just uploaded a example that works, I mean, it seems the component is ok,
but something is making it to fail. What scares me is that I'm doing mostly
the same but across multiple files and pulling data from AMF. I'll
investigate more to see what could be happening

thanks for the suggestions.

Carlos



El lun., 8 oct. 2018 a las 22:08, Carlos Rovira ()
escribió:

> Hi Piotr,
>
> Jewel ComboBox uses DataItemRendererFactoryForCollectionView that
> implements IDataProviderItemRendererMapper
> thanks
>
> El lun., 8 oct. 2018 a las 21:02, Piotr Zarzycki (<
> piotrzarzyck...@gmail.com>) escribió:
>
>> Hi Carlos,
>>
>> Maybe your ComboBox have to use IDataProviderItemRendererMapper ? It's
>> just
>> a shot.
>>
>> Piotr
>>
>> On Mon, Oct 8, 2018, 8:24 PM Alex Harui  wrote:
>>
>> > How can collectionOfVOs be a Constant when it is being assigned data
>> off a
>> > network request?
>> >
>> > -Alex
>> >
>> > On 10/8/18, 11:19 AM, "Carlos Rovira"  wrote:
>> >
>> > When I say this is not working, I mean, I have the data right in
>> > place, but
>> > the data provider is empty.
>> >
>> > El lun., 8 oct. 2018 a las 20:17, Carlos Rovira (<
>> > carlosrov...@apache.org>)
>> > escribió:
>> >
>> > > Hi,
>> > >
>> > > I'm retrieving a collection of VOs and storing in a class
>> > >
>> > > something like this
>> > >
>> > > someClass.collectionOfVOs = new ArrayList (event.data as Array);
>> > >
>> > > in the screen code I have:
>> > >
>> > > 
>> > >   
>> > >> > >
>> sourcePropertyName="collectionOfVOs"
>> > >
>> > destinationPropertyName="dataProvider"/>
>> > >  
>> > > 
>> > >
>> > > or I could have directly
>> > >
>> > > 
>> > >
>> > > I have setup
>> > >
>> > > 
>> > >
>> > > But this is not working, I suppose this is due to a complete
>> > reassignment
>> > > of the dataProvider.
>> > >
>> > > I think this worked in Flex, if I can recall right.
>> > >
>> > > Can someone post some solution for this or let me know if see some
>> > > problems in the way I'm creating this?
>> > > Maybe I'm missing something?
>> > >
>> > > thanks
>> > >
>> > >
>> > > --
>> > > Carlos Rovira
>> > >
>> >
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
>> > >
>> > >
>> >
>> > --
>> > Carlos Rovira
>> >
>> >
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
>> >
>> >
>> >
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Carlos Rovira
Hi Piotr,

Jewel ComboBox uses DataItemRendererFactoryForCollectionView that
implements IDataProviderItemRendererMapper
thanks

El lun., 8 oct. 2018 a las 21:02, Piotr Zarzycki ()
escribió:

> Hi Carlos,
>
> Maybe your ComboBox have to use IDataProviderItemRendererMapper ? It's just
> a shot.
>
> Piotr
>
> On Mon, Oct 8, 2018, 8:24 PM Alex Harui  wrote:
>
> > How can collectionOfVOs be a Constant when it is being assigned data off
> a
> > network request?
> >
> > -Alex
> >
> > On 10/8/18, 11:19 AM, "Carlos Rovira"  wrote:
> >
> > When I say this is not working, I mean, I have the data right in
> > place, but
> > the data provider is empty.
> >
> > El lun., 8 oct. 2018 a las 20:17, Carlos Rovira (<
> > carlosrov...@apache.org>)
> > escribió:
> >
> > > Hi,
> > >
> > > I'm retrieving a collection of VOs and storing in a class
> > >
> > > something like this
> > >
> > > someClass.collectionOfVOs = new ArrayList (event.data as Array);
> > >
> > > in the screen code I have:
> > >
> > > 
> > >   
> > > > >sourcePropertyName="collectionOfVOs"
> > >
> > destinationPropertyName="dataProvider"/>
> > >  
> > > 
> > >
> > > or I could have directly
> > >
> > > 
> > >
> > > I have setup
> > >
> > > 
> > >
> > > But this is not working, I suppose this is due to a complete
> > reassignment
> > > of the dataProvider.
> > >
> > > I think this worked in Flex, if I can recall right.
> > >
> > > Can someone post some solution for this or let me know if see some
> > > problems in the way I'm creating this?
> > > Maybe I'm missing something?
> > >
> > > thanks
> > >
> > >
> > > --
> > > Carlos Rovira
> > >
> >
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
> > >
> > >
> >
> > --
> > Carlos Rovira
> >
> >
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
> >
> >
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Harbs
You might need a EasyDataProviderChangeNotifier bead on your ComboBox.

HTH,
Harbs

> On Oct 8, 2018, at 9:17 PM, Carlos Rovira  wrote:
> 
> Hi,
> 
> I'm retrieving a collection of VOs and storing in a class
> 
> something like this
> 
> someClass.collectionOfVOs = new ArrayList (event.data as Array);
> 
> in the screen code I have:
> 
> 
>  
>  sourcePropertyName="collectionOfVOs"
>   destinationPropertyName="dataProvider"/>
> 
> 
> 
> or I could have directly
> 
> 
> 
> I have setup
> 
> 
> 
> But this is not working, I suppose this is due to a complete reassignment
> of the dataProvider.
> 
> I think this worked in Flex, if I can recall right.
> 
> Can someone post some solution for this or let me know if see some problems
> in the way I'm creating this?
> Maybe I'm missing something?
> 
> thanks
> 
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira



Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Piotr Zarzycki
Hi Carlos,

Maybe your ComboBox have to use IDataProviderItemRendererMapper ? It's just
a shot.

Piotr

On Mon, Oct 8, 2018, 8:24 PM Alex Harui  wrote:

> How can collectionOfVOs be a Constant when it is being assigned data off a
> network request?
>
> -Alex
>
> On 10/8/18, 11:19 AM, "Carlos Rovira"  wrote:
>
> When I say this is not working, I mean, I have the data right in
> place, but
> the data provider is empty.
>
> El lun., 8 oct. 2018 a las 20:17, Carlos Rovira (<
> carlosrov...@apache.org>)
> escribió:
>
> > Hi,
> >
> > I'm retrieving a collection of VOs and storing in a class
> >
> > something like this
> >
> > someClass.collectionOfVOs = new ArrayList (event.data as Array);
> >
> > in the screen code I have:
> >
> > 
> >   
> > >sourcePropertyName="collectionOfVOs"
> >
> destinationPropertyName="dataProvider"/>
> >  
> > 
> >
> > or I could have directly
> >
> > 
> >
> > I have setup
> >
> > 
> >
> > But this is not working, I suppose this is due to a complete
> reassignment
> > of the dataProvider.
> >
> > I think this worked in Flex, if I can recall right.
> >
> > Can someone post some solution for this or let me know if see some
> > problems in the way I'm creating this?
> > Maybe I'm missing something?
> >
> > thanks
> >
> >
> > --
> > Carlos Rovira
> >
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
> >
> >
>
> --
> Carlos Rovira
>
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
>
>
>


Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Alex Harui
How can collectionOfVOs be a Constant when it is being assigned data off a 
network request?

-Alex

On 10/8/18, 11:19 AM, "Carlos Rovira"  wrote:

When I say this is not working, I mean, I have the data right in place, but
the data provider is empty.

El lun., 8 oct. 2018 a las 20:17, Carlos Rovira ()
escribió:

> Hi,
>
> I'm retrieving a collection of VOs and storing in a class
>
> something like this
>
> someClass.collectionOfVOs = new ArrayList (event.data as Array);
>
> in the screen code I have:
>
> 
>   
>sourcePropertyName="collectionOfVOs"
>destinationPropertyName="dataProvider"/>
>  
> 
>
> or I could have directly
>
> 
>
> I have setup
>
> 
>
> But this is not working, I suppose this is due to a complete reassignment
> of the dataProvider.
>
> I think this worked in Flex, if I can recall right.
>
> Can someone post some solution for this or let me know if see some
> problems in the way I'm creating this?
> Maybe I'm missing something?
>
> thanks
>
>
> --
> Carlos Rovira
> 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0
>
>

-- 
Carlos Rovira

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C6ffbfccdbfea48e49c3808d62d4a8a0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636746195526162661sdata=yZLc63abOJC%2B0q7SFSWhzOV1iiO5o47huqJQOtnDpaY%3Dreserved=0




Re: Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Carlos Rovira
When I say this is not working, I mean, I have the data right in place, but
the data provider is empty.

El lun., 8 oct. 2018 a las 20:17, Carlos Rovira ()
escribió:

> Hi,
>
> I'm retrieving a collection of VOs and storing in a class
>
> something like this
>
> someClass.collectionOfVOs = new ArrayList (event.data as Array);
>
> in the screen code I have:
>
> 
>   
>sourcePropertyName="collectionOfVOs"
>destinationPropertyName="dataProvider"/>
>  
> 
>
> or I could have directly
>
> 
>
> I have setup
>
> 
>
> But this is not working, I suppose this is due to a complete reassignment
> of the dataProvider.
>
> I think this worked in Flex, if I can recall right.
>
> Can someone post some solution for this or let me know if see some
> problems in the way I'm creating this?
> Maybe I'm missing something?
>
> thanks
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Retrieving a collection of data and reassign the collection to show in a component with Binding

2018-10-08 Thread Carlos Rovira
Hi,

I'm retrieving a collection of VOs and storing in a class

something like this

someClass.collectionOfVOs = new ArrayList (event.data as Array);

in the screen code I have:


  
   
 


or I could have directly



I have setup



But this is not working, I suppose this is due to a complete reassignment
of the dataProvider.

I think this worked in Flex, if I can recall right.

Can someone post some solution for this or let me know if see some problems
in the way I'm creating this?
Maybe I'm missing something?

thanks


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Proxy method calls with RemoteObject

2018-10-08 Thread Carlos Rovira
Ok Alex, thanks, didn't know that you have this task to make it work RO. I
though you only try to compile it.
That's good to know. I'm trying right now to make a real world app and
since I don't have a micro structural IOC framework like Swiz, that was
that I use in Flex, I'm trying to structure and organize screens,
controllers, delegates, and so on, and I'm trying to put things as easy as
possible so I can refactor more later to something more suited for this
task, since I don't have time now to build a framework for this due to
reduced time lines.

If you get this RO proxy way to call backend methods and AsyncToken, that's
what I need to connect with MX RemoteObject in the same way we use to do.

I'll be waiting for your. progress there

thanks

Carlos






El lun., 8 oct. 2018 a las 17:28, Alex Harui ()
escribió:

> I believe I already said I am working on RemoteObject.
>
> The Flex compiler generates custom code for mx:RemoteObject.  The Royale
> Compiler currently does not.  I am working on it.
>
> Thanks,
> -Alex
>
> On 10/8/18, 3:13 AM, "Carlos Rovira"  wrote:
>
> Hi,
>
> I was experimenting trying to get RemoteObject to proxy method calls.
>
> so instead of doing
>
> service.send("echo", [name_txt.text]);
>
> be able to do:
>
> service.echo(name_txt.text);
>
> I tried with Proxy class
>
> (org.apache.royale.utils.Proxy)
>
> and implementing IEventDispatcher, but compiler throws error:
>
> Call to a possibly undefined method echo through a reference with
> static
> type RemoteObject.
>
> It's possible to do something like this? what I'm missing?
>
> This seems a little enhancement, but it would be cool if we get it in
> order
> to be more near of the normal syntax we all have in our code bases.
>
> thanks
>
> --
> Carlos Rovira
>
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7Cd6e1679c9f4f46862fdf08d62d06c1da%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636745904387654783sdata=ZXdwxNAonPKWTeTzvkXW%2Ft3vI1lkIWau0Xla672rVA8%3Dreserved=0
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Migrating Enterprise Flex Application

2018-10-08 Thread Alex Harui
If you create a simple test case, I will see what the Compiler is thinking.

Thanks,
-Alex

On 10/8/18, 1:23 AM, "chembali"  wrote:

I always get the compile error, but many times it goes ahead and creates the
js distribution and the component that I am trying to use works fine. But
many times it does not work as expected even though the js distribution gets
built successfully.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C03dbe0d284bc4923af2b08d62cf74ab9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636745837956777867sdata=szxLSYQBwGguj4YI1RjcK4LZagYxzDqGlWL%2F04rN42s%3Dreserved=0




Re: Proxy method calls with RemoteObject

2018-10-08 Thread Alex Harui
I believe I already said I am working on RemoteObject.

The Flex compiler generates custom code for mx:RemoteObject.  The Royale 
Compiler currently does not.  I am working on it.

Thanks,
-Alex

On 10/8/18, 3:13 AM, "Carlos Rovira"  wrote:

Hi,

I was experimenting trying to get RemoteObject to proxy method calls.

so instead of doing

service.send("echo", [name_txt.text]);

be able to do:

service.echo(name_txt.text);

I tried with Proxy class

(org.apache.royale.utils.Proxy)

and implementing IEventDispatcher, but compiler throws error:

Call to a possibly undefined method echo through a reference with static
type RemoteObject.

It's possible to do something like this? what I'm missing?

This seems a little enhancement, but it would be cool if we get it in order
to be more near of the normal syntax we all have in our code bases.

thanks

-- 
Carlos Rovira

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7Cd6e1679c9f4f46862fdf08d62d06c1da%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636745904387654783sdata=ZXdwxNAonPKWTeTzvkXW%2Ft3vI1lkIWau0Xla672rVA8%3Dreserved=0




Jenkins build is back to normal : royale-asjs_MXTests #29

2018-10-08 Thread apacheroyaleci
See 




Proxy method calls with RemoteObject

2018-10-08 Thread Carlos Rovira
Hi,

I was experimenting trying to get RemoteObject to proxy method calls.

so instead of doing

service.send("echo", [name_txt.text]);

be able to do:

service.echo(name_txt.text);

I tried with Proxy class

(org.apache.royale.utils.Proxy)

and implementing IEventDispatcher, but compiler throws error:

Call to a possibly undefined method echo through a reference with static
type RemoteObject.

It's possible to do something like this? what I'm missing?

This seems a little enhancement, but it would be cool if we get it in order
to be more near of the normal syntax we all have in our code bases.

thanks

-- 
Carlos Rovira
http://about.me/carlosrovira


Build failed in Jenkins: royale-asjs_MXTests #28

2018-10-08 Thread apacheroyaleci
See 


Changes:

[noreply] Update ComboBase.as

--
[...truncated 2.02 MB...]
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/IMenuBarModel.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/beads/models/MenuBarModel.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/beads/NumericStepperView.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/spark/layouts/supportClasses/LayoutElementHelper.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/TestResult.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/IFactory.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/beads/layouts/BasicLayout.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/IDataProviderItemRendererMapper.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/List.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/Strand.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/events/ValueEvent.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/utils/IXMLNotifiable.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/collections/XMLListAdapter.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/events/ItemClickedEvent.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/utils/EffectTimer.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/supportClasses/DayNameItemRenderer.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/states/State.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/states/State.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/core/ContainerLayout.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/beads/models/MenuModel.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/CallLaterBead.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/beads/ToolTipBead.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/containers/utilityClasses/FlexChildInfo.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/controls/DateChooser.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/resources/LocaleSorter.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/beads/DisableBead.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/core/IToggleButtonModel.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/binding/ContainerDataBinding.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/styles/StyleManager.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/graphics/IStroke.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/containers/beads/BoxLayout.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/TextButton.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/org/apache/royale/html/supportClasses/DateHeaderButton.js
[mxmlc] 
c:/jenkins/workspace/royale-asjs_MXTests/mustella/tests/mxtests/basicTests/bin/js-debug/mx/containers/HBox.js
[mxmlc] 

Jenkins build is back to normal : royale-asjs #1451

2018-10-08 Thread apacheroyaleci
See 




Re: Migrating Enterprise Flex Application

2018-10-08 Thread chembali
I always get the compile error, but many times it goes ahead and creates the
js distribution and the component that I am trying to use works fine. But
many times it does not work as expected even though the js distribution gets
built successfully.



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Reflection TypeDefinition API gives unexpected results

2018-10-08 Thread Carlos Rovira
Hi Alex,

yesterday I get metadata working but only if I declare at level class. But
I'm seeing more strange behavior that I can hardly describe since I don't
see a pattern. I'll try to add the example as I have some time to
manualtests.

thanks



El lun., 8 oct. 2018 a las 5:00, Alex Harui ()
escribió:

> I'm pretty sure I saw Metadata work in manualtests/ReflectionTest at one
> point in time.  It could be broken now, or maybe you can follow that
> example in your code.
>
> HTH,
> -Alex
>
> On 10/7/18, 9:12 AM, "Carlos Rovira"  wrote:
>
> Thanks Greg, Alex,
>
> I now understand that Bindable in a property introduces
> EventDispatcher,
> now that has more sense. What confuse me is that Bindable is on
> property
> not in class, but is normal that class has event dispatcher.
>
> For me now the problem is just about the const and the metadata. For
> the
> latest, where I should retrieve the [injection] and [Bindable]
> metadata?
>
> I'm going to check the test and try the class in my example. I'll
> report if
> something goes wrong so you can take a look at it.
>
> El dom., 7 oct. 2018 a las 0:26, Greg Dove ()
> escribió:
>
> > Hi Carlos,
> >
> > There could still be bugs, but there are some unit tests. You might
> find
> > some useful reference in the unit tests :
> >
> >
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fblob%2Fdevelop%2Fmanualtests%2FUnitTests%2Fsrc%2Fmain%2Froyale%2FflexUnitTests%2Freflection%2FReflectionTesterTest.asdata=02%7C01%7Caharui%40adobe.com%7Cee518d80d49d4283762a08d62c6fb7b7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636745255666448646sdata=oBsEe5MN2ley3qJQ%2BRtXnyqF%2B3fOokzxgPZdnEqJhnw%3Dreserved=0
> >
> > And some of the test classes used:
> >
> >
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Ftree%2Fdevelop%2Fmanualtests%2FUnitTests%2Fsrc%2Fmain%2Froyale%2FflexUnitTests%2Freflection%2Fsupportdata=02%7C01%7Caharui%40adobe.com%7Cee518d80d49d4283762a08d62c6fb7b7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636745255666458656sdata=rcnxH4LtYdEx1MsJNCTeMiSaU7D0XNRJDGZ1bdWyKCU%3Dreserved=0
> >
> > If there is a case not working, then the coverage would need to
> include
> > that. I can take a look at this in the coming week if you add a
> failing
> > case.
> >
> > I can't recall offhand about whether consts (static or instance) were
> > included as part of the reflection data. But I can see at least one
> Test
> > Class that includes both static and instance consts, so the
> reflection data
> > should either intentionally include or exclude them - if the tests
> fail
> > then something may have changed.
> >
> > In terms of EventDispatcher as base class, I did not check, but
> maybe this
> > class is bindable? In which case it will have EventDispatcher
> injected as a
> > base class by the compiler. Because the reflection data is collected
> from
> > the runtime inheritance chain in javascript, it should be related to
> > whatever the compiler provided as output code. This would apply in
> flash as
> > well as javascript, although flash would have more data below the
> Royale
> > EventDispatcher as the native classes are reflectable (not the case
> with
> > the google event base classes on the js side).
> >
> > Hope there is something helpful there for now.
> >
> > -Greg
> >
> >
> > On Sun, Oct 7, 2018 at 7:33 AM Carlos Rovira <
> carlosrov...@apache.org>
> > wrote:
> >
> > > Hi,
> > >
> > > I'm trying to do some Reflection work and finding some unexpected
> > results.
> > > Given this example class:
> > >
> > > package controllers
> > > {
> > > import interfaces.IController;
> > >
> > > import models.User;
> > >
> > > import services.UserService;
> > >
> > > public class UserController implements IController
> > > {
> > > public static const USER_CONTROLLER_EVENT:String =
> "userControllerEvent";
> > >
> > > /**
> > >  * Constructor
> > >  */
> > > public function UserController()
> > > {
> > > trace("UserController constructor");
> > > }
> > >
> > > private var _userService:UserService;
> > >
> > > [Inject]
> > > public function get userService():UserService
> > > {
> > > return _userService;
> > > }
> > > public function set userService(value:UserService):void
> > > {
> > > trace("setting userService: ", value);
> > > _userService = value;
> > > }
> > > [Bindable]
> > > public var currentUser:User;
> > > }
> > > }
> > >
> > > I want to retrieve, super class, interface, metadata, const and
> vars and
> > > methods, so I think I should use this:
> > >
> > > var 

Build failed in Jenkins: royale-asjs #1450

2018-10-08 Thread apacheroyaleci
See 


--
[...truncated 988.03 KB...]
 [java] module.exports = http;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [https]:23: WARNING - accessing name require in externs 
has no effect. Perhaps you forgot to add a var keyword?
 [java] var http = require('http');
 [java]^^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [https]:24: WARNING - accessing name require in externs 
has no effect. Perhaps you forgot to add a var keyword?
 [java] var tls = require('tls');
 [java]   ^^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [https]:84: WARNING - name module is not defined in the 
externs.
 [java] module.exports = https;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [net]:23: WARNING - accessing name require in externs has 
no effect. Perhaps you forgot to add a var keyword?
 [java] var events = require('events');
 [java]  ^^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [net]:219: WARNING - name module is not defined in the 
externs.
 [java] module.exports = net;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [os]:112: WARNING - name module is not defined in the 
externs.
 [java] module.exports = os;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [path]:97: WARNING - name module is not defined in the 
externs.
 [java] module.exports = path;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [punycode]:74: WARNING - name module is not defined in the 
externs.
 [java] module.exports = punycode;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [querystring]:66: WARNING - name module is not defined in 
the externs.
 [java] module.exports = querystring;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [readline]:22: WARNING - accessing name require in externs 
has no effect. Perhaps you forgot to add a var keyword?
 [java] var events = require('events');
 [java]  ^^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [readline]:23: WARNING - accessing name require in externs 
has no effect. Perhaps you forgot to add a var keyword?
 [java] var stream = require('stream');
 [java]  ^^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [readline]:84: WARNING - name module is not defined in the 
externs.
 [java] module.exports = readline;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [repl]:23: WARNING - accessing name require in externs has 
no effect. Perhaps you forgot to add a var keyword?
 [java] var events = require('events');
 [java]  ^^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [repl]:24: WARNING - accessing name require in externs has 
no effect. Perhaps you forgot to add a var keyword?
 [java] var stream = require('stream');
 [java]  ^^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [repl]:48: WARNING - name module is not defined in the 
externs.
 [java] module.exports = repl;
 [java] ^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [stream]:23: WARNING - accessing name require in externs 
has no effect. Perhaps you forgot to add a var keyword?
 [java] var events = require('events');
 [java]  ^^^
 [java] 
 [java] Oct 08, 2018 6:21:26 AM 
com.google.javascript.jscomp.LoggerErrorManager println
 [java] WARNING: [stream]:254: WARNING - name module is not defined in the 
externs.
 [java] module.exports = stream;
 [java] ^^