Re: crux not injecting model in view
Hi Maria, Unfortunately, I don't read Spanish yet. To work around this issue I had to revert to version 0.9.7. I did not use the maven archetype. I used the attached maven pom template that Piotr gave me a while ago. Since then I have not had issues with crux or databinding. Regards, On Wed, Oct 6, 2021 at 10:25 AM Maria Jose Esteve wrote: > @roman, ¿has podido solucionar esto? ¿te funciona el binding? ¿podrías > compartirlo? > > > > > > *De:* Roman Isitua > *Enviado el:* martes, 21 de septiembre de 2021 9:40 > *Para:* users@royale.apache.org > *Asunto:* Re: crux not injecting model in view > > > > Interesting investigation. I have studied the examples to see if there is > a difference in configuration between the example and my code. For now I am > yet to see a difference. When I re implemented the code on royale 0.9.7 it > worked. I agree further analysis is required. > > > > > > > > > > > > On Tue, Sep 21, 2021 at 1:32 AM Maria Jose Esteve > wrote: > > Hi, > > I have compiled the examples with SDK 0.9.9-SNAPSHOT, SDK 0.9.8 and SDK > 0.9.7 and the binding works in all three (There is some anomaly in > CruxGitHubCommitLogViewer but I didn't think it was relevant for these > tests). > > > > Hiedra. > > > > *De:* Maria Jose Esteve > *Enviado el:* lunes, 20 de septiembre de 2021 12:30 > *Para:* users@royale.apache.org > *Asunto:* RE: crux not injecting model in view > > > > Hi Roman, > > If you compile and run the crux SDK examples, does the binding work in > 0.9.8? (I can't test it now) > > If it works, maybe the problem requires further analysis. > > > > Hiedra > > > > *De:* Roman Isitua > *Enviado el:* lunes, 20 de septiembre de 2021 12:23 > *Para:* users@royale.apache.org > *Asunto:* Re: crux not injecting model in view > > > > > > I have logged the issue here > > > > https://github.com/apache/royale-asjs/issues/1151 > > > > > > > > On Sun, Sep 19, 2021 at 7:21 AM Yishay Weiss > wrote: > > Can you please report [1] that bug? > > > > [1] Issues (github.com) <https://github.com/issues> > > > > *From: *Roman Isitua > *Sent: *Saturday, September 18, 2021 11:21 PM > *To: *users@royale.apache.org > *Subject: *Re: crux not injecting model in view > > > > I got it to work on *royale version 0.9.7*. > > > > I corrected a mistake I was making as follows > > > > // [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] > > [Inject( source = "lovController.genericLovs", bind = "true" )] > > > > > > I was using > > > > [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] > > > > instead of > > > > [Inject( source = "lovController.genericLovs", bind = "true" )] > > > > > > > > > > However, I must add that the above change does not work on *royale 0.9.8*. > I tested it again. it still does not work. > > > > I will have to port my work from royale 0.9.8 to 0.9.7. > > > > > > Regards, > > > > On Sat, Sep 18, 2021 at 8:37 PM Roman Isitua > wrote: > > Just an update on this issue. I implemented the above using royale 0.9.8. > > > > I decided to try the same thing on royale 0.9.7. It is still working > however I can see a log message that is not available when running on 0.9.8 > > > > Here it is > > > > *warning: no describeType entry for 'lovBO' on non-dynamic type > 'LovController'* > > > > What is the meaning of this warning ? From the log below it is clear the > setter injection failed. Hence the reason the dropdown is not being > populated. > > > > > > Language.as:254 InjectProcessor set up [Inject( > source="logInController.logInParams", bind="true" )] on Bean{ source: > [object Object], name: null } > > *Language.as:254 warning: no describeType entry for 'lovBO' on non-dynamic > type 'LovController' InjectProcessor.as:385 Uncaught Error: Unexpected > result* > at > org.apache.royale.crux.processors.InjectProcessor.addPropertyBinding > (InjectProcessor.as:385) > at org.apache.royale.crux.processors.InjectProcessor.setUpMetadataTag > (InjectProcessor.as:139) > at > org.apache.royale.crux.processors.InjectProcessor.org.apache.royale.crux.processors.BaseMetadataProcessor.setUpMetadataTags > (BaseMetadataProcessor.as:81) > at org.apache.royale.crux.BeanFactory.setUpBean (BeanFactory.as:378) > at Function.org.apache.royale.crux.CruxManager.setUpVie
Re: crux not injecting model in view
Interesting investigation. I have studied the examples to see if there is a difference in configuration between the example and my code. For now I am yet to see a difference. When I re implemented the code on royale 0.9.7 it worked. I agree further analysis is required. On Tue, Sep 21, 2021 at 1:32 AM Maria Jose Esteve wrote: > Hi, > > I have compiled the examples with SDK 0.9.9-SNAPSHOT, SDK 0.9.8 and SDK > 0.9.7 and the binding works in all three (There is some anomaly in > CruxGitHubCommitLogViewer but I didn't think it was relevant for these > tests). > > > > Hiedra. > > > > *De:* Maria Jose Esteve > *Enviado el:* lunes, 20 de septiembre de 2021 12:30 > *Para:* users@royale.apache.org > *Asunto:* RE: crux not injecting model in view > > > > Hi Roman, > > If you compile and run the crux SDK examples, does the binding work in > 0.9.8? (I can't test it now) > > If it works, maybe the problem requires further analysis. > > > > Hiedra > > > > *De:* Roman Isitua > *Enviado el:* lunes, 20 de septiembre de 2021 12:23 > *Para:* users@royale.apache.org > *Asunto:* Re: crux not injecting model in view > > > > > > I have logged the issue here > > > > https://github.com/apache/royale-asjs/issues/1151 > > > > > > > > On Sun, Sep 19, 2021 at 7:21 AM Yishay Weiss > wrote: > > Can you please report [1] that bug? > > > > [1] Issues (github.com) <https://github.com/issues> > > > > *From: *Roman Isitua > *Sent: *Saturday, September 18, 2021 11:21 PM > *To: *users@royale.apache.org > *Subject: *Re: crux not injecting model in view > > > > I got it to work on *royale version 0.9.7*. > > > > I corrected a mistake I was making as follows > > > > // [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] > > [Inject( source = "lovController.genericLovs", bind = "true" )] > > > > > > I was using > > > > [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] > > > > instead of > > > > [Inject( source = "lovController.genericLovs", bind = "true" )] > > > > > > > > > > However, I must add that the above change does not work on *royale 0.9.8*. > I tested it again. it still does not work. > > > > I will have to port my work from royale 0.9.8 to 0.9.7. > > > > > > Regards, > > > > On Sat, Sep 18, 2021 at 8:37 PM Roman Isitua > wrote: > > Just an update on this issue. I implemented the above using royale 0.9.8. > > > > I decided to try the same thing on royale 0.9.7. It is still working > however I can see a log message that is not available when running on 0.9.8 > > > > Here it is > > > > *warning: no describeType entry for 'lovBO' on non-dynamic type > 'LovController'* > > > > What is the meaning of this warning ? From the log below it is clear the > setter injection failed. Hence the reason the dropdown is not being > populated. > > > > > > Language.as:254 InjectProcessor set up [Inject( > source="logInController.logInParams", bind="true" )] on Bean{ source: > [object Object], name: null } > > *Language.as:254 warning: no describeType entry for 'lovBO' on non-dynamic > type 'LovController' InjectProcessor.as:385 Uncaught Error: Unexpected > result* > at > org.apache.royale.crux.processors.InjectProcessor.addPropertyBinding > (InjectProcessor.as:385) > at org.apache.royale.crux.processors.InjectProcessor.setUpMetadataTag > (InjectProcessor.as:139) > at > org.apache.royale.crux.processors.InjectProcessor.org.apache.royale.crux.processors.BaseMetadataProcessor.setUpMetadataTags > (BaseMetadataProcessor.as:81) > at org.apache.royale.crux.BeanFactory.setUpBean (BeanFactory.as:378) > at Function.org.apache.royale.crux.CruxManager.setUpView > (CruxManager.as:106) > at Function.org.apache.royale.crux.CruxManager.setUp > (CruxManager.as:88) > at org.apache.royale.crux.BeanFactory.setUpEventHandler > (BeanFactory.as:517) > at FrontEnd.org.apache.royale.events.EventDispatcher.fireListeners > (EventDispatcher.as:139) > at Function.goog.events.EventTarget.dispatchEventInternal_ > (eventtarget.js:372) > at > org.apache.royale.crux.beads.JSStageEvents.org_apache_royale_crux_beads_JSStageEvents_mutationDetected > (JSStageEvents.as:209) > > > > > > I have attached the complete log to this mail > > > > On Sat, Sep 18, 2021 at 7:44 PM Roman Isitua > wrote: > > Thanks for he
Re: crux not injecting model in view
I have logged the issue here https://github.com/apache/royale-asjs/issues/1151 On Sun, Sep 19, 2021 at 7:21 AM Yishay Weiss wrote: > Can you please report [1] that bug? > > > > [1] Issues (github.com) <https://github.com/issues> > > > > *From: *Roman Isitua > *Sent: *Saturday, September 18, 2021 11:21 PM > *To: *users@royale.apache.org > *Subject: *Re: crux not injecting model in view > > > > I got it to work on *royale version 0.9.7*. > > > > I corrected a mistake I was making as follows > > > > // [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] > > [Inject( source = "lovController.genericLovs", bind = "true" )] > > > > > > I was using > > > > [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] > > > > instead of > > > > [Inject( source = "lovController.genericLovs", bind = "true" )] > > > > > > > > > > However, I must add that the above change does not work on * royale 0.9.8*. > I tested it again. it still does not work. > > > > I will have to port my work from royale 0.9.8 to 0.9.7. > > > > > > Regards, > > > > On Sat, Sep 18, 2021 at 8:37 PM Roman Isitua > wrote: > > Just an update on this issue. I implemented the above using royale 0.9.8. > > > > I decided to try the same thing on royale 0.9.7. It is still working > however I can see a log message that is not available when running on 0.9.8 > > > > Here it is > > > > *warning: no describeType entry for 'lovBO' on non-dynamic type > 'LovController'* > > > > What is the meaning of this warning ? From the log below it is clear the > setter injection failed. Hence the reason the dropdown is not being > populated. > > > > > > Language.as:254 InjectProcessor set up [Inject( > source="logInController.logInParams", bind="true" )] on Bean{ source: > [object Object], name: null } > > *Language.as:254 warning: no describeType entry for 'lovBO' on non-dynamic > type 'LovController' InjectProcessor.as:385 Uncaught Error: Unexpected > result* > at > org.apache.royale.crux.processors.InjectProcessor.addPropertyBinding > (InjectProcessor.as:385) > at org.apache.royale.crux.processors.InjectProcessor.setUpMetadataTag > (InjectProcessor.as:139) > at > org.apache.royale.crux.processors.InjectProcessor.org.apache.royale.crux.processors.BaseMetadataProcessor.setUpMetadataTags > (BaseMetadataProcessor.as:81) > at org.apache.royale.crux.BeanFactory.setUpBean (BeanFactory.as:378) > at Function.org.apache.royale.crux.CruxManager.setUpView > (CruxManager.as:106) > at Function.org.apache.royale.crux.CruxManager.setUp > (CruxManager.as:88) > at org.apache.royale.crux.BeanFactory.setUpEventHandler > (BeanFactory.as:517) > at FrontEnd.org.apache.royale.events.EventDispatcher.fireListeners > (EventDispatcher.as:139) > at Function.goog.events.EventTarget.dispatchEventInternal_ > (eventtarget.js:372) > at > org.apache.royale.crux.beads.JSStageEvents.org_apache_royale_crux_beads_JSStageEvents_mutationDetected > (JSStageEvents.as:209) > > > > > > I have attached the complete log to this mail > > > > On Sat, Sep 18, 2021 at 7:44 PM Roman Isitua > wrote: > > Thanks for helping out. > > > > I forgot to attach the GenericLOV source code. > > > > Find attached to this email. > > > > > > On Sat, Sep 18, 2021 at 6:48 PM Maria Jose Esteve > wrote: > > Hi Roman, > > I saw your previous code and now I will see this one you attach. I will > try to help you BUT I don't know if I will be able to because although I > use Crux and amf my implementation is different from yours and I don't > control all the concepts (my original project was set up by a Royale expert > company). > > > > I'll let you know if I get something. > > Hiedra. > > > > *De:* Roman Isitua > *Enviado el:* sábado, 18 de septiembre de 2021 18:37 > *Para:* users@royale.apache.org > *Asunto:* crux not injecting model in view > > > > I intend to populate 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. > > > > Any ideas ? > > > > My code is implemented as follows > > > > LovBO > > > > public class LovBO > >{ > > > > /** > >
Re: crux not injecting model in view
Hi Yishay Weiss, The link you shared is broken. Can you share another link so I can report the bug ? On Sun, Sep 19, 2021 at 7:21 AM Yishay Weiss wrote: > Can you please report [1] that bug? > > > > [1] Issues (github.com) <https://github.com/issues> > > > > *From: *Roman Isitua > *Sent: *Saturday, September 18, 2021 11:21 PM > *To: *users@royale.apache.org > *Subject: *Re: crux not injecting model in view > > > > I got it to work on *royale version 0.9.7*. > > > > I corrected a mistake I was making as follows > > > > // [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] > > [Inject( source = "lovController.genericLovs", bind = "true" )] > > > > > > I was using > > > > [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] > > > > instead of > > > > [Inject( source = "lovController.genericLovs", bind = "true" )] > > > > > > > > > > However, I must add that the above change does not work on * royale 0.9.8*. > I tested it again. it still does not work. > > > > I will have to port my work from royale 0.9.8 to 0.9.7. > > > > > > Regards, > > > > On Sat, Sep 18, 2021 at 8:37 PM Roman Isitua > wrote: > > Just an update on this issue. I implemented the above using royale 0.9.8. > > > > I decided to try the same thing on royale 0.9.7. It is still working > however I can see a log message that is not available when running on 0.9.8 > > > > Here it is > > > > *warning: no describeType entry for 'lovBO' on non-dynamic type > 'LovController'* > > > > What is the meaning of this warning ? From the log below it is clear the > setter injection failed. Hence the reason the dropdown is not being > populated. > > > > > > Language.as:254 InjectProcessor set up [Inject( > source="logInController.logInParams", bind="true" )] on Bean{ source: > [object Object], name: null } > > *Language.as:254 warning: no describeType entry for 'lovBO' on non-dynamic > type 'LovController' InjectProcessor.as:385 Uncaught Error: Unexpected > result* > at > org.apache.royale.crux.processors.InjectProcessor.addPropertyBinding > (InjectProcessor.as:385) > at org.apache.royale.crux.processors.InjectProcessor.setUpMetadataTag > (InjectProcessor.as:139) > at > org.apache.royale.crux.processors.InjectProcessor.org.apache.royale.crux.processors.BaseMetadataProcessor.setUpMetadataTags > (BaseMetadataProcessor.as:81) > at org.apache.royale.crux.BeanFactory.setUpBean (BeanFactory.as:378) > at Function.org.apache.royale.crux.CruxManager.setUpView > (CruxManager.as:106) > at Function.org.apache.royale.crux.CruxManager.setUp > (CruxManager.as:88) > at org.apache.royale.crux.BeanFactory.setUpEventHandler > (BeanFactory.as:517) > at FrontEnd.org.apache.royale.events.EventDispatcher.fireListeners > (EventDispatcher.as:139) > at Function.goog.events.EventTarget.dispatchEventInternal_ > (eventtarget.js:372) > at > org.apache.royale.crux.beads.JSStageEvents.org_apache_royale_crux_beads_JSStageEvents_mutationDetected > (JSStageEvents.as:209) > > > > > > I have attached the complete log to this mail > > > > On Sat, Sep 18, 2021 at 7:44 PM Roman Isitua > wrote: > > Thanks for helping out. > > > > I forgot to attach the GenericLOV source code. > > > > Find attached to this email. > > > > > > On Sat, Sep 18, 2021 at 6:48 PM Maria Jose Esteve > wrote: > > Hi Roman, > > I saw your previous code and now I will see this one you attach. I will > try to help you BUT I don't know if I will be able to because although I > use Crux and amf my implementation is different from yours and I don't > control all the concepts (my original project was set up by a Royale expert > company). > > > > I'll let you know if I get something. > > Hiedra. > > > > *De:* Roman Isitua > *Enviado el:* sábado, 18 de septiembre de 2021 18:37 > *Para:* users@royale.apache.org > *Asunto:* crux not injecting model in view > > > > I intend to populate 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. > > > > Any ideas ? > > > > My code is implemented as follows > > > > LovBO > > > > public class LovBO > >{ > > >
Re: crux not injecting model in view
Yes. That was my observation. I couldn't get the model binding on the views to work. I replicated the same functionality on royale 0.9.7 and it worked. Regards, On Mon, Sep 20, 2021 at 8:49 AM Maria Jose Esteve wrote: > I can't get the model binding on the views to work, however, the > dispatchers that are launched from the view does reach the controller. I > don't know what is happening? > > > > if someone had a moment and could look at it? I will continue testing this > afternoon, when I finish my workday. > > > > Hiedra > > > > *De:* Maria Jose Esteve > *Enviado el:* domingo, 19 de septiembre de 2021 16:15 > *Para:* users@royale.apache.org > *Asunto:* RE: crux not injecting model in view > > > > Hi Roman, > > I created a Jewel+crux project with the sdk archetypes [1]. Then, I added > your files and completed with some other... > > The truth is that with all your tests it was complicated for me to know > what I was doing so I isolated a small MVC. > > > > I couldn't finish the tests because I still can't connect to the backend > you sent me in a previous query ( > http://132...:8080/messagebroker/websocket-amf). Could you download the > project and make a first check with your localhost? > > > > Let me know what results you get and we'll continue from this point. > > > > [1] > https://github.com/mjesteve/royale-examples/tree/laboratory/romanisitua/RomanIsitua/ASimpleRoyaleTestApp > > > > Hiedra. > > > > *De:* Maria Jose Esteve > *Enviado el:* sábado, 18 de septiembre de 2021 19:48 > *Para:* users@royale.apache.org > *Asunto:* RE: crux not injecting model in view > > > > Hi Roman, > > I saw your previous code and now I will see this one you attach. I will > try to help you BUT I don't know if I will be able to because although I > use Crux and amf my implementation is different from yours and I don't > control all the concepts (my original project was set up by a Royale expert > company). > > > > I'll let you know if I get something. > > Hiedra. > > > > *De:* Roman Isitua > *Enviado el:* sábado, 18 de septiembre de 2021 18:37 > *Para:* users@royale.apache.org > *Asunto:* crux not injecting model in view > > > > I intend to populate 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. > > > > Any ideas ? > > > > My code is implemented as follows > > > > LovBO > > > > public class LovBO > >{ > > > > /** > > > * The [Dispatcher] metadata tag instructs Crux to inject an event > dispatcher. > > > * Event's dispatched via this dispatcher can trigger event mediators. > > */ > > [Dispatcher] > > public var dispatcher : IEventDispatcher; > > > > [Inject( "lovService" )] > > public var lovService:RemoteObject; > > > > [Inject] > > public var serviceHelper:ServiceHelper; > > > >[Bindable] > > public var _lovs:Array; > > > >[Bindable] > > public var _lovs2:ArrayList; > > > > LovController > > > > public class LovController > >{ > > [Inject] > > public var lovBO:LovBO; > > > >// [Bindable] > > public var genericLovs:ArrayList; > > > >public function LovController() > >{ > >trace(' -- LovController -- '); > >} > > > >/** > > > * [PostConstruct] methods are invoked after all dependencies are > injected. > > > * In this example, we set up a default user after the bean is > created. > > */ > > [PostConstruct] > > public function fetchLovs() : void > > { > > > > trace(' -- [PostConstruct] fetch lovs country prefix -- '); > > > > //genericLovs = lovBO.lov2; > > > > lovBO.lov2; > > } > > > > Beans.xml > > > > > > > > > > The application.mxml > > > > > > > > http://ns.adobe.com/mxml/2009; > > xmlns:js="library://ns.apache.org/royale/basic" > > xmlns:j="library://ns.apache.org/royale/jewel" > > xmlns:crux="library://ns.apache.org/royale/crux" >
Re: crux not injecting model in view
Hi Maria, I am yet to deploy this current project online. Hence you will not get any response. On Sun, Sep 19, 2021 at 3:15 PM Maria Jose Esteve wrote: > Hi Roman, > > I created a Jewel+crux project with the sdk archetypes [1]. Then, I added > your files and completed with some other... > > The truth is that with all your tests it was complicated for me to know > what I was doing so I isolated a small MVC. > > > > I couldn't finish the tests because I still can't connect to the backend > you sent me in a previous query > (http://132...:8080/messagebroker/websocket-amf). > Could you download the project and make a first check with your localhost? > > > > Let me know what results you get and we'll continue from this point. > > > > [1] > https://github.com/mjesteve/royale-examples/tree/laboratory/romanisitua/RomanIsitua/ASimpleRoyaleTestApp > > > > Hiedra. > > > > *De:* Maria Jose Esteve > *Enviado el:* sábado, 18 de septiembre de 2021 19:48 > *Para:* users@royale.apache.org > *Asunto:* RE: crux not injecting model in view > > > > Hi Roman, > > I saw your previous code and now I will see this one you attach. I will > try to help you BUT I don't know if I will be able to because although I > use Crux and amf my implementation is different from yours and I don't > control all the concepts (my original project was set up by a Royale expert > company). > > > > I'll let you know if I get something. > > Hiedra. > > > > *De:* Roman Isitua > *Enviado el:* sábado, 18 de septiembre de 2021 18:37 > *Para:* users@royale.apache.org > *Asunto:* crux not injecting model in view > > > > I intend to populate 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. > > > > Any ideas ? > > > > My code is implemented as follows > > > > LovBO > > > > public class LovBO > >{ > > > > /** > > > * The [Dispatcher] metadata tag instructs Crux to inject an event > dispatcher. > > > * Event's dispatched via this dispatcher can trigger event mediators. > > */ > > [Dispatcher] > > public var dispatcher : IEventDispatcher; > > > > [Inject( "lovService" )] > > public var lovService:RemoteObject; > > > > [Inject] > > public var serviceHelper:ServiceHelper; > > > >[Bindable] > > public var _lovs:Array; > > > >[Bindable] > > public var _lovs2:ArrayList; > > > > LovController > > > > public class LovController > >{ > > [Inject] > > public var lovBO:LovBO; > > > >// [Bindable] > > public var genericLovs:ArrayList; > > > >public function LovController() > >{ > >trace(' -- LovController -- '); > >} > > > >/** > > > * [PostConstruct] methods are invoked after all dependencies are > injected. > > > * In this example, we set up a default user after the bean is > created. > > */ > > [PostConstruct] > > public function fetchLovs() : void > > { > > > > trace(' -- [PostConstruct] fetch lovs country prefix -- '); > > > > //genericLovs = lovBO.lov2; > > > > lovBO.lov2; > > } > > > > Beans.xml > > > > > > > > > > The application.mxml > > > > > > > > http://ns.adobe.com/mxml/2009; > > xmlns:js="library://ns.apache.org/royale/basic" > > xmlns:j="library://ns.apache.org/royale/jewel" > > xmlns:crux="library://ns.apache.org/royale/crux" > > xmlns:config="com.spacio.fm.client2.config.*" > > xmlns:views="com.spacio.fm.client2.views.*" > > initialize="setUp;initApp(event);"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > eventPackages="com.spacio.fm.client2.events.*" > > viewPackages="com.spacio.fm.client2.views.*" > > /> > > > > > > > > > > > > > > > > > > > > > > > > MainView.mxml ( I have attached the complete source for the MainView.xml. > and the other classes) > > > > > > http://ns.adobe.com/mxml/2009; > > xmlns:j="library://ns.apache.org/royale/jewel" > > xmlns:js="library://ns.apache.org/royale/basic" > > xmlns:html="library://ns.apache.org/royale/html" > > initComplete="initCompleteHandler(event)" > > xmlns:views="com.spacio.fm.client2.views.*" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
RE: crux not injecting model in view
I can't get the model binding on the views to work, however, the dispatchers that are launched from the view does reach the controller. I don't know what is happening? if someone had a moment and could look at it? I will continue testing this afternoon, when I finish my workday. Hiedra De: Maria Jose Esteve Enviado el: domingo, 19 de septiembre de 2021 16:15 Para: users@royale.apache.org Asunto: RE: crux not injecting model in view Hi Roman, I created a Jewel+crux project with the sdk archetypes [1]. Then, I added your files and completed with some other... The truth is that with all your tests it was complicated for me to know what I was doing so I isolated a small MVC. I couldn't finish the tests because I still can't connect to the backend you sent me in a previous query (http://132...:8080/messagebroker/websocket-amf). Could you download the project and make a first check with your localhost? Let me know what results you get and we'll continue from this point. [1] https://github.com/mjesteve/royale-examples/tree/laboratory/romanisitua/RomanIsitua/ASimpleRoyaleTestApp Hiedra. De: Maria Jose Esteve mailto:mjest...@iest.com>> Enviado el: sábado, 18 de septiembre de 2021 19:48 Para: users@royale.apache.org<mailto:users@royale.apache.org> Asunto: RE: crux not injecting model in view Hi Roman, I saw your previous code and now I will see this one you attach. I will try to help you BUT I don't know if I will be able to because although I use Crux and amf my implementation is different from yours and I don't control all the concepts (my original project was set up by a Royale expert company). I'll let you know if I get something. Hiedra. De: Roman Isitua mailto:romanisi...@gmail.com>> Enviado el: sábado, 18 de septiembre de 2021 18:37 Para: users@royale.apache.org<mailto:users@royale.apache.org> Asunto: crux not injecting model in view I intend to populate 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. Any ideas ? My code is implemented as follows LovBO public class LovBO { /** * The [Dispatcher] metadata tag instructs Crux to inject an event dispatcher. * Event's dispatched via this dispatcher can trigger event mediators. */ [Dispatcher] public var dispatcher : IEventDispatcher; [Inject( "lovService" )] public var lovService:RemoteObject; [Inject] public var serviceHelper:ServiceHelper; [Bindable] public var _lovs:Array; [Bindable] public var _lovs2:ArrayList; LovController public class LovController { [Inject] public var lovBO:LovBO; // [Bindable] public var genericLovs:ArrayList; public function LovController() { trace(' -- LovController -- '); } /** * [PostConstruct] methods are invoked after all dependencies are injected. * In this example, we set up a default user after the bean is created. */ [PostConstruct] public function fetchLovs() : void { trace(' -- [PostConstruct] fetch lovs country prefix -- '); //genericLovs = lovBO.lov2; lovBO.lov2; } Beans.xml The application.mxml http://ns.adobe.com/mxml/2009; xmlns:js="library://ns.apache.org/royale/basic<http://ns.apache.org/royale/basic>" xmlns:j="library://ns.apache.org/royale/jewel<http://ns.apache.org/royale/jewel>" xmlns:crux="library://ns.apache.org/royale/crux<http://ns.apache.org/royale/crux>" xmlns:config="com.spacio.fm.client2.config.*" xmlns:views="com.spacio.fm.client2.views.*" initialize="setUp;initApp(event);"> MainView.mxml ( I have attached the complete source for the MainView.xml. and the other classes) http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel<http://ns.apache.org/royale/jewel>" xmlns:js="library://ns.apache.org/royale/basic<http://ns.apache.org/royale/basic>" xmlns:html="library://ns.apache.org/royale/html<http://ns.apache.org/royale/html>" initComplete="initCompleteHandler(event)" xmlns:views="com.spacio.fm.client2.views.*" >
RE: crux not injecting model in view
Hi Roman, I created a Jewel+crux project with the sdk archetypes [1]. Then, I added your files and completed with some other... The truth is that with all your tests it was complicated for me to know what I was doing so I isolated a small MVC. I couldn't finish the tests because I still can't connect to the backend you sent me in a previous query (http://132...:8080/messagebroker/websocket-amf). Could you download the project and make a first check with your localhost? Let me know what results you get and we'll continue from this point. [1] https://github.com/mjesteve/royale-examples/tree/laboratory/romanisitua/RomanIsitua/ASimpleRoyaleTestApp Hiedra. De: Maria Jose Esteve Enviado el: sábado, 18 de septiembre de 2021 19:48 Para: users@royale.apache.org Asunto: RE: crux not injecting model in view Hi Roman, I saw your previous code and now I will see this one you attach. I will try to help you BUT I don't know if I will be able to because although I use Crux and amf my implementation is different from yours and I don't control all the concepts (my original project was set up by a Royale expert company). I'll let you know if I get something. Hiedra. De: Roman Isitua mailto:romanisi...@gmail.com>> Enviado el: sábado, 18 de septiembre de 2021 18:37 Para: users@royale.apache.org<mailto:users@royale.apache.org> Asunto: crux not injecting model in view I intend to populate 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. Any ideas ? My code is implemented as follows LovBO public class LovBO { /** * The [Dispatcher] metadata tag instructs Crux to inject an event dispatcher. * Event's dispatched via this dispatcher can trigger event mediators. */ [Dispatcher] public var dispatcher : IEventDispatcher; [Inject( "lovService" )] public var lovService:RemoteObject; [Inject] public var serviceHelper:ServiceHelper; [Bindable] public var _lovs:Array; [Bindable] public var _lovs2:ArrayList; LovController public class LovController { [Inject] public var lovBO:LovBO; // [Bindable] public var genericLovs:ArrayList; public function LovController() { trace(' -- LovController -- '); } /** * [PostConstruct] methods are invoked after all dependencies are injected. * In this example, we set up a default user after the bean is created. */ [PostConstruct] public function fetchLovs() : void { trace(' -- [PostConstruct] fetch lovs country prefix -- '); //genericLovs = lovBO.lov2; lovBO.lov2; } Beans.xml The application.mxml http://ns.adobe.com/mxml/2009; xmlns:js="library://ns.apache.org/royale/basic<http://ns.apache.org/royale/basic>" xmlns:j="library://ns.apache.org/royale/jewel<http://ns.apache.org/royale/jewel>" xmlns:crux="library://ns.apache.org/royale/crux<http://ns.apache.org/royale/crux>" xmlns:config="com.spacio.fm.client2.config.*" xmlns:views="com.spacio.fm.client2.views.*" initialize="setUp;initApp(event);"> MainView.mxml ( I have attached the complete source for the MainView.xml. and the other classes) http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel<http://ns.apache.org/royale/jewel>" xmlns:js="library://ns.apache.org/royale/basic<http://ns.apache.org/royale/basic>" xmlns:html="library://ns.apache.org/royale/html<http://ns.apache.org/royale/html>" initComplete="initCompleteHandler(event)" xmlns:views="com.spacio.fm.client2.views.*" >
RE: crux not injecting model in view
Can you please report [1] that bug? [1] Issues (github.com)<https://github.com/issues> From: Roman Isitua<mailto:romanisi...@gmail.com> Sent: Saturday, September 18, 2021 11:21 PM To: users@royale.apache.org<mailto:users@royale.apache.org> Subject: Re: crux not injecting model in view I got it to work on royale version 0.9.7. I corrected a mistake I was making as follows // [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] [Inject( source = "lovController.genericLovs", bind = "true" )] I was using [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] instead of [Inject( source = "lovController.genericLovs", bind = "true" )] However, I must add that the above change does not work on royale 0.9.8. I tested it again. it still does not work. I will have to port my work from royale 0.9.8 to 0.9.7. Regards, On Sat, Sep 18, 2021 at 8:37 PM Roman Isitua mailto:romanisi...@gmail.com>> wrote: Just an update on this issue. I implemented the above using royale 0.9.8. I decided to try the same thing on royale 0.9.7. It is still working however I can see a log message that is not available when running on 0.9.8 Here it is warning: no describeType entry for 'lovBO' on non-dynamic type 'LovController' What is the meaning of this warning ? From the log below it is clear the setter injection failed. Hence the reason the dropdown is not being populated. Language.as:254 InjectProcessor set up [Inject( source="logInController.logInParams", bind="true" )] on Bean{ source: [object Object], name: null } Language.as:254 warning: no describeType entry for 'lovBO' on non-dynamic type 'LovController' InjectProcessor.as:385 Uncaught Error: Unexpected result at org.apache.royale.crux.processors.InjectProcessor.addPropertyBinding (InjectProcessor.as:385) at org.apache.royale.crux.processors.InjectProcessor.setUpMetadataTag (InjectProcessor.as:139) at org.apache.royale.crux.processors.InjectProcessor.org.apache.royale.crux.processors.BaseMetadataProcessor.setUpMetadataTags (BaseMetadataProcessor.as:81) at org.apache.royale.crux.BeanFactory.setUpBean (BeanFactory.as:378) at Function.org.apache.royale.crux.CruxManager.setUpView (CruxManager.as:106) at Function.org.apache.royale.crux.CruxManager.setUp (CruxManager.as:88) at org.apache.royale.crux.BeanFactory.setUpEventHandler (BeanFactory.as:517) at FrontEnd.org.apache.royale.events.EventDispatcher.fireListeners (EventDispatcher.as:139) at Function.goog.events.EventTarget.dispatchEventInternal_ (eventtarget.js:372) at org.apache.royale.crux.beads.JSStageEvents.org_apache_royale_crux_beads_JSStageEvents_mutationDetected (JSStageEvents.as:209) I have attached the complete log to this mail On Sat, Sep 18, 2021 at 7:44 PM Roman Isitua mailto:romanisi...@gmail.com>> wrote: Thanks for helping out. I forgot to attach the GenericLOV source code. Find attached to this email. On Sat, Sep 18, 2021 at 6:48 PM Maria Jose Esteve mailto:mjest...@iest.com>> wrote: Hi Roman, I saw your previous code and now I will see this one you attach. I will try to help you BUT I don't know if I will be able to because although I use Crux and amf my implementation is different from yours and I don't control all the concepts (my original project was set up by a Royale expert company). I'll let you know if I get something. Hiedra. De: Roman Isitua mailto:romanisi...@gmail.com>> Enviado el: sábado, 18 de septiembre de 2021 18:37 Para: users@royale.apache.org<mailto:users@royale.apache.org> Asunto: crux not injecting model in view I intend to populate 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. Any ideas ? My code is implemented as follows LovBO public class LovBO { /** * The [Dispatcher] metadata tag instructs Crux to inject an event dispatcher. * Event's dispatched via this dispatcher can trigger event mediators. */ [Dispatcher] public var dispatcher : IEventDispatcher; [Inject( "lovService" )] public var lovService:RemoteObject; [Inject] public var serviceHelper:ServiceHelper; [Bindable] public var _lovs:Array; [Bindable] public var _lovs2:ArrayList; LovController public class LovController { [Inject] public var lovBO:LovBO; // [Bindable] public var genericLovs:ArrayList; public function LovController() { trace(' -- LovController -- '); } /** * [PostConstruct] methods are invoked after all dependencies are injected. * In this example
Re: crux not injecting model in view
I got it to work on *royale version 0.9.7*. I corrected a mistake I was making as follows // [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] [Inject( source = "lovController.genericLovs", bind = "true" )] I was using [Inject( source = "lovController.lovBO._lovs2", bind = "true" )] instead of [Inject( source = "lovController.genericLovs", bind = "true" )] However, I must add that the above change does not work on *royale 0.9.8*. I tested it again. it still does not work. I will have to port my work from royale 0.9.8 to 0.9.7. Regards, On Sat, Sep 18, 2021 at 8:37 PM Roman Isitua wrote: > Just an update on this issue. I implemented the above using royale 0.9.8. > > I decided to try the same thing on royale 0.9.7. It is still working > however I can see a log message that is not available when running on 0.9.8 > > Here it is > > *warning: no describeType entry for 'lovBO' on non-dynamic type > 'LovController'* > > What is the meaning of this warning ? From the log below it is clear the > setter injection failed. Hence the reason the dropdown is not being > populated. > > > Language.as:254 InjectProcessor set up [Inject( > source="logInController.logInParams", bind="true" )] on Bean{ source: > [object Object], name: null } > > *Language.as:254 warning: no describeType entry for 'lovBO' on non-dynamic > type 'LovController'InjectProcessor.as:385 Uncaught Error: Unexpected > result* > at > org.apache.royale.crux.processors.InjectProcessor.addPropertyBinding > (InjectProcessor.as:385) > at org.apache.royale.crux.processors.InjectProcessor.setUpMetadataTag > (InjectProcessor.as:139) > at > org.apache.royale.crux.processors.InjectProcessor.org.apache.royale.crux.processors.BaseMetadataProcessor.setUpMetadataTags > (BaseMetadataProcessor.as:81) > at org.apache.royale.crux.BeanFactory.setUpBean (BeanFactory.as:378) > at Function.org.apache.royale.crux.CruxManager.setUpView > (CruxManager.as:106) > at Function.org.apache.royale.crux.CruxManager.setUp > (CruxManager.as:88) > at org.apache.royale.crux.BeanFactory.setUpEventHandler > (BeanFactory.as:517) > at FrontEnd.org.apache.royale.events.EventDispatcher.fireListeners > (EventDispatcher.as:139) > at Function.goog.events.EventTarget.dispatchEventInternal_ > (eventtarget.js:372) > at > org.apache.royale.crux.beads.JSStageEvents.org_apache_royale_crux_beads_JSStageEvents_mutationDetected > (JSStageEvents.as:209) > > > I have attached the complete log to this mail > > On Sat, Sep 18, 2021 at 7:44 PM Roman Isitua > wrote: > >> Thanks for helping out. >> >> I forgot to attach the GenericLOV source code. >> >> Find attached to this email. >> >> >> On Sat, Sep 18, 2021 at 6:48 PM Maria Jose Esteve >> wrote: >> >>> Hi Roman, >>> >>> I saw your previous code and now I will see this one you attach. I will >>> try to help you BUT I don't know if I will be able to because although I >>> use Crux and amf my implementation is different from yours and I don't >>> control all the concepts (my original project was set up by a Royale expert >>> company). >>> >>> >>> >>> I'll let you know if I get something. >>> >>> Hiedra. >>> >>> >>> >>> *De:* Roman Isitua >>> *Enviado el:* sábado, 18 de septiembre de 2021 18:37 >>> *Para:* users@royale.apache.org >>> *Asunto:* crux not injecting model in view >>> >>> >>> >>> I intend to populate 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. >>> >>> >>> >>> Any ideas ? >>> >>> >>> >>> My code is implemented as follows >>> >>> >>> >>> LovBO >>> >>> >>> >>> public class LovBO >>> >>>{ >>> >>> >>> >>> /** >>> >>> >>> * The [Dispatcher] metadata tag instructs Crux to inject an event >>> dispatcher. >>> >>> >>> * Event's dispatched via this dispatcher can trigger event >>> mediators. >>> >>> */ >>> >>> [Dispatcher] &
Re: crux not injecting model in view
Just an update on this issue. I implemented the above using royale 0.9.8. I decided to try the same thing on royale 0.9.7. It is still working however I can see a log message that is not available when running on 0.9.8 Here it is *warning: no describeType entry for 'lovBO' on non-dynamic type 'LovController'* What is the meaning of this warning ? From the log below it is clear the setter injection failed. Hence the reason the dropdown is not being populated. Language.as:254 InjectProcessor set up [Inject( source="logInController.logInParams", bind="true" )] on Bean{ source: [object Object], name: null } *Language.as:254 warning: no describeType entry for 'lovBO' on non-dynamic type 'LovController'InjectProcessor.as:385 Uncaught Error: Unexpected result* at org.apache.royale.crux.processors.InjectProcessor.addPropertyBinding (InjectProcessor.as:385) at org.apache.royale.crux.processors.InjectProcessor.setUpMetadataTag (InjectProcessor.as:139) at org.apache.royale.crux.processors.InjectProcessor.org.apache.royale.crux.processors.BaseMetadataProcessor.setUpMetadataTags (BaseMetadataProcessor.as:81) at org.apache.royale.crux.BeanFactory.setUpBean (BeanFactory.as:378) at Function.org.apache.royale.crux.CruxManager.setUpView (CruxManager.as:106) at Function.org.apache.royale.crux.CruxManager.setUp (CruxManager.as:88) at org.apache.royale.crux.BeanFactory.setUpEventHandler (BeanFactory.as:517) at FrontEnd.org.apache.royale.events.EventDispatcher.fireListeners (EventDispatcher.as:139) at Function.goog.events.EventTarget.dispatchEventInternal_ (eventtarget.js:372) at org.apache.royale.crux.beads.JSStageEvents.org_apache_royale_crux_beads_JSStageEvents_mutationDetected (JSStageEvents.as:209) I have attached the complete log to this mail On Sat, Sep 18, 2021 at 7:44 PM Roman Isitua wrote: > Thanks for helping out. > > I forgot to attach the GenericLOV source code. > > Find attached to this email. > > > On Sat, Sep 18, 2021 at 6:48 PM Maria Jose Esteve > wrote: > >> Hi Roman, >> >> I saw your previous code and now I will see this one you attach. I will >> try to help you BUT I don't know if I will be able to because although I >> use Crux and amf my implementation is different from yours and I don't >> control all the concepts (my original project was set up by a Royale expert >> company). >> >> >> >> I'll let you know if I get something. >> >> Hiedra. >> >> >> >> *De:* Roman Isitua >> *Enviado el:* sábado, 18 de septiembre de 2021 18:37 >> *Para:* users@royale.apache.org >> *Asunto:* crux not injecting model in view >> >> >> >> I intend to populate 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. >> >> >> >> Any ideas ? >> >> >> >> My code is implemented as follows >> >> >> >> LovBO >> >> >> >> public class LovBO >> >>{ >> >> >> >> /** >> >> >> * The [Dispatcher] metadata tag instructs Crux to inject an event >> dispatcher. >> >> >> * Event's dispatched via this dispatcher can trigger event >> mediators. >> >> */ >> >> [Dispatcher] >> >> public var dispatcher : IEventDispatcher; >> >> >> >> [Inject( "lovService" )] >> >> public var lovService:RemoteObject; >> >> >> >> [Inject] >> >> public var serviceHelper:ServiceHelper; >> >> >> >>[Bindable] >> >> public var _lovs:Array; >> >> >> >>[Bindable] >> >> public var _lovs2:ArrayList; >> >> >> >> LovController >> >> >> >> public class LovController >> >>{ >> >> [Inject] >> >> public var lovBO:LovBO; >> >> >> >>// [Bindable] >> >> public var genericLovs:ArrayList; >> >> >> >>public function LovController() >> >>{ >> >>trace(' -- LovController -- '); >> >>} >> >> >> >>/** >> >> >> * [PostConstruct] methods are invoked after all dependencies are >> injected. >> >> >> * In this example,
Re: crux not injecting model in view
Thanks for helping out. I forgot to attach the GenericLOV source code. Find attached to this email. On Sat, Sep 18, 2021 at 6:48 PM Maria Jose Esteve wrote: > Hi Roman, > > I saw your previous code and now I will see this one you attach. I will > try to help you BUT I don't know if I will be able to because although I > use Crux and amf my implementation is different from yours and I don't > control all the concepts (my original project was set up by a Royale expert > company). > > > > I'll let you know if I get something. > > Hiedra. > > > > *De:* Roman Isitua > *Enviado el:* sábado, 18 de septiembre de 2021 18:37 > *Para:* users@royale.apache.org > *Asunto:* crux not injecting model in view > > > > I intend to populate 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. > > > > Any ideas ? > > > > My code is implemented as follows > > > > LovBO > > > > public class LovBO > >{ > > > > /** > > > * The [Dispatcher] metadata tag instructs Crux to inject an event > dispatcher. > > > * Event's dispatched via this dispatcher can trigger event mediators. > > */ > > [Dispatcher] > > public var dispatcher : IEventDispatcher; > > > > [Inject( "lovService" )] > > public var lovService:RemoteObject; > > > > [Inject] > > public var serviceHelper:ServiceHelper; > > > >[Bindable] > > public var _lovs:Array; > > > >[Bindable] > > public var _lovs2:ArrayList; > > > > LovController > > > > public class LovController > >{ > > [Inject] > > public var lovBO:LovBO; > > > >// [Bindable] > > public var genericLovs:ArrayList; > > > >public function LovController() > >{ > >trace(' -- LovController -- '); > >} > > > >/** > > > * [PostConstruct] methods are invoked after all dependencies are > injected. > > > * In this example, we set up a default user after the bean is > created. > > */ > > [PostConstruct] > > public function fetchLovs() : void > > { > > > > trace(' -- [PostConstruct] fetch lovs country prefix -- '); > > > > //genericLovs = lovBO.lov2; > > > > lovBO.lov2; > > } > > > > Beans.xml > > > > > > > > > > The application.mxml > > > > > > > > http://ns.adobe.com/mxml/2009; > > xmlns:js="library://ns.apache.org/royale/basic" > > xmlns:j="library://ns.apache.org/royale/jewel" > > xmlns:crux="library://ns.apache.org/royale/crux" > > xmlns:config="com.spacio.fm.client2.config.*" > > xmlns:views="com.spacio.fm.client2.views.*" > > initialize="setUp;initApp(event);"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > eventPackages="com.spacio.fm.client2.events.*" > > viewPackages="com.spacio.fm.client2.views.*" > > /> > > > > > > > > > > > > > > > > > > > > > > > > MainView.mxml ( I have attached the complete source for the MainView.xml. > and the other classes) > > > > > > http://ns.adobe.com/mxml/2009; > > xmlns:j="library://ns.apache.org/royale/jewel" > > xmlns:js="library://ns.apache.org/royale/basic" > > xmlns:html="library://ns.apache.org/royale/html" > > initComplete="initCompleteHandler(event)" > > xmlns:views="com.spacio.fm.client2.views.*" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
RE: crux not injecting model in view
Hi Roman, I saw your previous code and now I will see this one you attach. I will try to help you BUT I don't know if I will be able to because although I use Crux and amf my implementation is different from yours and I don't control all the concepts (my original project was set up by a Royale expert company). I'll let you know if I get something. Hiedra. De: Roman Isitua Enviado el: sábado, 18 de septiembre de 2021 18:37 Para: users@royale.apache.org Asunto: crux not injecting model in view I intend to populate 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. Any ideas ? My code is implemented as follows LovBO public class LovBO { /** * The [Dispatcher] metadata tag instructs Crux to inject an event dispatcher. * Event's dispatched via this dispatcher can trigger event mediators. */ [Dispatcher] public var dispatcher : IEventDispatcher; [Inject( "lovService" )] public var lovService:RemoteObject; [Inject] public var serviceHelper:ServiceHelper; [Bindable] public var _lovs:Array; [Bindable] public var _lovs2:ArrayList; LovController public class LovController { [Inject] public var lovBO:LovBO; // [Bindable] public var genericLovs:ArrayList; public function LovController() { trace(' -- LovController -- '); } /** * [PostConstruct] methods are invoked after all dependencies are injected. * In this example, we set up a default user after the bean is created. */ [PostConstruct] public function fetchLovs() : void { trace(' -- [PostConstruct] fetch lovs country prefix -- '); //genericLovs = lovBO.lov2; lovBO.lov2; } Beans.xml The application.mxml http://ns.adobe.com/mxml/2009; xmlns:js="library://ns.apache.org/royale/basic<http://ns.apache.org/royale/basic>" xmlns:j="library://ns.apache.org/royale/jewel<http://ns.apache.org/royale/jewel>" xmlns:crux="library://ns.apache.org/royale/crux<http://ns.apache.org/royale/crux>" xmlns:config="com.spacio.fm.client2.config.*" xmlns:views="com.spacio.fm.client2.views.*" initialize="setUp;initApp(event);"> MainView.mxml ( I have attached the complete source for the MainView.xml. and the other classes) http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel<http://ns.apache.org/royale/jewel>" xmlns:js="library://ns.apache.org/royale/basic<http://ns.apache.org/royale/basic>" xmlns:html="library://ns.apache.org/royale/html<http://ns.apache.org/royale/html>" initComplete="initCompleteHandler(event)" xmlns:views="com.spacio.fm.client2.views.*" >
crux not injecting model in view
I intend to populate 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. Any ideas ? My code is implemented as follows LovBO public class LovBO { /** * The [Dispatcher] metadata tag instructs Crux to inject an event dispatcher. * Event's dispatched via this dispatcher can trigger event mediators. */ [Dispatcher] public var dispatcher : IEventDispatcher; [Inject( "lovService" )] public var lovService:RemoteObject; [Inject] public var serviceHelper:ServiceHelper; [Bindable] public var _lovs:Array; [Bindable] public var _lovs2:ArrayList; LovController public class LovController { [Inject] public var lovBO:LovBO; // [Bindable] public var genericLovs:ArrayList; public function LovController() { trace(' -- LovController -- '); } /** * [PostConstruct] methods are invoked after all dependencies are injected. * In this example, we set up a default user after the bean is created. */ [PostConstruct] public function fetchLovs() : void { trace(' -- [PostConstruct] fetch lovs country prefix -- '); //genericLovs = lovBO.lov2; lovBO.lov2; } Beans.xml The application.mxml http://ns.adobe.com/mxml/2009; xmlns:js="library://ns.apache.org/royale/basic" xmlns:j="library://ns.apache.org/royale/jewel" xmlns:crux="library://ns.apache.org/royale/crux" xmlns:config="com.spacio.fm.client2.config.*" xmlns:views="com.spacio.fm.client2.views.*" initialize="setUp;initApp(event);"> MainView.mxml ( I have attached the complete source for the MainView.xml. and the other classes) http://ns.adobe.com/mxml/2009; xmlns:j="library://ns.apache.org/royale/jewel" xmlns:js="library://ns.apache.org/royale/basic" xmlns:html="library://ns.apache.org/royale/html" initComplete="initCompleteHandler(event)" xmlns:views="com.spacio.fm.client2.views.*" >