Re: Does message catalog retrieval look at containing component/page catalogs?

2011-08-10 Thread Howard Lewis Ship
No, not containing components.  It checks the component, and works up
the *inheritance* of the component, then finally to the Global message
catalog.

On Wed, Aug 10, 2011 at 2:44 PM, robert baker  wrote:
> Hi all,
>
> When you supply a message key, does Tapestry 5.1 scan the catalogs of
> containing components and/or pages?
>
> For example, if Index.tml contained component Foobar, and Foobar.tml
> had a TextField with a t:id="xyzzy", would Index.properties get hit
> for "xyzzy-label" after Foobar.properties gets examined? It doesn't
> seem to (I know it looks at base class and the app catalogs).  I'm
> doing a one-off component and it seems clunky to have to make a new
> properties file just for one or two labels or error messages.
>
> I searched the mailing list and didn't seem to find anything discussing this.
>
> Thanks,
> Les Baker
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Does message catalog retrieval look at containing component/page catalogs?

2011-08-10 Thread robert baker
Hi all,

When you supply a message key, does Tapestry 5.1 scan the catalogs of
containing components and/or pages?

For example, if Index.tml contained component Foobar, and Foobar.tml
had a TextField with a t:id="xyzzy", would Index.properties get hit
for "xyzzy-label" after Foobar.properties gets examined? It doesn't
seem to (I know it looks at base class and the app catalogs).  I'm
doing a one-off component and it seems clunky to have to make a new
properties file just for one or two labels or error messages.

I searched the mailing list and didn't seem to find anything discussing this.

Thanks,
Les Baker

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