Hi Gustavo, in Crux you simple has a Model (I think yours could be "MonedaBase"?) and add to your BeanProvider. check in TodoMVC how I did
<models:TodoModel id="todoModel"/> As you see is a simple bindable class since Crux no impose to extend framework classes That model instance is used cross all classes, you inject it where you needed to make it available for use to save data from server and to bind in classes. All that can be seen in TodoMVC crux example. to work with your service layer through RemoteObjects please check this [1] HTH Carlos [1] https://apache.github.io/royale-docs/libraries/crux/service-layer El mié., 19 feb. 2020 a las 3:25, De Carli Gustavo (< [email protected]>) escribió: > > > 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 (< > [email protected]>) 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 (< >> [email protected]>) 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 (< >>> [email protected]>) 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 (< >>>> [email protected]>) escribió: >>>> >>>>> Hi Carli, >>>>> >>>>> Basic dependency seems not add to dependencies >>>>> >>>>> >>>>> El jue., 13 feb. 2020 a las 14:44, De Carli Gustavo (< >>>>> [email protected]>) 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. >>>>>> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" >>>>>> ^ >>>>>> >>>>>> 3. pom.mxl >>>>>> >>>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>>> <!-- >>>>>> >>>>>> Licensed to the Apache Software Foundation (ASF) under one or more >>>>>> contributor license agreements. See the NOTICE file distributed with >>>>>> this work for additional information regarding copyright ownership. >>>>>> The ASF licenses this file to You under the Apache License, Version >>>>>> 2.0 >>>>>> (the "License"); you may not use this file except in compliance with >>>>>> the License. You may obtain a copy of the License at >>>>>> >>>>>> http://www.apache.org/licenses/LICENSE-2.0 >>>>>> >>>>>> Unless required by applicable law or agreed to in writing, software >>>>>> distributed under the License is distributed on an "AS IS" BASIS, >>>>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or >>>>>> implied. >>>>>> See the License for the specific language governing permissions and >>>>>> limitations under the License. >>>>>> >>>>>> --> >>>>>> <project xmlns="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"> >>>>>> <modelVersion>4.0.0</modelVersion> >>>>>> >>>>>> <groupId>com.deka.royale.examples</groupId> >>>>>> <artifactId>Cairngorm</artifactId> >>>>>> <version>1.0-SNAPSHOT</version> >>>>>> <packaging>swf</packaging> >>>>>> >>>>>> <properties> >>>>>> <compiler.debug>true</compiler.debug> >>>>>> <!-- >>>>>> >>>>>> <compiler.output-dir>${basedir}/target/javascript/bin/js-debug</compiler.output-dir> >>>>>> >>>>>> <compiler.output-dir-debug>${basedir}/target/javascript/bin/js-debug</compiler.output-dir-debug> >>>>>> --> >>>>>> <compiler.output-dir>${basedir}/target/tomcat/webapps/ROOT/</ >>>>>> compiler.output-dir> >>>>>> <compiler.output-dir-debug>${basedir}/target/tomcat/webapps/ROOT/</ >>>>>> compiler.output-dir-debug> >>>>>> <!-- In Release mode we only want to copy assets folder content to >>>>>> assets destination folder, the rest is managed by compiler --> >>>>>> <compiler.output-dir-release> >>>>>> ${basedir}/target/javascript/bin/js-release</ >>>>>> compiler.output-dir-release> >>>>>> >>>>>> <royale.framework.version>0.9.7-SNAPSHOT</royale.framework.version> >>>>>> <royale.build-tools.version>1.1.0</royale.build-tools.version> >>>>>> <royale.compiler.version>0.9.7-SNAPSHOT</royale.compiler.version> >>>>>> <royale.typedefs.version>0.9.7-SNAPSHOT</royale.typedefs.version> >>>>>> >>>>>> >>>>>> <royale.targets>JSRoyale</royale.targets> >>>>>> <royale.skipAS>true</royale.skipAS> >>>>>> <royale.debug>true</royale.debug> >>>>>> </properties> >>>>>> >>>>>> <build> >>>>>> <sourceDirectory>src/main/royale</sourceDirectory> >>>>>> <plugins> >>>>>> <plugin> >>>>>> <groupId>org.apache.royale.compiler</groupId> >>>>>> <artifactId>royale-maven-plugin</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <extensions>true</extensions> >>>>>> <configuration> >>>>>> <mainClass>App.mxml</mainClass> >>>>>> <targets>${royale.targets}</targets> >>>>>> <debug>true</debug> >>>>>> <additionalCompilerOptions> >>>>>> -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; >>>>>> </additionalCompilerOptions> >>>>>> </configuration> >>>>>> <dependencies> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.compiler</groupId> >>>>>> <artifactId>compiler-jx</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> </dependency> >>>>>> </dependencies> >>>>>> </plugin> >>>>>> >>>>>> >>>>>> <!-- Copy the resources to the compiler output directory --> >>>>>> <plugin> >>>>>> <groupId>org.apache.maven.plugins</groupId> >>>>>> <artifactId>maven-resources-plugin</artifactId> >>>>>> <executions> >>>>>> <execution> >>>>>> <id>copy-resources-debug</id> >>>>>> <phase>validate</phase> >>>>>> <goals> >>>>>> <goal>copy-resources</goal> >>>>>> </goals> >>>>>> <configuration> >>>>>> <outputDirectory>${compiler.output-dir-debug}</outputDirectory> >>>>>> <resources> >>>>>> <resource> >>>>>> <directory>src/main/resources</directory> >>>>>> <filtering>true</filtering> >>>>>> </resource> >>>>>> </resources> >>>>>> </configuration> >>>>>> </execution> >>>>>> <execution> >>>>>> <id>copy-resources-release</id> >>>>>> <phase>validate</phase> >>>>>> <goals> >>>>>> <goal>copy-resources</goal> >>>>>> </goals> >>>>>> <configuration> >>>>>> <!-- Copy the assets to the assets output directory --> >>>>>> <outputDirectory>${compiler.output-dir-release}/assets</ >>>>>> outputDirectory> >>>>>> <resources> >>>>>> <resource> >>>>>> <directory>src/main/resources/assets</directory> >>>>>> <filtering>true</filtering> >>>>>> </resource> >>>>>> </resources> >>>>>> </configuration> >>>>>> </execution> >>>>>> </executions> >>>>>> </plugin> >>>>>> </plugins> >>>>>> </build> >>>>>> >>>>>> <dependencies> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.framework</groupId> >>>>>> <artifactId>Core</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <type>swc</type> >>>>>> <classifier>js</classifier> >>>>>> </dependency> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.framework</groupId> >>>>>> <artifactId>Language</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <type>swc</type> >>>>>> <classifier>js</classifier> >>>>>> </dependency> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.framework</groupId> >>>>>> <artifactId>HTML</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <type>swc</type> >>>>>> <classifier>js</classifier> >>>>>> </dependency> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.framework</groupId> >>>>>> <artifactId>Collections</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <type>swc</type> >>>>>> <classifier>js</classifier> >>>>>> </dependency> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.framework</groupId> >>>>>> <artifactId>Binding</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <type>swc</type> >>>>>> <classifier>js</classifier> >>>>>> </dependency> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.framework</groupId> >>>>>> <artifactId>Graphics</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <type>swc</type> >>>>>> <classifier>js</classifier> >>>>>> </dependency> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.framework</groupId> >>>>>> <artifactId>MXRoyale</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <type>swc</type> >>>>>> <classifier>js</classifier> >>>>>> </dependency> >>>>>> <dependency> >>>>>> <groupId>org.apache.royale.framework</groupId> >>>>>> <artifactId>SparkRoyale</artifactId> >>>>>> <version>0.9.7-SNAPSHOT</version> >>>>>> <type>swc</type> >>>>>> <classifier>js</classifier> >>>>>> </dependency> >>>>>> </dependencies> >>>>>> </project> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> Carlos Rovira >>>>> http://about.me/carlosrovira >>>>> >>>>> >>> >>> -- >>> Carlos Rovira >>> http://about.me/carlosrovira >>> >>> -- Carlos Rovira http://about.me/carlosrovira
