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
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
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