Not sure what you are doing but the following works fine for me in my AppModule:
public class AppModule { ... public static void contributeAliasOverrides ( Configuration<AliasContribution> aConfiguration, @Inject @Service("LabelService") LabelService aService) { .... } .. } In the example above, LabelSevice is a Spring service. /Serge MrclSchprs wrote: > > On Jan 26, 2008 6:34 PM, Fernando Padilla <[EMAIL PROTECTED]> wrote: > >> Within the AppModule you can try accessing the following services: >> >> 1) WebContextApplicationContext >> 2) RequestGlobals >> 3) @Inject @Service("beanName") >> >> > The third option does not work; Tapestry does only inject spring service > in > classes residing in 'pages' or 'components' packages. AppModule is in > 'services'. > > -- View this message in context: http://www.nabble.com/How-to-access-the-servlet-context-in-AppModule--tp15110070p15111202.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]