This is similar to how i do it. My application is a spring bean that gets injected by spring on creation and is then used as a service locator. I am simply questioning the automatic injection into pages, does it really make sense if it only takes you half way there. If in my panel i need to do a ((MyPage)getPage()).getService() then i might as well do ((MyApp)getApplication).getService().
 
-Igor
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Heudecker
Sent: Wednesday, October 26, 2005 10:56 AM
To: [email protected]
Subject: Re: [Wicket-user] My take on Spring integration

My Application class has access to the bean factory.  If a Panel or a Link needs something, I just get it from there.  This might not be the best way to do it within Wicket, but ignorance is bliss. 


On 10/26/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
So where does the automatic injection stop? What if I have a panel that
needs a reference to a service? Or a subclass of a component?

-Igor


Reply via email to