but how should panel then be managed.. Because if I create the panel myself in the page it won't work right? Can I ask wicket to instansiate my panel?
2010/9/23 Martin Grigorov <[email protected]>: > Panel is a Component, so you can use @Inject on the Panel members. > Use Injector.get().inject(target) only in non Component classes. > > P.S. The API above is for 1.5. > > On Thu, Sep 23, 2010 at 11:03 AM, Martin Makundi < > [email protected]> wrote: > >> You must weigh benefits and cons about whereto manage your IOC. >> >> ** >> Martin >> >> 2010/9/23 nino martinez wael <[email protected]>: >> > I need to be able to inject a service into my panel.. >> > >> > Should I then just use: >> > >> > org.apache.wicket.injection.Injector.get().inject(Object object). >> > >> > or are there are prettier way? I feel that calling >> > org.apache.wicket.injection.Injector.get().inject(Object object) >> > inside my panels sort of violates the IOC principle? >> > >> > 2010/9/23 Martin Makundi <[email protected]>: >> >> What is your need exactly? >> >> >> >> ** >> >> Martin >> >> >> >> 2010/9/23 nino martinez wael <[email protected]>: >> >>> Hi >> >>> >> >>> what should I do if I want to use IOC in my panels? In short I need a >> >>> sort of a provider injected into a panel, what's the prettiest way to >> >>> do it? >> >>> >> >>> regards Nino >> >>> >> >>> --------------------------------------------------------------------- >> >>> To unsubscribe, e-mail: [email protected] >> >>> For additional commands, e-mail: [email protected] >> >>> >> >>> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
