My abstract basewebmodel constructor from which all my webmodels inherit
marks inself for Spring injection but still no injection takes place. Any
suggestions where I can look?
Can I run the injection in the constructor of an abstract model from which I
inherit all my webmodels? I cannot see why
Did you add the listener to your spring context ?
bean id=wicketInstantiationListener
class=org.apache.wicket.injection.ComponentInjector/
On 12 sep 2009, at 11:53, pieter claassen wrote:
My abstract basewebmodel constructor from which all my webmodels
inherit
marks inself for Spring
Pieter,
... if you're not injecting into components anywhere in your application you
naturally should be able to skip registering the
ComponentInstatiationListener.
Regards - Cemal
jWeekend
OO Java Technologies, Wicket Training and Development
http://jWeekend.com
jWeekend wrote:
Pieter,
Pieter,
If you want to use Spring's @Configuarble you'll need to enable Load Time
Weaving or Complie Time Weaving.
To use @SpringBean with an object that is not a Wicket Component you need to
InjectorHolder.getInjector().inject(this) on initialisation of your object.
The benefit of the latter