royale-asjs
royale-asjs copied to clipboard
model binding on the views does not work on royale 0.9.8
I created a new royale project that uses crux. After declaring the first ui control. (A jewel drop down). I tried populating a jewel drop down with data from the server. I have configured the controller and service in the Beans.xml file. From the logs injection happens.
However, I have observed that the model is not injected into the view.
@mjesteve has confirmed the same as well. She is unable to bind model to views.
I tested the same on royale 0.9.7 and it worked.
Can I ask you to do 2 things please;
- Make sure it is not css-related - because you are using Jewel, you don't want the MXRoyale css. So you need to make sure you have the correct directive to exclude css from MXRoyale. If you are using maven and version 0.9.8, for example, you will need -compiler.exclude-defaults-css-files=MXRoyale-0.9.8-js.swc:defaults.css. If you are using maven and 0.9.7 it would need to be -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-js.swc:defaults.css. If you are using IDE or ant it might need to be -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css. This directive will be able to be avoided whenever future 0.9.9 is released, because MXRoyale was split into 2 libs yesterday, and the css is not present in the new one that Crux uses. But that option is not available in 0.9.8 and earlier.
- If the problem is not fixed by
#1above, then can you please attach (to this github issue) a minimal project that shows the problem as a zip fileset. I will look into it when I have time. Thanks, Greg