RE: Spring injecting beans into non-component classes

2008-02-21 Thread Bart Molenkamp
onkelijk bericht- > Van: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 20 februari 2008 23:02 > Aan: users@wicket.apache.org > Onderwerp: Re: Spring injecting beans into non-component classes > > why dont you use maven to manage your dependencies? from cursory

Re: Spring injecting beans into non-component classes

2008-02-20 Thread Igor Vaynberg
? > > > > -Original Message- > > From: Bart Molenkamp [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, February 19, 2008 10:52 PM > > To: users@wicket.apache.org > > Subject: RE: Spring injecting beans into non-component classes > > >

RE: Spring injecting beans into non-component classes

2008-02-20 Thread Warren
? > -Original Message- > From: Bart Molenkamp [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 19, 2008 10:52 PM > To: users@wicket.apache.org > Subject: RE: Spring injecting beans into non-component classes > > > public abstract class AbstractInjectableModel implements IModel

RE: Spring injecting beans into non-component classes

2008-02-19 Thread Bart Molenkamp
InjectorHolder.getInjector().inject(this); Nothing more. Bart. > -Oorspronkelijk bericht- > Van: Warren [mailto:[EMAIL PROTECTED] > Verzonden: dinsdag 19 februari 2008 18:16 > Aan: users@wicket.apache.org > Onderwerp: RE: Spring injecting beans into non-component classes >

RE: Spring injecting beans into non-component classes

2008-02-19 Thread Warren
t; To: users@wicket.apache.org > Subject: RE: Spring injecting beans into non-component classes > > > I created an AbstractInjectableModel for this. It does dependency > injection for models, the same way as in components. > > Would this be something for in the wick

Re: Spring injecting beans into non-component classes

2008-02-19 Thread Ryan Sonnek
ndency > > > > > injection for models, the same way as in components. > > > > > > > > > > Would this be something for in the wicket-spring-annot project? > > > > > > > > > > Bart. > > > > > > > > > > >

Re: Spring injecting beans into non-component classes

2008-02-19 Thread Igor Vaynberg
ction for models, the same way as in components. > > > > > > > > Would this be something for in the wicket-spring-annot project? > > > > > > > > Bart. > > > > > > > > > -Oorspronkelijk bericht- > > > > > V

Re: Spring injecting beans into non-component classes

2008-02-19 Thread Ryan Sonnek
thing for in the wicket-spring-annot project? > > > > > > Bart. > > > > > > > -Oorspronkelijk bericht- > > > > Van: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > > Verzonden: dinsdag 19 februari 2008 4:41 > > > >

Re: Spring injecting beans into non-component classes

2008-02-19 Thread Igor Vaynberg
-Oorspronkelijk bericht- > > > Van: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > Verzonden: dinsdag 19 februari 2008 4:41 > > > Aan: users@wicket.apache.org > > > Onderwerp: Re: Spring injecting beans into non-component classes > > > > > >

Re: Spring injecting beans into non-component classes

2008-02-19 Thread Ryan Sonnek
s. > > Would this be something for in the wicket-spring-annot project? > > Bart. > > > -Oorspronkelijk bericht- > > Van: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > Verzonden: dinsdag 19 februari 2008 4:41 > > Aan: users@wicket.apache.org > >

RE: Spring injecting beans into non-component classes

2008-02-19 Thread Bart Molenkamp
insdag 19 februari 2008 4:41 > Aan: users@wicket.apache.org > Onderwerp: Re: Spring injecting beans into non-component classes > > add this to the constructor of the class you want injected: > InjectorHolder.getInjector().inject(this); > > -igor > > > On Feb 18, 2008 7:

Re: Spring injecting beans into non-component classes

2008-02-18 Thread Igor Vaynberg
add this to the constructor of the class you want injected: InjectorHolder.getInjector().inject(this); -igor On Feb 18, 2008 7:37 PM, Warren <[EMAIL PROTECTED]> wrote: > I am using Spring to manage my Services and DAOs. Is there a special Wicket > way of injecting my beans into non component cla

Spring injecting beans into non-component classes

2008-02-18 Thread Warren
I am using Spring to manage my Services and DAOs. Is there a special Wicket way of injecting my beans into non component classes? I've seen the example in Kent Ka Iok Tong's book of extending SpringWebApplication: public class MyApp extends SpringWebApplication { ... @Override protected void init(