Hello Michael, there is an application wide properties file which is accessable by every page and component within your application. It is located in WEB-INF/<AppName>.properties. <AppName> depends on the filter name you have chosen for the tapestry filter. As one usually does not change that, this would be per default WEB-INF/app.properties. If you have the same keys in app.properties and a specific Page.properties the value for the more specific page.properties is used. The app.properties feature is documented in a short paragraph (likely to be overread) on the following page of Tapestry 5 Manual (http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html)
Cheers, nillehammer ----- original Nachricht -------- Betreff: T5 property file for enum Gesendet: Do, 10. Apr 2008 Von: Michael Gerzabek<[EMAIL PROTECTED]> > Hi, > > I love the new enum support for automagic selects. Thanks for that Howard! > > I have shifted many constants to enums. The arising question is how to > prepare Messages to those enums in most convenient way. > > At the time I use one property file per Page. When I have an enum > display a select on that Page I customize labels for the distinct enum > values in that property file. Having the same enum on different Pages I > ran into the usual copy'n paste practice. > > Is there a way to customize labels for enums in only one file per locale > so that those properties get read whenever the enum is used on a Page? > > What are your best practices? > > Regards, > Michael > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- original Nachricht Ende ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]