On Mon, 29 Aug 2011 20:53:00 -0300, Paul Stanton <p...@mapshed.com.au> wrote:

just injecting messages didn't work when i tried it.

Caused by: java.lang.RuntimeException: No service implements the interface org.apache.tapestry5.ioc.Messages.
Maybe a 'service' isn't what I'm after,

Messages isn't a service. It's injection is specially handled for components, pages and mixins only. This is implemented in CommonResourcesInjectionProvider, if you want to check the source. :) It just delegates to the getMessages() method of ComponentResources.

but there MUST be a way to do this. Similar to how ComponentResources is configured.

Just like ComponentResources: only injectable in the object (component, page or mixin) itself. In your component (or page or mixin class)

@Inject
private Messages messages;

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to