Try using InjectorHolder.getInjector().inject(this);
Mathias P.W Nilsson wrote: > > Hi! > > I have extended the SpringWebApplication and the init method looks like > > addComponentInstantiationListener(new SpringComponentInjector(this)); > > > I want to access my @SpringBean in the init method but it fails. How can I > do this? I need to cache > all users from a webservice in application startup. > > -- View this message in context: http://www.nabble.com/%40SpringBean-in-init-tp16548410p16552687.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]