> -----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]