the application object is the Application subclass. the instances retrieved are not bound to it.
-igor On Sat, Oct 2, 2010 at 8:01 PM, Arjun Dhar <dhar...@yahoo.com> wrote: > > I think there has been a huge ball of confusion here created on my part due > to certain concepts i was focused on. The reference to ThreadLocal > originated from here: > > https://cwiki.apache.org/WICKET/spring.html > "Application Object Approach" > ... Wicket allows you to provide a custom factory for creating this object, > the wicket-contrib-spring project provides such a factory > (SpringWebApplicationFactory) that, instead of creating an instance, pulls > it out of the spring application context. Wicket keeps the instance of the > application object in a threadlocal variable and provides various helper > methods in components to get to it, so it is easy to retrieve dependencies > in wicket components...." > > So the ApplicationObject is bound to the ThreadLocal and I think the Spring > Dependencies are bound to the Applicaiton Object, so I made a logical > connection there. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/instantiate-panels-in-a-spring-bean-tp2946859p2952889.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org