class mysession {
@SpringBean private dao;

  public mysession(...) {
      super(...);
      InjectorHolder.getInjector().inject(this);
  }
}

-igor

On Wed, Mar 4, 2009 at 1:59 PM, CrocodileShoes
<markjohndo...@googlemail.com> wrote:
>
> Apologies if this is more of a Spring question than a Wicket question, I'm
> just not sure.
>
> Anyway, the problem.
>
> I have a custom session class which inherits form WebSession.  I've
> overridden the WebApplication's newSession() method in order to return a new
> instance of my custom session.  However I want my custom session to use a
> Springbean but because the Spring container didn't create the custom session
> object it can't inject the dependency.
>
> Does anybody know how to get around this or if it's possible.  It could be
> that my design is flawed ;D
> --
> View this message in context: 
> http://www.nabble.com/How-can-I-injecting-a-Springbean-into-a-custom-session.-tp22340379p22340379.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to