or use salve.googlecode.com and live headache-free :) -igor
On Wed, Oct 15, 2008 at 4:53 PM, Jeremy Thomerson <[EMAIL PROTECTED] > wrote: > Try adding a constructor and putting this line in it: > > *InjectorHolder*.*getInjector*().*inject*(*this*); > > Works with Spring - haven't used Guice personally. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > On Wed, Oct 15, 2008 at 6:42 PM, Edgar Merino <[EMAIL PROTECTED]> wrote: > > > Hello again, > > > > using guice's @Inject inside any component works perfect, however I've > > got some objects (not components) that reside inside a component and need > an > > injected service, since wicket-guice handles only injection inside > > components, I'm getting null services: > > > > public class Instantiator { > > @Inject Service service; > > > > public Panel getPanel(String id) { > > Author author = service.findAuthor("me"); > > return new SomePanel(id, author); > > } > > } > > > > > > I need to fetch the "Author" outside the panel, the panel is not able to > > fetch it. One approach might be to get the service from the Application, > but > > I do not want to do this since I don't want the application to know about > my > > Instantiator class, is there a better approach to accomplish what I need? > > thanks in advance. > > > > Edgar Merino > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >