Hi,
Sounds like you tried using @Inject and friends to inject the services?
This won't work.* You'll need to use constructor injection instead:
public class ServiceImpl implements Service {
private final AnotherService anotherService;
public ServiceImpl(AnotherService anotherService) {
this.anotherService = anotherService;
}
}
* Except in the unreleased Tapestry 5.0.16, where this has been added.
See https://issues.apache.org/jira/browse/TAP5-231 for more information.
-Filip
On 2008-10-04 23:11, Eric Ma wrote:
Thanks for your reply. Actually, I found I cannot inject anything into
RequestFilter, not even Logger or any of my custom services. Looks like
injection can only happen to components and pages.
Eric
kranga wrote:
ApplicationGlobals cannot be injected into RequestFilter. Inject
RequestGlobals into it instead or inject ApplicationStateManager (?) into
it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]