Re: use messages in a service

2008-01-28 Thread Paul Stanton
hmm. I think it's going to be easier to write a new service that handles messages and picks up the messages from the application level properties file. it's unfortunate that i can't get the tapestry service from hivemind, but I don't have a request and would prefer not to attach to an arbitra

Re: use messages in a service

2008-01-28 Thread Andreas Andreou
You need to inject ComponentMessagesSource which has provides a Messages getMessages(IComponent component) The problem is that you have to provide a component to that method, since that's how the correct resource bundle and also the correct locale (component.getPage().getLocale() is used ) is iden

Re: use messages in a service

2008-01-28 Thread Paul Stanton
anyone? Paul Stanton wrote: Hi All, I have a service which does not have access to the request cycle etc however I need to use the same messages used for the tapestry components, preferrably from the same Object/Service as the one available to pages. I've tried creating a setter method for t