how to setup the @SpringBean for the WebSession?

2009-04-18 Thread Khlystov Alexandr
Hi all! Qustion: how to setup the @SpringBean for the WebSession? I am folowing this guide: http://cwiki.apache.org/WICKET/spring.html#spring-us...@springbeanbeyondwicket I have defined a simple bean: ... bean name=navigationManager

Re: how to setup the @SpringBean for the WebSession?

2009-04-18 Thread Cristi Manole
Hello, Can you try adding this to the WebSession constructor (or before actually using the bean) : InjectorHolder.getInjector().inject(this); I don't know if this is the usual way of doing things, but it works for me. Cristi Manole On Sat, Apr 18, 2009 at 11:28 AM, Khlystov Alexandr

Re: how to setup the @SpringBean for the WebSession?

2009-04-18 Thread Khlystov Alexandr
Thanks Cristi! It works, and also I've found that it is usual way seeing the javadoc for : SpringComponentInjector Cristi Manole пишет: Hello, Can you try adding this to the WebSession constructor (or before actually using the bean) : InjectorHolder.getInjector().inject(this); I don't