Re: T5: accessing another page/component's message catalog

2008-04-25 Thread Adam Zimowski
Thanks Waldo! This solves my problem exactly how I needed to attack it. The little extra code doesn't bother me, it's just how it's done. I simply didn't know enough about Tapestry, specifically ComponentMessagesSource and ComponentSource interfaces! Thanks again, this rocks. On Thu, Apr 24, 2008

Re: T5: accessing another page/component's message catalog

2008-04-24 Thread Waldo Mendoza
Adam Zimowski gmail.com> writes: > > Is there a way to access message catalog of some page or component > from another page or component? I know of two ways to do this, but > both are "hacks" IMHO: > > class SomePage { > > @Inject > private Messages _messages; > > public getMessages() { > re

T5: accessing another page/component's message catalog

2008-04-24 Thread Adam Zimowski
Is there a way to access message catalog of some page or component from another page or component? I know of two ways to do this, but both are "hacks" IMHO: class SomePage { @Inject private Messages _messages; public getMessages() { return _messages; } } class Foo { @InjectPage private SomePa