On Wed, 20 Aug 2008, Korbinian Bachl - privat wrote:
> is there a reason that SpringBean is not working automatically within 
> IDataProvider & LoadableDetachableModel (you'll need to call 
> InjectorHolder.getInjector().inject(this); explicitely)? If no I would 
> create a jira request for it.

Wicket is an unmanaged framework, so it doesn't create its
components and does not have a lot of magic tied to the 
lifecycle of its objects. However, unlike models, data 
providers and such, all components share a common super
class, Component. Thus it is possible to do all kinds of
magic in the component creation, because a Component 
constructor will always be executed.

@SpringBeans are handled by a component instatiation 
listener in the Component constructor. For non-Component
classes, a place for such hook does not exist by default.

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

Reply via email to