Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Carlos Rovira
Hi, Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise. You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like

Re: Data Binding problem

2020-02-05 Thread Carlos Rovira
Hi, As Yishay pointed before, the document root tag is the important one here. For Application is ApplicationDataBinding. You can move the view to a new file and make it root of that file, in that case you use ViewDataBinding HTH Carlos El mié., 5 feb. 2020 a las 19:29, De Carli Gustavo (<

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread De Carli Gustavo
ok, I'll look to reimplement with crux Thank. El mié., 5 feb. 2020 a las 15:05, Carlos Rovira () escribió: > Hi, > > Cairngorm depends on Flash APIs, so make a Royale migration could be not > easy, or requires some expertise. > You can use Crux instead that has support for Cairngorm style

Re: Data Binding problem

2020-02-05 Thread De Carli Gustavo
Carlos, sorry the ViewDataBinding , Is it well applied? The grid and the input text do not show values. Thank http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel" xmlns:js="library://ns.apache.org/royale/basic" width="100%" height="100%"> El mié.,

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread De Carli Gustavo
I download https://sourceforge.net/adobe/cairngorm/code/, and change. import flash.utils.describeType; --> import org.apache.royale.reflection.describeType; import flash.utils.Dictionary; --> import org.apache.royale.utils.ObjectMap; And this method /** * Return all the accessors on this

Re: Data Binding problem

2020-02-05 Thread De Carli Gustavo
Excelent, Thanks Carlos http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel" xmlns:js="library://ns.apache.org/royale/basic"> > [image: image.png] > >

Re: Data Binding problem

2020-02-05 Thread Carlos Rovira
Hi, as Yishay said, each component/container type has its own binding bead: - Application - ApplicationDataBinding - View - ViewDataBinding - Container - ContainerDataBinding El mié., 5 feb. 2020 a las 16:52, Yishay Weiss () escribió: > As I understand it the bead you use depends on

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Greg Dove
Hi Takeshita, Yes I think a few people have asked for Cairngorm or expressed interest in it. Given the choice, I personally think Crux will be a more modern/better option, but like I said, more people are asking for Cairngorm now, so probably it makes sense to port that too. I'm also pleased to

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread De Carli Gustavo
Alex : In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Greg Dove
There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to. The services are then identified and categorised by

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Takeshita Shoichiro
Greg, Thanks for your work. We already have your Crux framework replacing Cairngorm, it is great if Cairngorm works with Royale. It will save a plenty of time of emulation work. 2020年2月6日(木) 12:33 Greg Dove : > > There does not appear to be a default property, like an array to put the >

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Carlos Rovira
Hi Alex, I don't have the Cairngorm code at hand, we left it long time ago (maybe around 2008) in favor of Swiz that was the new generation of frameworks at that time that brings IOC, DI... But I remember there was many flash APIs involved. Maybe most of them are now emulated in Royale and could

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Takeshita Shoichiro
Hi, F.Y.I. The following is a list of imports in the cairngorm source code. import com.adobe.cairngorm.AllCairngormTests; import com.adobe.cairngorm.business.AbstractServices; import com.adobe.cairngorm.business.IServiceLocator;; import com.adobe.cairngorm.business.ServiceLocator; import

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Alex Harui
I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property. Did your MXML work in Flex? What ServiceLocator property would be assigned the mx:RemoteObject? -Alex From: De Carli Gustavo Reply-To:

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Takeshita Shoichiro
Greg, thanks for your clarification. Anyway, it is a great work. Carlos, thanks all the times.^_^ 2020年2月6日(木) 13:22 Greg Dove : > > Hi Takeshita, > > Yes I think a few people have asked for Cairngorm or expressed interest in > it. Given the choice, I personally think Crux will be a more

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread Alex Harui
What version of the compiler are you using? What does the ServiceLocator source look like? It might be an issue with defaultProperties for non-DOM objects. -Alex From: De Carli Gustavo Reply-To: "users@royale.apache.org" Date: Wednesday, February 5, 2020 at 7:35 AM To:

Re: Cairngorm problem add remote object MXML.

2020-02-05 Thread De Carli Gustavo
Alex 0.9.7-SNAPSHOT Thank El mié., 5 feb. 2020 a las 14:02, Alex Harui () escribió: > What version of the compiler are you using? > > > > What does the ServiceLocator source look like? It might be an issue with > defaultProperties for non-DOM objects. > > > > -Alex > > > > *From: *De Carli

RE: Data Binding problem

2020-02-05 Thread Yishay Weiss
Have you tried adding ApplicationDataBinding? See example [1] [1] https://royale.apache.org/binding-the-text-property-of-a-jewel-textinput-to-update-a-text-label/ From: De Carli Gustavo Sent: Wednesday, February 5, 2020 12:15 AM To:

Re: Data Binding problem

2020-02-05 Thread De Carli Gustavo
Hello Yishay, thank, with ApplicationDataBinding work ! I understand that I can shorten the level of "binding", so I am trying to use "ViewDataBinding" without success Is it recommended to use "ApplicationDataBinding"? or is less performant Thank very much. Gustavo. El mié., 5 feb. 2020 a las

RE: Data Binding problem

2020-02-05 Thread Yishay Weiss
As I understand it the bead you use depends on your document type. If your root tag were a View you would use ViewDataBinding. I’m not aware of performance differences but I wasn’t involved in writing Binding so others may want to comment. From: De Carli

Cairngorm problem add remote object MXML.

2020-02-05 Thread De Carli Gustavo
I am trying to transcribe gairngorm, at runtime it gives me an error in the construction of the ServiceLocator, I understand that it is an error of the MXMLDataInterpreter. Anyone have any idea of the problem. Thank Gustavo. *1. CODE * http://ns.adobe.com/mxml/2009;