Hi, ComponentResources is not a service, its related to a Component. You can get the ComponentResources of a specific component by injecting the ComponentSource service and call the getComponentResources() on it
I remember a thread already exists on this, have a look on markmail. Christophe. 2010/11/23 Paul Stanton <p...@mapshed.com.au> > Hi all, > > I am writing a service I intend to inject into some pages and components: > > public MyPage > { > @Inject private MyService myService; > } > > I want MyServiceImpl to have access to ComponentResources > > public MyServiceImpl implements MyService > { > @Inject private ComponentResources componentResources; > } > > however this causes an exception: > > Caused by: java.lang.RuntimeException: No service implements the interface > org.apache.tapestry5.ComponentResources. > at > org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImpl.java:560) > at > org.apache.tapestry5.ioc.internal.ObjectLocatorImpl.getService(ObjectLocatorImpl.java:44) > at > org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl$1.invoke(MasterObjectProviderImpl.java:56) > at > org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68) > ... 123 more > > Obviously I'm missing some special plumbing in my AppModule. > > What is it? > > Thanks, Paul. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com