Hi Eelco,

Eelco Hillenius wrote:
> 
> InjectorHolder.getInjector().inject(this);
> 
> It is set by Wicket if you initialize it properly (by creating
> SpringComponentInjector).
> 

As it turns out in this case (see previous messages) it's not as easy as
this. The GuiceInjectorHolder that is created is stored in the metadata of
the application, and the only way to access it is something like:

((GuiceInjectorHolder) ((MyApplication)
MyApplication.get()).getMetaData(GuiceInjectorHolder.INJECTOR_KEY)).getInjector().injectMembers(this);

Is there an easier way?
-- 
View this message in context: 
http://www.nabble.com/Problem-with-Wicket-and-Guice-tp14787021p14839360.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]

Reply via email to