@SpringBean not working for IModel implementations?

2010-06-29 Thread David Meulemans
Hi I've got an implementation of the IModel interface and I want to inject a Spring bean in it. In the method public String getObject(); this object is null. Is it impossible to inject Spring beans with @SpringBean? thx in advance! David

Re: @SpringBean not working for IModel implementations?

2010-06-29 Thread James Carman
Try using InjectorHolder.getInjector().inject(this); inside your model implementation's constructor. On Tue, Jun 29, 2010 at 9:30 AM, David Meulemans meulemans.da...@gmail.com wrote: Hi I've got an implementation of the IModel interface and I want to inject a Spring bean in it. In the

Re: @SpringBean not working for IModel implementations?

2010-06-29 Thread Ernesto Reinaldo Barreiro
I think component instantiation listener will only scan wicket components. Just try InjectorHolder.getInjector().inject(this); on constructor of the model to get your dependencies injected. Best, Ernesto On Tue, Jun 29, 2010 at 3:30 PM, David Meulemans meulemans.da...@gmail.com wrote: Hi

Re: @SpringBean not working for IModel implementations?

2010-06-29 Thread david_
?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringBean-not-working-for-IModel-implementations-tp2272189p2272642.html Sent from the Wicket - User mailing list archive at Nabble.com.