Edwin Ansicodd <mailto:[email protected]> wrote: > Thank you Kai for your post!! > >> 2) Install a SpringComponentInjector in your application, e.g. >> class MyApplication extends WebApplication { >> public void init() { >> super.init(); >> addComponentInstantiationListener(new >> SpringComponentInjector(this)); >> } >> } > > Yes, also did this: > > public class JPSApplication extends SpringWebApplication implements > IUnauthorizedComponentInstantiationListener{ > > @SpringBean private LookupTableDAO ltDAO; > > public void init(){ > super.init(); > > addComponentInstantiationListener(new > SpringComponentInjector(this)); //for the SpringBean > InjectorHolder.getInjector().inject(this);
You do not need the last line here. Adding the SpringComponentInjector is sufficient. AFAIK the InjectorHolder is needed within classes, which do not extend a wicket component. Cheers, Kai --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
