I am using maven for dependency management. I created a multi module maven
project with a client side and server side.
The client side is apache royale project that was created using the
following archetype
mvn archetype:generate -DgroupId="com.spacio.fm.client3"
-DartifactId="FmClient3"
-DarchetypeGroupId="org.apache.royale.framework"
-DarchetypeArtifactId="royale-simple-application-archetype"
-DarchetypeVersion="0.9.7" -DinteractiveMode=false
After adding crux dependencies and creating the relevant configurations
e.g. Beans.xml
I compile using "mvn clean install" this compiles the project to the target
folder.
The server is a spring based project that uses spring boot and blazeds.
I added a mvn script to copy the compiled client side project to the server
project so I can run it the spring boot way
mvn spring-boot:run
Find attached the asconfig.json and client side pom. Everything else
appears to work fine except the event handler method not being invoked.
Even the type safety check that is done on the event handler works. i.e. if
I misspell the event handler class name. I get a crux related error at run
time.
On Wed, Sep 22, 2021 at 2:07 PM Maria Jose Esteve wrote:
> Roman,
>
> How do you compile ? asconfigc, mvn, …? Can you send pom.xml,
> asconfig.json, ...?
>
>
>
> Thx
>
> *De:* Roman Isitua
> *Enviado el:* miércoles, 22 de septiembre de 2021 11:47
> *Para:* users@royale.apache.org
> *Asunto:* crux not invoking event handler method
>
>
>
> Hi Everyone,
>
>
>
> I created a new royale project on version 0.9.7. I am able to inject
> models into view. I have created my first custom event with its
> corresponding
> event handler method in the controller.
> When I dispatch the event crux does not invoke my event handler method
>
> What is frustrating is the fact that there is nothing displayed in the log.
>
> No error messages. The event handler method is not being invoked.
>
>
>
> I have attached my program source code. I have looked at the royal crux
> examples over and over. I can't seem to see the difference between the
> example code and mine.
>
>
>
>
>
> Regards,.
>
>
>
>
>
> Regards,
>
>
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.spacio.fm
SpacioFM
1.0
com.spacio.fm.client3
FmClient3
pom
UTF-8
1.8
1.8
0.9.7
com.spacio
spacio_as3
1.0
swc
js
org.apache.royale.framework
Jewel
${royale.framework.version}
swc
js
org.apache.royale.framework
Icons
${royale.framework.version}
swc
js
org.apache.royale.framework
JewelTheme
${royale.framework.version}
swc
theme
js
org.apache.royale.framework
Core
${royale.framework.version}
swc
js
org.apache.royale.framework
Basic
${royale.framework.version}
swc
js
org.apache.royale.framework
Language
${royale.framework.version}
swc
js
org.apache.royale.framework
Crux
${royale.framework.version}
swc
js
org.apache.royale.framework
HTML
${royale.framework.version}
swc
js
org.apache.royale.framework
Collections
${royale.framework.version}
swc
js
org.apache.royale.framework
Binding
${royale.framework.version}
swc
js
org.apache.royale.framework
Graphics
${royale.framework.version}
swc
js
org.apache.royale.framework
Network
${royale.framework.version}
swc
js
org.apache.royale.framework
Reflection
${royale.framework.version}
swc
js
org.apache.royale.framework
MXRoyale
${royale.framework.version}
swc
js