Re: Maven problem compilation.
Carlos, I already created a client server project with crux and remoteobject, blazeds and java. Everything is well to adjust something of the crux mvc model, I will read where it recommends saving the results of the requests. In caringorm there was a ModelLocator. Another query, jewel datagrid do not have to change the width of the columns, by the user manually? Share the project. https://github.com/gustavodecarli/apache-royale-crux.git thanks. El mar., 18 feb. 2020 a las 8:35, De Carli Gustavo (< gustavodeca...@gmail.com>) escribió: > > Thanks Carlos, this week we will analyze the cost of migration to crux. > regards > > El lun., 17 feb. 2020 a las 21:12, Carlos Rovira () > escribió: > >> Hi Carli, >> >> but I though Cairngorm is not already emulated right? So that path is >> difficult to follow at this point. >> Just let you know that I added some Crux docs here [1] and we had now >> this TodoMVC crux example [2]. All that is working now and supported. >> >> HTH >> >> Carlos >> >> [1] https://apache.github.io/royale-docs/libraries/crux/quickstart >> [2] https://twitter.com/ApacheRoyale/status/1229476550866821120 >> >> El mar., 18 feb. 2020 a las 1:06, De Carli Gustavo (< >> gustavodeca...@gmail.com>) escribió: >> >>> Gracias Carlos, el problema esta cuando agrego la librería de cairngorm. >>> hice un ejemplo del modelo actual a migrar, aprovecho y lo voy a comentar >>> en mail correpondiente. >>> >>> Saludos. >>> >>> El jue., 13 feb. 2020 a las 11:51, Carlos Rovira (< >>> carlosrov...@apache.org>) escribió: >>> >>>> Hi Carli, >>>> >>>> Basic dependency seems not add to dependencies >>>> >>>> >>>> El jue., 13 feb. 2020 a las 14:44, De Carli Gustavo (< >>>> gustavodeca...@gmail.com>) escribió: >>>> >>>>> >>>>> >>>>> >>>>> >>>>> I am having an error, when I want to compile with maven, does this >>>>> work when compiling with "as3mxml.vscode" that I am forgetting? >>>>> in maven clean install command. >>>>> >>>>> 1. The compile command result. >>>>> >>>>> [INFO] Executing MXMLC in tool group Royale with args: >>>>> [-load-config=/Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/target/compile-app-config.xml, >>>>> -js-library-path=libs/cairngorm-js.swc, -js-default-initializers=true, >>>>> -source-map=true, +configname=flex, >>>>> -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-SNAPSHOT-js.swc:defaults.css, >>>>> -keep-as3-metadata+=DefaultProperty,Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient, >>>>> -keep-code-with-metadata=Inject, -js-dynamic-access-unknown-members, >>>>> -js-output=/Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/target/javascript, >>>>> -compiler.targets=JSRoyale, >>>>> /Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/src/main/royale/App.mxml] >>>>> /Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/src/main/royale/App.mxml(2): >>>>> col: 1 Error: This tag could not be resolved to an ActionScript class. It >>>>> will be ignored. >>>>> >>>>> 2. The line error. >>>>> http://ns.adobe.com/mxml/2009; >>>>> ^ >>>>> >>>>> 3. pom.mxl >>>>> >>>>> >>>>> >>>>> http://maven.apache.org/POM/4.0.0; >>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; >>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >>>>> http://maven.apache.org/xsd/maven-4.0.0.xsd;> >>>>> 4.0.0 >>>>> >>>>> com.deka.royale.examples >>>>> Cairngorm >>>>> 1.0-SNAPSHOT >>>>> swf >>>>> >>>>> >>>>> true >>>>> >>>>> ${basedir}/target/tomcat/webapps/ROOT/>>>> compiler.output-dir> >>>>> ${basedir}/target/tomcat/webapps/ROOT/>>>> compiler.output-dir-debug> >>>>> >>>>> >>>>> ${basedir}/target/javascript/bin/js-release>>>> compiler.output-dir-release> >>>>> >>>>> 0.9.7-SNAPSHOT >>>>> 1.1.0 >>>>> 0.9.7-SNAPSHOT >>>
Re: Maven problem compilation.
Thanks Carlos, this week we will analyze the cost of migration to crux. regards El lun., 17 feb. 2020 a las 21:12, Carlos Rovira () escribió: > Hi Carli, > > but I though Cairngorm is not already emulated right? So that path is > difficult to follow at this point. > Just let you know that I added some Crux docs here [1] and we had now this > TodoMVC crux example [2]. All that is working now and supported. > > HTH > > Carlos > > [1] https://apache.github.io/royale-docs/libraries/crux/quickstart > [2] https://twitter.com/ApacheRoyale/status/1229476550866821120 > > El mar., 18 feb. 2020 a las 1:06, De Carli Gustavo (< > gustavodeca...@gmail.com>) escribió: > >> Gracias Carlos, el problema esta cuando agrego la librería de cairngorm. >> hice un ejemplo del modelo actual a migrar, aprovecho y lo voy a comentar >> en mail correpondiente. >> >> Saludos. >> >> El jue., 13 feb. 2020 a las 11:51, Carlos Rovira (< >> carlosrov...@apache.org>) escribió: >> >>> Hi Carli, >>> >>> Basic dependency seems not add to dependencies >>> >>> >>> El jue., 13 feb. 2020 a las 14:44, De Carli Gustavo (< >>> gustavodeca...@gmail.com>) escribió: >>> >>>> >>>> >>>> >>>> >>>> I am having an error, when I want to compile with maven, does this work >>>> when compiling with "as3mxml.vscode" that I am forgetting? >>>> in maven clean install command. >>>> >>>> 1. The compile command result. >>>> >>>> [INFO] Executing MXMLC in tool group Royale with args: >>>> [-load-config=/Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/target/compile-app-config.xml, >>>> -js-library-path=libs/cairngorm-js.swc, -js-default-initializers=true, >>>> -source-map=true, +configname=flex, >>>> -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-SNAPSHOT-js.swc:defaults.css, >>>> -keep-as3-metadata+=DefaultProperty,Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient, >>>> -keep-code-with-metadata=Inject, -js-dynamic-access-unknown-members, >>>> -js-output=/Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/target/javascript, >>>> -compiler.targets=JSRoyale, >>>> /Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/src/main/royale/App.mxml] >>>> /Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/src/main/royale/App.mxml(2): >>>> col: 1 Error: This tag could not be resolved to an ActionScript class. It >>>> will be ignored. >>>> >>>> 2. The line error. >>>> http://ns.adobe.com/mxml/2009; >>>> ^ >>>> >>>> 3. pom.mxl >>>> >>>> >>>> >>>> http://maven.apache.org/POM/4.0.0; >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; >>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >>>> http://maven.apache.org/xsd/maven-4.0.0.xsd;> >>>> 4.0.0 >>>> >>>> com.deka.royale.examples >>>> Cairngorm >>>> 1.0-SNAPSHOT >>>> swf >>>> >>>> >>>> true >>>> >>>> ${basedir}/target/tomcat/webapps/ROOT/>>> compiler.output-dir> >>>> ${basedir}/target/tomcat/webapps/ROOT/>>> compiler.output-dir-debug> >>>> >>>> >>>> ${basedir}/target/javascript/bin/js-release>>> compiler.output-dir-release> >>>> >>>> 0.9.7-SNAPSHOT >>>> 1.1.0 >>>> 0.9.7-SNAPSHOT >>>> 0.9.7-SNAPSHOT >>>> >>>> >>>> JSRoyale >>>> true >>>> true >>>> >>>> >>>> >>>> src/main/royale >>>> >>>> >>>> org.apache.royale.compiler >>>> royale-maven-plugin >>>> 0.9.7-SNAPSHOT >>>> true >>>> >>>> App.mxml >>>> ${royale.targets} >>>> true >>>> >>>> -js-library-path=libs/cairngorm-js.swc; >>>> -js-default-initializers=true; >>>> -source-map=true; >>>> +configname=flex; >>>> >>>> -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-SNAPSHOT-js.swc:defaults.css; >>>> >>>> -keep-as3-metadata+=DefaultProperty,Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Tr
Re: Maven problem compilation.
Gracias Carlos, el problema esta cuando agrego la librería de cairngorm. hice un ejemplo del modelo actual a migrar, aprovecho y lo voy a comentar en mail correpondiente. Saludos. El jue., 13 feb. 2020 a las 11:51, Carlos Rovira () escribió: > Hi Carli, > > Basic dependency seems not add to dependencies > > > El jue., 13 feb. 2020 a las 14:44, De Carli Gustavo (< > gustavodeca...@gmail.com>) escribió: > >> >> >> >> >> I am having an error, when I want to compile with maven, does this work >> when compiling with "as3mxml.vscode" that I am forgetting? >> in maven clean install command. >> >> 1. The compile command result. >> >> [INFO] Executing MXMLC in tool group Royale with args: >> [-load-config=/Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/target/compile-app-config.xml, >> -js-library-path=libs/cairngorm-js.swc, -js-default-initializers=true, >> -source-map=true, +configname=flex, >> -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-SNAPSHOT-js.swc:defaults.css, >> -keep-as3-metadata+=DefaultProperty,Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient, >> -keep-code-with-metadata=Inject, -js-dynamic-access-unknown-members, >> -js-output=/Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/target/javascript, >> -compiler.targets=JSRoyale, >> /Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/src/main/royale/App.mxml] >> /Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/src/main/royale/App.mxml(2): >> col: 1 Error: This tag could not be resolved to an ActionScript class. It >> will be ignored. >> >> 2. The line error. >> http://ns.adobe.com/mxml/2009; >> ^ >> >> 3. pom.mxl >> >> >> >> http://maven.apache.org/POM/4.0.0; >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >> http://maven.apache.org/xsd/maven-4.0.0.xsd;> >> 4.0.0 >> >> com.deka.royale.examples >> Cairngorm >> 1.0-SNAPSHOT >> swf >> >> >> true >> >> ${basedir}/target/tomcat/webapps/ROOT/> compiler.output-dir> >> ${basedir}/target/tomcat/webapps/ROOT/> compiler.output-dir-debug> >> >> ${basedir}/target/javascript/bin/js-release >> >> >> 0.9.7-SNAPSHOT >> 1.1.0 >> 0.9.7-SNAPSHOT >> 0.9.7-SNAPSHOT >> >> >> JSRoyale >> true >> true >> >> >> >> src/main/royale >> >> >> org.apache.royale.compiler >> royale-maven-plugin >> 0.9.7-SNAPSHOT >> true >> >> App.mxml >> ${royale.targets} >> true >> >> -js-library-path=libs/cairngorm-js.swc; >> -js-default-initializers=true; >> -source-map=true; >> +configname=flex; >> >> -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-SNAPSHOT-js.swc:defaults.css; >> >> -keep-as3-metadata+=DefaultProperty,Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient; >> -keep-code-with-metadata=Inject; >> -js-dynamic-access-unknown-members; >> >> >> >> >> org.apache.royale.compiler >> compiler-jx >> 0.9.7-SNAPSHOT >> >> >> >> >> >> >> >> org.apache.maven.plugins >> maven-resources-plugin >> >> >> copy-resources-debug >> validate >> >> copy-resources >> >> >> ${compiler.output-dir-debug} >> >> >> src/main/resources >> true >> >> >> >> >> >> copy-resources-release >> validate >> >> copy-resources >> >> >> >> ${compiler.output-dir-release}/assets >> >> >> src/main/resources/assets >> true >> >> >> >> >> >> >> >> >> >> >> >> org.apache.royale.framework >> Core >> 0.9.7-SNAPSHOT >> swc >> js >> >> >> org.apache.royale.framework >> Language >> 0.9.7-SNAPSHOT >> swc >> js >> >> >> org.apache.royale.framework >> HTML >> 0.9.7-SNAPSHOT >> swc >> js >> >> >> org.apache.royale.framework >> Collections >> 0.9.7-SNAPSHOT >> swc >> js >> >> >> org.apache.royale.framework >> Binding >> 0.9.7-SNAPSHOT >> swc >> js >> >> >> org.apache.royale.framework >> Graphics >> 0.9.7-SNAPSHOT >> swc >> js >> >> >> org.apache.royale.framework >> MXRoyale >> 0.9.7-SNAPSHOT >> swc >> js >> >> >> org.apache.royale.framework >> SparkRoyale >> 0.9.7-SNAPSHOT >> swc >> js >> >> >> >> >> > > -- > Carlos Rovira > http://about.me/carlosrovira > >
Maven problem compilation.
I am having an error, when I want to compile with maven, does this work when compiling with "as3mxml.vscode" that I am forgetting? in maven clean install command. 1. The compile command result. [INFO] Executing MXMLC in tool group Royale with args: [-load-config=/Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/target/compile-app-config.xml, -js-library-path=libs/cairngorm-js.swc, -js-default-initializers=true, -source-map=true, +configname=flex, -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-SNAPSHOT-js.swc:defaults.css, -keep-as3-metadata+=DefaultProperty,Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient, -keep-code-with-metadata=Inject, -js-dynamic-access-unknown-members, -js-output=/Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/target/javascript, -compiler.targets=JSRoyale, /Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/src/main/royale/App.mxml] /Users/gustavo/Documents/Desarrollo/royale/examples/Cairngorm/src/main/royale/App.mxml(2): col: 1 Error: This tag could not be resolved to an ActionScript class. It will be ignored. 2. The line error. http://ns.adobe.com/mxml/2009; ^ 3. pom.mxl http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;> 4.0.0 com.deka.royale.examples Cairngorm 1.0-SNAPSHOT swf true ${basedir}/target/tomcat/webapps/ROOT/ ${basedir}/target/tomcat/webapps/ROOT/ ${basedir}/target/javascript/bin/js-release 0.9.7-SNAPSHOT 1.1.0 0.9.7-SNAPSHOT 0.9.7-SNAPSHOT JSRoyale true true src/main/royale org.apache.royale.compiler royale-maven-plugin 0.9.7-SNAPSHOT true App.mxml ${royale.targets} true -js-library-path=libs/cairngorm-js.swc; -js-default-initializers=true; -source-map=true; +configname=flex; -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-SNAPSHOT-js.swc:defaults.css; -keep-as3-metadata+=DefaultProperty,Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient; -keep-code-with-metadata=Inject; -js-dynamic-access-unknown-members; org.apache.royale.compiler compiler-jx 0.9.7-SNAPSHOT org.apache.maven.plugins maven-resources-plugin copy-resources-debug validate copy-resources ${compiler.output-dir-debug} src/main/resources true copy-resources-release validate copy-resources ${compiler.output-dir-release}/assets src/main/resources/assets true org.apache.royale.framework Core 0.9.7-SNAPSHOT swc js org.apache.royale.framework Language 0.9.7-SNAPSHOT swc js org.apache.royale.framework HTML 0.9.7-SNAPSHOT swc js org.apache.royale.framework Collections 0.9.7-SNAPSHOT swc js org.apache.royale.framework Binding 0.9.7-SNAPSHOT swc js org.apache.royale.framework Graphics 0.9.7-SNAPSHOT swc js org.apache.royale.framework MXRoyale 0.9.7-SNAPSHOT swc js org.apache.royale.framework SparkRoyale 0.9.7-SNAPSHOT swc js
Re: Cairngorm problem add remote object MXML.
Hi . *Alex* : 0.9.7-snapshot royale-compiler - you're right, this was correct, the error does not reproduce anymore (null0). *Greg*. I tried the library and it worked correctly, I would like to know the implementation of the ServiceLocator.as how it is done, I made my own and although it worked, I have problems when I add a jewel tag in the project, for example a Is it possible or correct to have tag mx and jewel in the same project? *thanks to you .* El vie., 7 feb. 2020 a las 14:14, Alex Harui () escribió: > Make sure your app is using the updated compiler. I assume you are using > Maven to compile the app? Check the pom.xml to make sure it is referencing > the 0.9.7-SNAPSHOT and not just 0.9.7 or some other version. One trick is > to add some System.out.println to the file that was changed and see if it > shows up in the output. > > > > Regarding the tests, in the pom.xml for some of the projects like > compiler-jx, the maven-surefire-plugin and maven-failsafe-plugin dictate > which tests/files are run. > > > > HTH, > > -Alex > > > > *From: *De Carli Gustavo > *Reply-To: *"users@royale.apache.org" > *Date: *Friday, February 7, 2020 at 3:15 AM > *To: *"users@royale.apache.org" > *Subject: *Re: Cairngorm problem add remote object MXML. > > > > > Hi, yesterday I tried with the change of Alex, from the royale-compiler > without success, the "null0" continues. I don't know if I missed a step. > > I rebuilt with the royale-compiler project "mvn clean install" and tried > again the compilation of my project. > > On the other hand I am seeing to create a Test in the project, but I see > that they are not running the tests of the package "royale-compiler \ > compiler-jx \ src \ test \ java \ org \ apache \ royale \ compiler \ > internal \ codegen \ mxml \ ...", do you know why? > > > > Thanks. > > Gustavo. > > > > El vie., 7 feb. 2020 a las 4:21, Greg Dove () > escribió: > > > I'll try to get an minimal example working over my weekend sometime to > test what I have. I made a quick start on that, just to get something that > compiles. Once I see that it seems to be working I will release to git repo > for the port. > > If you do want to try a different swc from what you already have, you > could try one now from builds here I think: > > > > https://www.dropbox.com/sh/xk8aui9ghy30mid/x0LUpfjXEQWC221zAjTza?dl=0 > <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fsh%2Fxk8aui9ghy30mid%2Fx0LUpfjXEQWC221zAjTza%3Fdl%3D0=02%7C01%7Caharui%40adobe.com%7C707a97326caa408ce15e08d7abbf0ebb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637166709390899554=6YfYnU896lHruaduCxUnrCkndhecXz7JELyQBoJd%2FFU%3D=0> > > > > (I will remove that link in some days once the port is more thoroughly > tested and available to all) > > > > I was able to inspect and verify that the js build had a ServicesLocator > (as defined in that swc) mxml subclass which was populating correctly with > the recent compiler changes from Alex, but I am not yet able to test more > thoroughly. The view support probably won't work yet because there are no > 'added' and 'removed' events, but we will figure something out. > > > > > > > > > > On Fri, Feb 7, 2020 at 6:23 PM Greg Dove wrote: > > > Alex, I tested this change today. There is more to it than that, it seems. > I will discuss details in dev list. > > > > > > On Fri, Feb 7, 2020 at 8:40 AM Alex Harui wrote: > > royale-compiler > > > > *From: *De Carli Gustavo > *Reply-To: *"users@royale.apache.org" > *Date: *Thursday, February 6, 2020 at 11:39 AM > *To: *"users@royale.apache.org" > *Subject: *Re: Cairngorm problem add remote object MXML. > > > > Sorry Alex, what repository is that of the push ? > > > > El jue., 6 feb. 2020 a las 16:13, Alex Harui () > escribió: > > I just pushed a change to the compiler. It should now have valid output > for ServiceLocator. > > > > The compiler change was interesting in that I changed an else clause that > was put in to handle instances specified as children of top tags but was > doing the wrong thing. All of the compiler tests passed, but never hit > that code so none of our tests actually used that code, even though the > commit log implied it was for one of the tests. Either I made the earlier > change to propagate the fix for plain properties to instances or there is > some other scenario for instances as children (without a default property) > that I am not thinking of. > > > > -Alex > > > > *From: *De Carli Gustavo
Re: Cairngorm problem add remote object MXML.
Hi, yesterday I tried with the change of Alex, from the royale-compiler without success, the "null0" continues. I don't know if I missed a step. I rebuilt with the royale-compiler project "mvn clean install" and tried again the compilation of my project. On the other hand I am seeing to create a Test in the project, but I see that they are not running the tests of the package "royale-compiler \ compiler-jx \ src \ test \ java \ org \ apache \ royale \ compiler \ internal \ codegen \ mxml \ ...", do you know why? Thanks. Gustavo. El vie., 7 feb. 2020 a las 4:21, Greg Dove () escribió: > > I'll try to get an minimal example working over my weekend sometime to > test what I have. I made a quick start on that, just to get something that > compiles. Once I see that it seems to be working I will release to git repo > for the port. > If you do want to try a different swc from what you already have, you > could try one now from builds here I think: > > https://www.dropbox.com/sh/xk8aui9ghy30mid/x0LUpfjXEQWC221zAjTza?dl=0 > > (I will remove that link in some days once the port is more thoroughly > tested and available to all) > > I was able to inspect and verify that the js build had a ServicesLocator > (as defined in that swc) mxml subclass which was populating correctly with > the recent compiler changes from Alex, but I am not yet able to test more > thoroughly. The view support probably won't work yet because there are no > 'added' and 'removed' events, but we will figure something out. > > > > > On Fri, Feb 7, 2020 at 6:23 PM Greg Dove wrote: > >> >> Alex, I tested this change today. There is more to it than that, it >> seems. I will discuss details in dev list. >> >> >> On Fri, Feb 7, 2020 at 8:40 AM Alex Harui wrote: >> >>> royale-compiler >>> >>> >>> >>> *From: *De Carli Gustavo >>> *Reply-To: *"users@royale.apache.org" >>> *Date: *Thursday, February 6, 2020 at 11:39 AM >>> *To: *"users@royale.apache.org" >>> *Subject: *Re: Cairngorm problem add remote object MXML. >>> >>> >>> >>> Sorry Alex, what repository is that of the push ? >>> >>> >>> >>> El jue., 6 feb. 2020 a las 16:13, Alex Harui () >>> escribió: >>> >>> I just pushed a change to the compiler. It should now have valid output >>> for ServiceLocator. >>> >>> >>> >>> The compiler change was interesting in that I changed an else clause >>> that was put in to handle instances specified as children of top tags but >>> was doing the wrong thing. All of the compiler tests passed, but never hit >>> that code so none of our tests actually used that code, even though the >>> commit log implied it was for one of the tests. Either I made the earlier >>> change to propagate the fix for plain properties to instances or there is >>> some other scenario for instances as children (without a default property) >>> that I am not thinking of. >>> >>> >>> >>> -Alex >>> >>> >>> >>> *From: *De Carli Gustavo >>> *Reply-To: *"users@royale.apache.org" >>> *Date: *Thursday, February 6, 2020 at 6:03 AM >>> *To: *"users@royale.apache.org" >>> *Subject: *Re: Cairngorm problem add remote object MXML. >>> >>> >>> >>> >>> Exactly, cairmgorm, as Carlos says, is not the best option, but we save >>> a lot of time in migrations where they use it and leave more time for other >>> questions. >>> >>> i will continue to test how to fill that array today. >>> >>> Thank you very much for everyone in this collaboration. >>> >>> >>> >>> Gustavo. >>> >>> >>> >>> El jue., 6 feb. 2020 a las 8:39, Carlos Rovira () >>> escribió: >>> >>> Thanks Greg, for the sponsor credits, and thanks Takeshita for the words >>> :) >>> >>> >>> >>> I know Cairngorm could be good for people wanting to migrate with the >>> less effort possible. Anyway, I recommend, if possible to try to switch to >>> Crux. We already did that several years ago in Flex, since all DI, IOC >>> stuff, make us be more efficient and increase options. For people creating >>> new apps, for me there's no doubt, for people migrating, should contemplate >>> the Crux option if they continue evolving the app with new features... >>> >>> >>> >>
Re: Cairngorm problem add remote object MXML.
Sorry Alex, what repository is that of the push ? El jue., 6 feb. 2020 a las 16:13, Alex Harui () escribió: > I just pushed a change to the compiler. It should now have valid output > for ServiceLocator. > > > > The compiler change was interesting in that I changed an else clause that > was put in to handle instances specified as children of top tags but was > doing the wrong thing. All of the compiler tests passed, but never hit > that code so none of our tests actually used that code, even though the > commit log implied it was for one of the tests. Either I made the earlier > change to propagate the fix for plain properties to instances or there is > some other scenario for instances as children (without a default property) > that I am not thinking of. > > > > -Alex > > > > *From: *De Carli Gustavo > *Reply-To: *"users@royale.apache.org" > *Date: *Thursday, February 6, 2020 at 6:03 AM > *To: *"users@royale.apache.org" > *Subject: *Re: Cairngorm problem add remote object MXML. > > > > > Exactly, cairmgorm, as Carlos says, is not the best option, but we save a > lot of time in migrations where they use it and leave more time for other > questions. > > i will continue to test how to fill that array today. > > Thank you very much for everyone in this collaboration. > > > > Gustavo. > > > > El jue., 6 feb. 2020 a las 8:39, Carlos Rovira () > escribió: > > Thanks Greg, for the sponsor credits, and thanks Takeshita for the words > :) > > > > I know Cairngorm could be good for people wanting to migrate with the less > effort possible. Anyway, I recommend, if possible to try to switch to Crux. > We already did that several years ago in Flex, since all DI, IOC stuff, > make us be more efficient and increase options. For people creating new > apps, for me there's no doubt, for people migrating, should contemplate the > Crux option if they continue evolving the app with new features... > > > > just my 2 :) > > > > Carlos > > > > > > > > El jue., 6 feb. 2020 a las 5:28, Takeshita Shoichiro () > escribió: > > 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 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 hear that you are using Crux, I hope it's working well > for you. Please report any issues if you see them. > > > > One small thing: I definitely understand that you were referring to the > work I did on porting it to Royale, but just for the sake of anyone else > who reads this: it's definitely not 'my Crux framework'. The code is ported > from Swiz, and credit for the awesome features it has rests with the > original authors of Swiz (I was in contact with the original developer > during my efforts to port it to Royale). > > Also, just so people are aware, Carlos sponsored the majority of my work > on porting that, so you really have Carlos to thank for that. > > > > cheers, > > Greg > > > > On Thu, Feb 6, 2020 at 5:04 PM Takeshita Shoichiro > wrote: > > 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 > '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 iterating the > accessors of the ServiceLocator subclass via reflection and checking their > types and then registering them. > > Although it is and mxml instance of ServiceLocator, it is also an enforced > singleton which is accessed elsewhere from code. At least that is how it > appears to be set up to me. > > > > I already took a look at the code and have made (not many) local changes > and have the Cairngorm swc compiling via maven for both js and swf. I have > not tested it. Things like weak event listeners are gone. > > The main issue I think will be the Event.ADDED and Event.REMOVED for > ViewHelper automated register/unregister. Maybe we can have a > CaingormVi
Re: Cairngorm problem add remote object MXML.
Exactly, cairmgorm, as Carlos says, is not the best option, but we save a lot of time in migrations where they use it and leave more time for other questions. i will continue to test how to fill that array today. Thank you very much for everyone in this collaboration. Gustavo. El jue., 6 feb. 2020 a las 8:39, Carlos Rovira () escribió: > Thanks Greg, for the sponsor credits, and thanks Takeshita for the words :) > > I know Cairngorm could be good for people wanting to migrate with the less > effort possible. Anyway, I recommend, if possible to try to switch to Crux. > We already did that several years ago in Flex, since all DI, IOC stuff, > make us be more efficient and increase options. For people creating new > apps, for me there's no doubt, for people migrating, should contemplate the > Crux option if they continue evolving the app with new features... > > just my 2 :) > > Carlos > > > > El jue., 6 feb. 2020 a las 5:28, Takeshita Shoichiro () > escribió: > >> 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 >>> 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 hear that you are using Crux, I hope it's working >>> well for you. Please report any issues if you see them. >>> >>> One small thing: I definitely understand that you were referring to the >>> work I did on porting it to Royale, but just for the sake of anyone else >>> who reads this: it's definitely not 'my Crux framework'. The code is ported >>> from Swiz, and credit for the awesome features it has rests with the >>> original authors of Swiz (I was in contact with the original developer >>> during my efforts to port it to Royale). >>> Also, just so people are aware, Carlos sponsored the majority of my work >>> on porting that, so you really have Carlos to thank for that. >>> >>> cheers, >>> Greg >>> >>> On Thu, Feb 6, 2020 at 5:04 PM Takeshita Shoichiro >>> wrote: >>> >>>> 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 '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 iterating the >>>>> accessors of the ServiceLocator subclass via reflection and checking their >>>>> types and then registering them. >>>>> Although it is and mxml instance of ServiceLocator, it is also an >>>>> enforced singleton which is accessed elsewhere from code. At least that is >>>>> how it appears to be set up to me. >>>>> >>>>> I already took a look at the code and have made (not many) local >>>>> changes and have the Cairngorm swc compiling via maven for both js and >>>>> swf. >>>>> I have not tested it. Things like weak event listeners are gone. >>>>> The main issue I think will be the Event.ADDED and Event.REMOVED for >>>>> ViewHelper automated register/unregister. Maybe we can have a >>>>> CaingormViewBase class with support for these, or perhaps we can use the >>>>> ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might >>>>> be all that is needed, but it may not always work the same. >>>>> >>>>> I'll try to tidy it up and share it tomorrow. The licence is BSD and >>>>> is permissive ( >>>>> https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) >>>>> - >>>>> It seems to be to be similar to others like MIT etc, but I don't know >>>>> specifically what the rules are for Apache with that licence (in terms of >&g
Re: Cairngorm problem add remote object MXML.
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 see if it does not generate the error "null0". El mié., 5 feb. 2020 a las 23:15, Alex Harui () escribió: > 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: *"users@royale.apache.org" > *Date: *Wednesday, February 5, 2020 at 12:00 PM > *To: *"users@royale.apache.org" > *Subject: *Re: Cairngorm problem add remote object MXML. > > > > > > I download https://sourceforge.net/adobe/cairngorm/code/ > <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fadobe%2Fcairngorm%2Fcode%2F=02%7C01%7Caharui%40adobe.com%7Ce69b06cf11f748f1c34408d7aa7601ec%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165296132948281=jHABq2xbIpH9Q6aiYAWl1u23LkdalccZkE7uIbyJy3E%3D=0>, > 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 object. > > > > * @param serviceLocator the IServiceLocator instance. > > > > * @return this object's accessors. > > > > */ > > > > protected > > function getAccessors( > > serviceLocator : IServiceLocator ) : > > XMLList > > > > { > > > > /* > > > > var description : XML = describeType( serviceLocator ); > > > > var accessors : XMLList = description.accessor.( @access == "readwrite" > ).@name; > > > > > > return accessors; > > > > */ > > > > > > return describeType( serviceLocator).accessors(@access == > > "readwrite" ).@name; > > > > } > > > > > > > > > > El mié., 5 feb. 2020 a las 16:04, Alex Harui () > escribió: > > Carlos, What Flash APIs is Cairngorm dependent on? > > > > -Alex > > > > *From: *Carlos Rovira > *Reply-To: *"users@royale.apache.org" > *Date: *Wednesday, February 5, 2020 at 10:05 AM > *To: *"users@royale.apache.org" > *Subject: *Re: Cairngorm problem add remote object MXML. > > > > 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 dependency injection, Inversion of > control, event handling, ... > > You have 3 examples in the examples/crux folder you can check. > > I recommend you Crux over Cairngorm since Swiz was born to substitute > Cairngorm > > > > > > El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (< > gustavodeca...@gmail.com>) escribió: > > 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 Gustavo > *Reply-To: *"users@royale.apache.org" > *Date: *Wednesday, February 5, 2020 at 7:35 AM > *To: *"users@royale.apache.org" > *Subject: *Cairngorm problem add remote object MXML. > > > > > > > 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 * > > > > > > > > > > > xmlns:fx="http://ns.adobe.com/mxml/2009 > <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7Ce69b06cf11f748f1c34408d7aa7601ec%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165296132958276=D2z6jFGBTx4%2BBwOqQ4XwVSKQ0UcBb6eKavH2
Re: Cairngorm problem add remote object MXML.
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 object. * @param serviceLocator the IServiceLocator instance. * @return this object's accessors. */ protected function getAccessors( serviceLocator : IServiceLocator ) : XMLList { /* var description : XML = describeType( serviceLocator ); var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name; return accessors; */ return describeType( serviceLocator).accessors(@access == "readwrite" ).@name; } El mié., 5 feb. 2020 a las 16:04, Alex Harui () escribió: > Carlos, What Flash APIs is Cairngorm dependent on? > > > > -Alex > > > > *From: *Carlos Rovira > *Reply-To: *"users@royale.apache.org" > *Date: *Wednesday, February 5, 2020 at 10:05 AM > *To: *"users@royale.apache.org" > *Subject: *Re: Cairngorm problem add remote object MXML. > > > > 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 dependency injection, Inversion of > control, event handling, ... > > You have 3 examples in the examples/crux folder you can check. > > I recommend you Crux over Cairngorm since Swiz was born to substitute > Cairngorm > > > > > > El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (< > gustavodeca...@gmail.com>) escribió: > > 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 Gustavo > *Reply-To: *"users@royale.apache.org" > *Date: *Wednesday, February 5, 2020 at 7:35 AM > *To: *"users@royale.apache.org" > *Subject: *Cairngorm problem add remote object MXML. > > > > > > > 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 * > > > > > > > > > > > xmlns:fx="http://ns.adobe.com/mxml/2009 > <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7Cd5763b495d8547e50f7708d7aa65edcc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165227068663207=JLOGFIXWyvXPtTk3P2zPQLI9K3fVUv61%2B%2FHjYMP2KLE%3D=0> > " > > > > xmlns:mx="library://ns.apache.org/royale/mx > <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fmx=02%7C01%7Caharui%40adobe.com%7Cd5763b495d8547e50f7708d7aa65edcc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165227068673162=TXCVez5kEcJgl2%2FsWRjS8X7HpV%2BnZGITwRJyed2GumI%3D=0> > " > > > > xmlns:cairngorm="com.adobe.cairngorm.business.*"> > > > > > > > id="srvSeguridades" > > > > destination="seguridades" > > > > result="event.token.resultHandler(event)" > > > > fault="event.token.faultHandler(event)" > > > > endpoint="http://localhost:8080/messagebroker/amf"/> > > > > > > > > > > > > > > > > > > > > *2. LINE OF ERROR (RED)* > > / > > > > ** > * @constructor > * @extends {com.adobe.cairngorm.business.ServiceLocator} > */ > services.Servicio = function() { > services.Servicio.base(this, 'constructor'); > > /** >* @private >* @type {mx.rpc.remoting.mxml.RemoteObject} >*/ > this.srvSeguridades_; > > /** >* @private >* @type {Array} >*/ > this.mxmldd; > > /** >* @private >* @type {Array} >*/ > this.mxmldp; > > this.generateMXMLAttributes > ([1, > mx.rpc.remoting.mxml.RemoteObject, > 3, > 'id', > true, > 'srvSeguridades', > 'destination', > true, > 'seguridades', > 'endpoint', > true, > 'http://localhost:8080/messagebroker/amf', &g
Re: Data Binding problem
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: Cairngorm problem add remote object MXML.
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 Commands. > Crux is the same as Swiz Framework for Flex but rewritten to work in > Royale, and supports much more like dependency injection, Inversion of > control, event handling, ... > You have 3 examples in the examples/crux folder you can check. > I recommend you Crux over Cairngorm since Swiz was born to substitute > Cairngorm > > > El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (< > gustavodeca...@gmail.com>) escribió: > >> 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 Gustavo >>> *Reply-To: *"users@royale.apache.org" >>> *Date: *Wednesday, February 5, 2020 at 7:35 AM >>> *To: *"users@royale.apache.org" >>> *Subject: *Cairngorm problem add remote object MXML. >>> >>> >>> >>> >>> >>> >>> 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 * >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >>> xmlns:fx="http://ns.adobe.com/mxml/2009 >>> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7Ca2fdd1df7efe4ae1d09608d7aa50fd99%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165137141037472=QWrbWuETHlUgAy9qfGLk%2Bg2gT0WnqFBG2q5mbyWpJDo%3D=0> >>> " >>> >>> >>> >>> xmlns:mx="library://ns.apache.org/royale/mx >>> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fmx=02%7C01%7Caharui%40adobe.com%7Ca2fdd1df7efe4ae1d09608d7aa50fd99%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165137141047426=iNbi%2BaaHnZ6ClcNYhQRPBBt%2FkOE6rzdLipLxSOQJZOo%3D=0> >>> " >>> >>> >>> >>> xmlns:cairngorm="com.adobe.cairngorm.business.*"> >>> >>> >>> >>> >>> >>> >> >>> id="srvSeguridades" >>> >>> >>> >>> destination="seguridades" >>> >>> >>> >>> result="event.token.resultHandler(event)" >>> >>> >>> >>> fault="event.token.faultHandler(event)" >>> >>> >>> >>> endpoint="http://localhost:8080/messagebroker/amf"/> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> *2. LINE OF ERROR (RED)* >>> >>> / >>> >>> >>> >>> ** >>> * @constructor >>> * @extends {com.adobe.cairngorm.business.ServiceLocator} >>> */ >>> services.Servicio = function() { >>> services.Servicio.base(this, 'constructor'); >>> >>> /** >>>* @private >>>* @type {mx.rpc.remoting.mxml.RemoteObject} >>>*/ >>> this.srvSeguridades_; >>> >>> /** >>>* @private >>>* @type {Array} >>>*/ >>> this.mxmldd; >>> >>> /** >>>* @private >>>* @type {Array} >>>*/ >>> this.mxmldp; >>> >>> this.generateMXMLAttributes >>> ([1, >>> mx.rpc.remoting.mxml.RemoteObject, >>> 3, >>> 'id', >>> true, >>> 'srvSeguridades', >>> 'destination', >>> true, >>> 'seguridades', >>> 'endpoint', >>> true, >>> 'http://localhost:8080/messagebroker/amf', >>> 0, >>> 2, >>> 'result', >>> this.$EH0, >>> 'fault', >>> this.$EH1, >>> null0, <- ERROR >>> 0 >>> ]); >>> >>> }; >>> >>> >>> >>> >>> >>> 3. Trace console log >>> >>> >>> >>> Servicio.js:61 Uncaught ReferenceError: null0 is not defined >>> at new services.Servicio (Servicio.js:61) >>> at >>> Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray >>> (MXMLDataInterpreter.js:126) >>> at >>> Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances >>> (MXMLDataInterpreter.js:271) >>> at main.Main.mx.core.UIComponent.createChildren (UIComponent.js:923) >>> at main.Main.mx.core.Container.createChildren (Container.js:136) >>> at main.Main.mx.core.Application.createChildren (Application.js:122) >>> at main.Main.mx.core.UIComponent.initialize (UIComponent.js:871) >>> at main.Main.mx.core.UIComponent.addedToParent (UIComponent.js:417) >>> at main.Main.mx.core.Container.addedToParent (Container.js:123) >>> at >>> Main_mx_managers_SystemManager.org.apache.royale.core.UIBase.addElement >>> (UIBase.js:402) >>> >> > > -- > Carlos Rovira > http://about.me/carlosrovira > >
Re: Data Binding problem
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é., 5 feb. 2020 a las 15:00, Carlos Rovira () escribió: > 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 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 Gustavo >> *Sent: *Wednesday, February 5, 2020 3:35 PM >> *To: *users@royale.apache.org >> *Subject: *Re: Data Binding problem >> >> >> >> 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 10:02, Yishay Weiss () >> escribió: >> >> 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: *users@royale.apache.org >> *Subject: *Data Binding problem >> >> >> >> >> >> Hello. >> >> >> I do not find what the concept of error is because it does not work >> "binding" from the beginning, but in the method refresh . >> >> Don't load the data for default. >> >> >> >> Thk. >> >> >> >> >> >> >> >> >> >> >> >> >> >> 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%"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> >> >> width="400" >> >> >> >> height="200" >> >> >> >> dataProvider="{data}"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > "refresh(event)"/> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > -- > Carlos Rovira > http://about.me/carlosrovira > >
Re: Cairngorm problem add remote object MXML.
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 Gustavo > *Reply-To: *"users@royale.apache.org" > *Date: *Wednesday, February 5, 2020 at 7:35 AM > *To: *"users@royale.apache.org" > *Subject: *Cairngorm problem add remote object MXML. > > > > > > > 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 * > > > > > > > > > > > xmlns:fx="http://ns.adobe.com/mxml/2009 > <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009=02%7C01%7Caharui%40adobe.com%7Ca2fdd1df7efe4ae1d09608d7aa50fd99%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165137141037472=QWrbWuETHlUgAy9qfGLk%2Bg2gT0WnqFBG2q5mbyWpJDo%3D=0> > " > > > > xmlns:mx="library://ns.apache.org/royale/mx > <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fmx=02%7C01%7Caharui%40adobe.com%7Ca2fdd1df7efe4ae1d09608d7aa50fd99%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165137141047426=iNbi%2BaaHnZ6ClcNYhQRPBBt%2FkOE6rzdLipLxSOQJZOo%3D=0> > " > > > > xmlns:cairngorm="com.adobe.cairngorm.business.*"> > > > > > > > id="srvSeguridades" > > > > destination="seguridades" > > > > result="event.token.resultHandler(event)" > > > > fault="event.token.faultHandler(event)" > > > > endpoint="http://localhost:8080/messagebroker/amf"/> > > > > > > > > > > > > > > > > > > > > *2. LINE OF ERROR (RED)* > > / > > > > ** > * @constructor > * @extends {com.adobe.cairngorm.business.ServiceLocator} > */ > services.Servicio = function() { > services.Servicio.base(this, 'constructor'); > > /** >* @private >* @type {mx.rpc.remoting.mxml.RemoteObject} >*/ > this.srvSeguridades_; > > /** >* @private >* @type {Array} >*/ > this.mxmldd; > > /** >* @private >* @type {Array} >*/ > this.mxmldp; > > this.generateMXMLAttributes > ([1, > mx.rpc.remoting.mxml.RemoteObject, > 3, > 'id', > true, > 'srvSeguridades', > 'destination', > true, > 'seguridades', > 'endpoint', > true, > 'http://localhost:8080/messagebroker/amf', > 0, > 2, > 'result', > this.$EH0, > 'fault', > this.$EH1, > null0, <- ERROR > 0 > ]); > > }; > > > > > > 3. Trace console log > > > > Servicio.js:61 Uncaught ReferenceError: null0 is not defined > at new services.Servicio (Servicio.js:61) > at > Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray > (MXMLDataInterpreter.js:126) > at > Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances > (MXMLDataInterpreter.js:271) > at main.Main.mx.core.UIComponent.createChildren (UIComponent.js:923) > at main.Main.mx.core.Container.createChildren (Container.js:136) > at main.Main.mx.core.Application.createChildren (Application.js:122) > at main.Main.mx.core.UIComponent.initialize (UIComponent.js:871) > at main.Main.mx.core.UIComponent.addedToParent (UIComponent.js:417) > at main.Main.mx.core.Container.addedToParent (Container.js:123) > at > Main_mx_managers_SystemManager.org.apache.royale.core.UIBase.addElement > (UIBase.js:402) >
Cairngorm problem add remote object MXML.
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; xmlns:mx="library://ns.apache.org/royale/mx" xmlns:cairngorm="com.adobe.cairngorm.business.*"> http://localhost:8080/messagebroker/amf"/> *2. LINE OF ERROR (RED)* / ** * @constructor * @extends {com.adobe.cairngorm.business.ServiceLocator} */ services.Servicio = function() { services.Servicio.base(this, 'constructor'); /** * @private * @type {mx.rpc.remoting.mxml.RemoteObject} */ this.srvSeguridades_; /** * @private * @type {Array} */ this.mxmldd; /** * @private * @type {Array} */ this.mxmldp; this.generateMXMLAttributes ([1, mx.rpc.remoting.mxml.RemoteObject, 3, 'id', true, 'srvSeguridades', 'destination', true, 'seguridades', 'endpoint', true, 'http://localhost:8080/messagebroker/amf', 0, 2, 'result', this.$EH0, 'fault', this.$EH1, null0, <- ERROR 0 ]); }; 3. Trace console log Servicio.js:61 Uncaught ReferenceError: null0 is not defined at new services.Servicio (Servicio.js:61) at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray (MXMLDataInterpreter.js:126) at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances (MXMLDataInterpreter.js:271) at main.Main.mx.core.UIComponent.createChildren (UIComponent.js:923) at main.Main.mx.core.Container.createChildren (Container.js:136) at main.Main.mx.core.Application.createChildren (Application.js:122) at main.Main.mx.core.UIComponent.initialize (UIComponent.js:871) at main.Main.mx.core.UIComponent.addedToParent (UIComponent.js:417) at main.Main.mx.core.Container.addedToParent (Container.js:123) at Main_mx_managers_SystemManager.org.apache.royale.core.UIBase.addElement (UIBase.js:402)
Re: Data Binding problem
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 10:02, Yishay Weiss () escribió: > 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: *users@royale.apache.org > *Subject: *Data Binding problem > > > > > > Hello. > > > I do not find what the concept of error is because it does not work > "binding" from the beginning, but in the method refresh . > > Don't load the data for default. > > > > Thk. > > > > > > > > > > > > > > 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%"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > width="400" > > > > height="200" > > > > dataProvider="{data}"> > > > > > > > > > > > > > > > > > > > > > > > > "refresh(event)"/> > > > > > > > > > > > > > > > > >
Data Binding problem
Hello. I do not find what the concept of error is because it does not work "binding" from the beginning, but in the method refresh . Don't load the data for default. Thk. 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%">
Re: Difference between folders
Thanks, Alex. El mar., 4 feb. 2020 a las 13:46, Alex Harui () escribió: > That’s for Flash Builder, and possibly other IDEs. > > > > The SWC libraries contains platform-specific APIs that are used by other > libraries, so we need a set of SWCs compiled with > COMPILE::JS=true,COMPILE::SWF=false and the opposite. The only way we > could quickly do that (way back when) was to have a separate set of Flash > Builder projects. I haven’t really thought through whether that is still > true these days. > > > > -Alex > > > > *From: *De Carli Gustavo > *Reply-To: *"users@royale.apache.org" > *Date: *Tuesday, February 4, 2020 at 8:40 AM > *To: *"users@royale.apache.org" > *Subject: *Difference between folders > > > > Hello, sorry, Can someone explain to me the difference between these 2 > folders? > > > > 1. \royale-asjs\frameworks\js\projects > > > > 2. \royale-asjs\frameworks\projects > > > > Thanks > > Gustavo >
Difference between folders
Hello, sorry, Can someone explain to me the difference between these 2 folders? 1. \royale-asjs\frameworks\js\projects 2. \royale-asjs\frameworks\projects Thanks Gustavo
Re: flash.display.DisplayObjects and flash.text.TextFileld
Hello Takeshita, maybe it can help you https://github.com/apache/royale-asjs/wiki/Creating-A-High-Level-Emulation-Component Gustavo. El lun., 13 ene. 2020 a las 23:33, Takeshita Shoichiro () escribió: > Hi, > > Are there any possible equivalents of these two libraries in Apache Royale? > > Thanks > -- > Shoichiro Takeshita > 武下 祥一郎 >
Custom control
Hi, is posible generate one custom control mxml, Thanks Show this mensage ! This tag could not be resolved to an ActionScript class. It will be ignored. CustomButton.mxml http://ns.adobe.com/mxml/2009; mlns:mx="library://ns.adobe.com/flex/mx"> This yes it`s ok package com{ import mx.controls.Button; import flash.events.Event; import mx.controls.Alert; public class ButtonAS extends Button { public function ButtonAS() { super(); this.label = 'Button AS'; } } }
Re: Drop down does not show real text BUT [object Object]
I' ve too confirmed, is fixed in 0.9.7 El jue., 9 ene. 2020 a las 19:04, Takeshita Shoichiro () escribió: > Yishay, thanks a lot. > > I've confirmed that this problem is fixed now. > > On Mon, Jan 6, 2020 at 10:43 PM Takeshita Shoichiro > wrote: > >> Yishay, >> >> I opened a new issue. >> Drop down does not show real text BUT [object Object] #656 >> >> >> Thanks. >> >> >> On Mon, Jan 6, 2020 at 10:35 PM Yishay Weiss >> wrote: >> >>> Looks like he has… Takeshita, please open a bug. >>> >>> >>> >>> *From: *Piotr Zarzycki >>> *Sent: *Monday, January 6, 2020 3:25 PM >>> *To: *users@royale.apache.org >>> *Subject: *Re: Drop down does not show real text BUT [object Object] >>> >>> >>> >>> Hi, >>> >>> >>> >>> Maybe you need to specify labelField. >>> >>> >>> >>> Thanks, >>> >>> Piotr >>> >>> >>> >>> On Mon, Jan 6, 2020, 1:49 PM Takeshita Shoichiro >>> wrote: >>> >>> With the following markup/function declaration, the drop down does not >>> show >>> >>> 001: Partner A >>> 002: Partner B >>> 003: Partner C >>> >>> Instead, shows the following. >>> >>> [object Object] >>> [object Object] >>> [object Object] >>> >>> Can anyone help me solve this problem? >>> >>> >>> >>> == >>> >>> >>> >>> >>> >>> http://ns.adobe.com/mxml/2009; >>> >>>xmlns:mx="library://ns.apache.org/royale/mx" >>> >>>xmlns:s="library://ns.apache.org/royale/spark"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> "Return" tabIndex="90"/> >>> >>> >> title="Search Condition"> >>> >>> >> "20" color="#00" text="Partner Name:"/> >>> >>> >> width="199" height="24" tabIndex="75" requireSelection="true" >>> >>> dataProvider="{getPartners()}" >>> labelField="value"/> >>> >>> >>> >>> >> width="119" tabIndex="15"/> >>> >>> >> height="26" tabIndex="20" label="Search"/> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> >>> Shoichiro Takeshita >>> 武下 祥一郎 >>> >>> >>> >> >> >> -- >> Shoichiro Takeshita >> 武下 祥一郎 >> > > > -- > Shoichiro Takeshita > 武下 祥一郎 >
Re: Creation popup by as
Estimado Carlos, disculpa la demora y el lenguaje, lo que quise comentar, es que el problema estaba en que la Clase Popup, no implementa IMXMLDocument , con lo cual a la hora de navegar sus componentes hijos daba el error mencionado, como decía el post. Esto se soluciona buscando un contenedor que en algun metodo show, cree el Popup y realice el llamdo al metodo open() del mismo. https://github.com/apache/royale-asjs/commit/165393449114c215e80e538644c03b00c7e42ba5 Muchas gracias por su tiempo. Seguimos en contacto El mié., 18 dic. 2019 a las 11:12, Carlos Rovira () escribió: > Hi Gustavo, > > please check this commit: > > > https://github.com/apache/royale-asjs/commit/165393449114c215e80e538644c03b00c7e42ba5 > > I uploaded a working example in TDJ about how to instantiate a PopUp via > AS3. I don't see any issue. Maybe there's a language barrier. If you think > there's some issue, please let me know with more detail so I can try to > identify it. > > Thanks! :) > > Carlos > > > > El mar., 17 dic. 2019 a las 3:43, De Carli Gustavo (< > gustavodeca...@gmail.com>) escribió: > >> Carlos, I think the error is classified with this post. >> >> >> http://apache-royale-development.20373.n8.nabble.com/TypeError-this-generateMXMLAttributes-is-not-a-function-td8881.html >> >> thk. >> >> El lun., 16 dic. 2019 a las 19:11, De Carli Gustavo (< >> gustavodeca...@gmail.com>) escribió: >> >>> >>> Carlos No. both examples didn't work for me . >>> About your comment, MyPopup already has inside a label component. >>> >>> >>> >>> >>> >>> El lun., 16 dic. 2019 a las 15:59, Carlos Rovira (< >>> carlosrov...@apache.org>) escribió: >>> >>>> Hi Gustavo, >>>> >>>> I didn't understand if you finally get it working or not, can you >>>> specify? >>>> thanks >>>> Carlos >>>> >>>> El lun., 16 dic. 2019 a las 18:52, De Carli Gustavo (< >>>> gustavodeca...@gmail.com>) escribió: >>>> >>>>> >>>>> Carlos: thank, Yes, those examples were where we started from. Now >>>>> MyPopup already has a label (StyledUIBase) inside. >>>>> >>>>> MyPopup.mxml >>>>> >>>>> >>>>> http://ns.adobe.com/mxml/2009; >>>>> xmlns:j="library://ns.apache.org/royale/jewel"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> It was also tested in this way, by code and not in mxml. >>>>> >>>>> public function popupByAS(event:Event):void >>>>> { >>>>> trace('In method byAs'); >>>>> var onePopup:MyPopup = new MyPopup(); >>>>> var oneLabel2:Label = new Label(); >>>>> oneLabel2.text = "Hi !!"; >>>>> onePopup.content = oneLabel2; >>>>> this.addElement(onePopup); >>>>> >>>>> onePopup.open = true; >>>>> } >>>>> >>>>> >>>>> Thanks for your time >>>>> Gustavo. >>>>> >>>>> >>>>> >>>>> El lun., 16 dic. 2019 a las 13:43, Carlos Rovira (< >>>>> carlosrov...@apache.org>) escribió: >>>>> >>>>>> Hi Gustavo, >>>>>> >>>>>> thanks for your kindly words :) >>>>>> >>>>>> About your problem, I don't see in the code exposed that you are >>>>>> adding MyPopup to the onePopup instance >>>>>> >>>>>> Popup has Defaultproperty "content". you must create and assign to it >>>>>> >>>>>> In Tour De Jewel: https://royale.apache.org/tourdejewel/ >>>>>> You can see this: >>>>>> https://github.com/apache/royale-asjs/blob/develop/examples/royale/TourDeJewel/src/main/royale/PopUpPlayGround.mxml >>>>>> >>>>>> >>>>> closePopUp="popupFormContent.formValidator.removeAllErrorTips()"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> since content is Default property we can nest FormExample directly in >>>>>> the instance >>>>>> >>>>>> in AS you need to add to content >>>>>> >>&g
Re: Creation popup by as
Carlos, I think the error is classified with this post. http://apache-royale-development.20373.n8.nabble.com/TypeError-this-generateMXMLAttributes-is-not-a-function-td8881.html thk. El lun., 16 dic. 2019 a las 19:11, De Carli Gustavo (< gustavodeca...@gmail.com>) escribió: > > Carlos No. both examples didn't work for me . > About your comment, MyPopup already has inside a label component. > > > > > > El lun., 16 dic. 2019 a las 15:59, Carlos Rovira () > escribió: > >> Hi Gustavo, >> >> I didn't understand if you finally get it working or not, can you specify? >> thanks >> Carlos >> >> El lun., 16 dic. 2019 a las 18:52, De Carli Gustavo (< >> gustavodeca...@gmail.com>) escribió: >> >>> >>> Carlos: thank, Yes, those examples were where we started from. Now >>> MyPopup already has a label (StyledUIBase) inside. >>> >>> MyPopup.mxml >>> >>> >>> http://ns.adobe.com/mxml/2009; >>> xmlns:j="library://ns.apache.org/royale/jewel"> >>> >>> >>> >>> >>> >>> >>> It was also tested in this way, by code and not in mxml. >>> >>> public function popupByAS(event:Event):void >>> { >>> trace('In method byAs'); >>> var onePopup:MyPopup = new MyPopup(); >>> var oneLabel2:Label = new Label(); >>> oneLabel2.text = "Hi !!"; >>> onePopup.content = oneLabel2; >>> this.addElement(onePopup); >>> >>> onePopup.open = true; >>> } >>> >>> >>> Thanks for your time >>> Gustavo. >>> >>> >>> >>> El lun., 16 dic. 2019 a las 13:43, Carlos Rovira (< >>> carlosrov...@apache.org>) escribió: >>> >>>> Hi Gustavo, >>>> >>>> thanks for your kindly words :) >>>> >>>> About your problem, I don't see in the code exposed that you are adding >>>> MyPopup to the onePopup instance >>>> >>>> Popup has Defaultproperty "content". you must create and assign to it >>>> >>>> In Tour De Jewel: https://royale.apache.org/tourdejewel/ >>>> You can see this: >>>> https://github.com/apache/royale-asjs/blob/develop/examples/royale/TourDeJewel/src/main/royale/PopUpPlayGround.mxml >>>> >>>> >>> closePopUp="popupFormContent.formValidator.removeAllErrorTips()"> >>>> >>>> >>>> >>>> >>>> since content is Default property we can nest FormExample directly in >>>> the instance >>>> >>>> in AS you need to add to content >>>> >>>> Best >>>> >>>> Carlos >>>> >>>> >>>> >>>> El lun., 16 dic. 2019 a las 17:27, De Carli Gustavo (< >>>> gustavodeca...@gmail.com>) escribió: >>>> >>>>> Carlos, Thanks for your prompt response. It fix !!! Now we are dealing >>>>> with an external Popup, all this is for the migration of TitleWindow of >>>>> flex to royale. We believe it is the best way. Take this opportunity to >>>>> congratulate the framework, hopefully you have the first release version. >>>>> Gustavo. >>>>> >>>>> public function popupByAS(event:Event):void >>>>> { >>>>> trace('In method byAs'); >>>>> var onePopup:MyPopup = new MyPopup(); >>>>> this.addElement(onePopup); >>>>> >>>>> onePopup.open = true; >>>>> } >>>>> >>>>> >>>>> Where MyPopup.mxml >>>>> >>>>> http://ns.adobe.com/mxml/2009; >>>>> xmlns:j="library://ns.apache.org/royale/jewel"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> MyPopup.js:42 Uncaught TypeError: this.generateMXMLAttributes is not a >>>>> function >>>>> at new main.components.Form.MyPopup (MyPopup.js:42) >>>>> at Main.popupByAS (Main.mxml:22) >>>>> at Main.$EH1 (Main.mxml:51) >>>>> at Function.goog.events.fireListener [as googFireListener] >>>>> (events.js:753) >>>>> at >>>>> Object.org.apache.royale.core.HTMLElementWrapper.fireListenerOverride [as >>>>> fireListener] (HTMLElementWrapper.js:53) >>>>> at HTMLButtonEl
Re: Creation popup by as
Carlos No. both examples didn't work for me . About your comment, MyPopup already has inside a label component. El lun., 16 dic. 2019 a las 15:59, Carlos Rovira () escribió: > Hi Gustavo, > > I didn't understand if you finally get it working or not, can you specify? > thanks > Carlos > > El lun., 16 dic. 2019 a las 18:52, De Carli Gustavo (< > gustavodeca...@gmail.com>) escribió: > >> >> Carlos: thank, Yes, those examples were where we started from. Now >> MyPopup already has a label (StyledUIBase) inside. >> >> MyPopup.mxml >> >> >> http://ns.adobe.com/mxml/2009; >> xmlns:j="library://ns.apache.org/royale/jewel"> >> >> >> >> >> >> >> It was also tested in this way, by code and not in mxml. >> >> public function popupByAS(event:Event):void >> { >> trace('In method byAs'); >> var onePopup:MyPopup = new MyPopup(); >> var oneLabel2:Label = new Label(); >> oneLabel2.text = "Hi !!"; >> onePopup.content = oneLabel2; >> this.addElement(onePopup); >> >> onePopup.open = true; >> } >> >> >> Thanks for your time >> Gustavo. >> >> >> >> El lun., 16 dic. 2019 a las 13:43, Carlos Rovira (< >> carlosrov...@apache.org>) escribió: >> >>> Hi Gustavo, >>> >>> thanks for your kindly words :) >>> >>> About your problem, I don't see in the code exposed that you are adding >>> MyPopup to the onePopup instance >>> >>> Popup has Defaultproperty "content". you must create and assign to it >>> >>> In Tour De Jewel: https://royale.apache.org/tourdejewel/ >>> You can see this: >>> https://github.com/apache/royale-asjs/blob/develop/examples/royale/TourDeJewel/src/main/royale/PopUpPlayGround.mxml >>> >>> >> closePopUp="popupFormContent.formValidator.removeAllErrorTips()"> >>> >>> >>> >>> >>> since content is Default property we can nest FormExample directly in >>> the instance >>> >>> in AS you need to add to content >>> >>> Best >>> >>> Carlos >>> >>> >>> >>> El lun., 16 dic. 2019 a las 17:27, De Carli Gustavo (< >>> gustavodeca...@gmail.com>) escribió: >>> >>>> Carlos, Thanks for your prompt response. It fix !!! Now we are dealing >>>> with an external Popup, all this is for the migration of TitleWindow of >>>> flex to royale. We believe it is the best way. Take this opportunity to >>>> congratulate the framework, hopefully you have the first release version. >>>> Gustavo. >>>> >>>> public function popupByAS(event:Event):void >>>> { >>>> trace('In method byAs'); >>>> var onePopup:MyPopup = new MyPopup(); >>>> this.addElement(onePopup); >>>> >>>> onePopup.open = true; >>>> } >>>> >>>> >>>> Where MyPopup.mxml >>>> >>>> http://ns.adobe.com/mxml/2009; >>>> xmlns:j="library://ns.apache.org/royale/jewel"> >>>> >>>> >>>> >>>> >>>> >>>> MyPopup.js:42 Uncaught TypeError: this.generateMXMLAttributes is not a >>>> function >>>> at new main.components.Form.MyPopup (MyPopup.js:42) >>>> at Main.popupByAS (Main.mxml:22) >>>> at Main.$EH1 (Main.mxml:51) >>>> at Function.goog.events.fireListener [as googFireListener] >>>> (events.js:753) >>>> at >>>> Object.org.apache.royale.core.HTMLElementWrapper.fireListenerOverride [as >>>> fireListener] (HTMLElementWrapper.js:53) >>>> at HTMLButtonElement.goog.events.handleBrowserEvent_ (events.js:879) >>>> at HTMLButtonElement.f (events.js:296) >>>> >>>> El lun., 16 dic. 2019 a las 13:11, Carlos Rovira (< >>>> carlosrov...@apache.org>) escribió: >>>> >>>>> Hi Carli, >>>>> >>>>> the main problem is that you need to add to the parent the popup >>>>> created with >>>>> >>>>> addElement(onePopup); >>>>> >>>>> Notice that each time you'll be creating one popup and adding to the >>>>> container, so maybe you need to create some logic to ensure creation and >>>>> addition to p
Re: Creation popup by as
Carlos: thank, Yes, those examples were where we started from. Now MyPopup already has a label (StyledUIBase) inside. MyPopup.mxml http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel"> It was also tested in this way, by code and not in mxml. public function popupByAS(event:Event):void { trace('In method byAs'); var onePopup:MyPopup = new MyPopup(); var oneLabel2:Label = new Label(); oneLabel2.text = "Hi !!"; onePopup.content = oneLabel2; this.addElement(onePopup); onePopup.open = true; } Thanks for your time Gustavo. El lun., 16 dic. 2019 a las 13:43, Carlos Rovira () escribió: > Hi Gustavo, > > thanks for your kindly words :) > > About your problem, I don't see in the code exposed that you are adding > MyPopup to the onePopup instance > > Popup has Defaultproperty "content". you must create and assign to it > > In Tour De Jewel: https://royale.apache.org/tourdejewel/ > You can see this: > https://github.com/apache/royale-asjs/blob/develop/examples/royale/TourDeJewel/src/main/royale/PopUpPlayGround.mxml > > closePopUp="popupFormContent.formValidator.removeAllErrorTips()"> > width="490" height="392"/> > > > > since content is Default property we can nest FormExample directly in the > instance > > in AS you need to add to content > > Best > > Carlos > > > > El lun., 16 dic. 2019 a las 17:27, De Carli Gustavo (< > gustavodeca...@gmail.com>) escribió: > >> Carlos, Thanks for your prompt response. It fix !!! Now we are dealing >> with an external Popup, all this is for the migration of TitleWindow of >> flex to royale. We believe it is the best way. Take this opportunity to >> congratulate the framework, hopefully you have the first release version. >> Gustavo. >> >> public function popupByAS(event:Event):void >> { >> trace('In method byAs'); >> var onePopup:MyPopup = new MyPopup(); >> this.addElement(onePopup); >> >> onePopup.open = true; >> } >> >> >> Where MyPopup.mxml >> >> http://ns.adobe.com/mxml/2009; >> xmlns:j="library://ns.apache.org/royale/jewel"> >> >> >> >> >> >> MyPopup.js:42 Uncaught TypeError: this.generateMXMLAttributes is not a >> function >> at new main.components.Form.MyPopup (MyPopup.js:42) >> at Main.popupByAS (Main.mxml:22) >> at Main.$EH1 (Main.mxml:51) >> at Function.goog.events.fireListener [as googFireListener] >> (events.js:753) >> at >> Object.org.apache.royale.core.HTMLElementWrapper.fireListenerOverride [as >> fireListener] (HTMLElementWrapper.js:53) >> at HTMLButtonElement.goog.events.handleBrowserEvent_ (events.js:879) >> at HTMLButtonElement.f (events.js:296) >> >> El lun., 16 dic. 2019 a las 13:11, Carlos Rovira (< >> carlosrov...@apache.org>) escribió: >> >>> Hi Carli, >>> >>> the main problem is that you need to add to the parent the popup created >>> with >>> >>> addElement(onePopup); >>> >>> Notice that each time you'll be creating one popup and adding to the >>> container, so maybe you need to create some logic to ensure creation and >>> addition to parent is done just one time. >>> >>> An additional issue (that does not gives error) is that click event >>> handlers has binding expressions. That's not needed >>> >>> instead of >>> >>> click="{this.popByMethod.open = true}" >>> >>> you write only: >>> >>> click="popByMethod.open = true" >>> >>> >>> HTH >>> >>> Carlos >>> >>> >>> El lun., 16 dic. 2019 a las 17:03, Carlos Rovira (< >>> carlosrov...@apache.org>) escribió: >>> >>>> Hi Carli, >>>> I'm going to try your code and see what I can report about it >>>> >>>> El lun., 16 dic. 2019 a las 16:56, De Carli Gustavo (< >>>> gustavodeca...@gmail.com>) escribió: >>>> >>>>> Hello, someone could be oriented because I do not have the same >>>>> behavior in the creation of a popup by msxml than by as. thank you very >>>>> much >>>>> Method, popupByAs, is the problem, does nothing. >>>>> >>>>> thank >>>>> >>>>> >>>>> >>>>> http://ns.adobe.com/mxml/2009; >>>>> xmlns:html="library://ns.apache.org/royale/html" >>>>> xmlns:j="library://ns.apache.org/royale/jewel" >>>>> xmlns:Button="main.components.Button.*" >>>>> xmlns:Form="main.components.Form.*" >>>>> xmlns:js="library://ns.apache.org/royale/basic" >>>>> xmlns:c="components.*"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> text="By Method MXML" >>>>> x="10" >>>>> y="200" >>>>> emphasis="primary" >>>>> click="{this.popByMethod.open = true}"/> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> text="By Metodo AS" >>>>> x="10" >>>>> y="200" >>>>> emphasis="primary" >>>>> click="{this.popupByAS(event)}"/> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> Carlos Rovira >>>> http://about.me/carlosrovira >>>> >>>> >>> >>> -- >>> Carlos Rovira >>> http://about.me/carlosrovira >>> >>> > > -- > Carlos Rovira > http://about.me/carlosrovira > >
Re: Creation popup by as
Carlos, Thanks for your prompt response. It fix !!! Now we are dealing with an external Popup, all this is for the migration of TitleWindow of flex to royale. We believe it is the best way. Take this opportunity to congratulate the framework, hopefully you have the first release version. Gustavo. public function popupByAS(event:Event):void { trace('In method byAs'); var onePopup:MyPopup = new MyPopup(); this.addElement(onePopup); onePopup.open = true; } Where MyPopup.mxml http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel"> MyPopup.js:42 Uncaught TypeError: this.generateMXMLAttributes is not a function at new main.components.Form.MyPopup (MyPopup.js:42) at Main.popupByAS (Main.mxml:22) at Main.$EH1 (Main.mxml:51) at Function.goog.events.fireListener [as googFireListener] (events.js:753) at Object.org.apache.royale.core.HTMLElementWrapper.fireListenerOverride [as fireListener] (HTMLElementWrapper.js:53) at HTMLButtonElement.goog.events.handleBrowserEvent_ (events.js:879) at HTMLButtonElement.f (events.js:296) El lun., 16 dic. 2019 a las 13:11, Carlos Rovira () escribió: > Hi Carli, > > the main problem is that you need to add to the parent the popup created > with > > addElement(onePopup); > > Notice that each time you'll be creating one popup and adding to the > container, so maybe you need to create some logic to ensure creation and > addition to parent is done just one time. > > An additional issue (that does not gives error) is that click event > handlers has binding expressions. That's not needed > > instead of > > click="{this.popByMethod.open = true}" > > you write only: > > click="popByMethod.open = true" > > > HTH > > Carlos > > > El lun., 16 dic. 2019 a las 17:03, Carlos Rovira () > escribió: > >> Hi Carli, >> I'm going to try your code and see what I can report about it >> >> El lun., 16 dic. 2019 a las 16:56, De Carli Gustavo (< >> gustavodeca...@gmail.com>) escribió: >> >>> Hello, someone could be oriented because I do not have the same behavior >>> in the creation of a popup by msxml than by as. thank you very much >>> Method, popupByAs, is the problem, does nothing. >>> >>> thank >>> >>> >>> >>> http://ns.adobe.com/mxml/2009; >>> xmlns:html="library://ns.apache.org/royale/html" >>> xmlns:j="library://ns.apache.org/royale/jewel" >>> xmlns:Button="main.components.Button.*" >>> xmlns:Form="main.components.Form.*" >>> xmlns:js="library://ns.apache.org/royale/basic" >>> xmlns:c="components.*"> >>> >>> >>> >>> >>> >>> >>> >>> >> text="By Method MXML" >>> x="10" >>> y="200" >>> emphasis="primary" >>> click="{this.popByMethod.open = true}"/> >>> >>> >>> >>> >>> >>> >>> >>> >> text="By Metodo AS" >>> x="10" >>> y="200" >>> emphasis="primary" >>> click="{this.popupByAS(event)}"/> >>> >>> >>> >>> >>> >>> >> >> -- >> Carlos Rovira >> http://about.me/carlosrovira >> >> > > -- > Carlos Rovira > http://about.me/carlosrovira > >
Creation popup by as
Hello, someone could be oriented because I do not have the same behavior in the creation of a popup by msxml than by as. thank you very much Method, popupByAs, is the problem, does nothing. thank http://ns.adobe.com/mxml/2009; xmlns:html="library://ns.apache.org/royale/html" xmlns:j="library://ns.apache.org/royale/jewel" xmlns:Button="main.components.Button.*" xmlns:Form="main.components.Form.*" xmlns:js="library://ns.apache.org/royale/basic" xmlns:c="components.*">