Re: SpringBean DataProvider / LoadableDetachableModels
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 OyURL: http://www.ri.fi/
SpringBean DataProvider / LoadableDetachableModels
Hi, 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. Best, Korbinian
Re: SpringBean DataProvider / LoadableDetachableModels
Wicket doesn't create those objects. You'd need an aspect for that. Why not inject the object that's creating the data provider or LDM and pass your reference into the constructor. On Wed, Aug 20, 2008 at 3:33 PM, Korbinian Bachl - privat [EMAIL PROTECTED] wrote: Hi, 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. Best, Korbinian