Re: InjectorHolder has not been assigned an injector error
I'm guessing that the call to newConverterLocater happens before Spring injection. Yeah. Too bad, maybe in hind sight it would have been better to create it lazily. Any ideas on how to fix this? I think just creating the SpringComponentInjector in your webapp's constructor instead of in the init method should do the trick. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: InjectorHolder has not been assigned an injector error
-Original Message- From: Eelco Hillenius [mailto:[EMAIL PROTECTED] Sent: Sunday, January 13, 2008 12:11 PM To: users@wicket.apache.org Subject: Re: InjectorHolder has not been assigned an injector error I'm guessing that the call to newConverterLocater happens before Spring injection. Yeah. Too bad, maybe in hind sight it would have been better to create it lazily. Any ideas on how to fix this? I think just creating the SpringComponentInjector in your webapp's constructor instead of in the init method should do the trick. Tried putting addComponentInstantiationListener( new SpringComponentInjector(this ); into the constructor of Application which extends AuthentationWebApplication... but I now get the following error. java.lang.IllegalStateException: servletContext is not set yet. Any code in your Application object that uses the wicket filter instance should be put in the init() method instead of your constructor Thanks for the suggestion anyhow. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InjectorHolder has not been assigned an injector error
Tried putting addComponentInstantiationListener( new SpringComponentInjector(this ); into the constructor of Application which extends AuthentationWebApplication... but I now get the following error. java.lang.IllegalStateException: servletContext is not set yet. Any code in your Application object that uses the wicket filter instance should be put in the init() method instead of your constructor That sucks. How about - big hack - doing it in your newConverterLocater method, just before you create the locator? That should definitively work, though it's a bit nasty :-) Could you please open a JIRA issue for this? We should probably create the converterLocator and possibly the session store lazily instead of in Application#internalInit. Cheers, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: InjectorHolder has not been assigned an injector error
Tried putting addComponentInstantiationListener( new SpringComponentInjector(this ); into the constructor of Application which extends AuthentationWebApplication... but I now get the following error. java.lang.IllegalStateException: servletContext is not set yet. Any code in your Application object that uses the wicket filter instance should be put in the init() method instead of your constructor That sucks. How about - big hack - doing it in your newConverterLocater method, just before you create the locator? That should definitively work, though it's a bit nasty :-) Yes that worked. Now I'm onto other upgrading issues :) Could you please open a JIRA issue for this? We should probably create the converterLocator and possibly the session store lazily instead of in Application#internalInit. Sure. Cheers, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]