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]