You can write a Property File based symbol provider implementation (or that is what I did). Mine just takes an array of strings (which are properties files on the class path) and loads them into a map. Then your imp los SymbolProvider.valueForSymbol(String) is just yourSymbolMap.get(String). To keep it all Tapestry 5esque I call .toLowerCase() on all my keys before I put them in the map and toLowerCase() on the symbol I am looking up.
Cheers Russell -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Neeme Praks Sent: 18 September 2008 08:47 To: users@tapestry.apache.org Subject: [T5] loading tapestry configuration from properties file? Hi, I know Tapestry5 really pushes the convention-over-configuration approach, but lets face it - in every non-trivial application you eventually need to configure stuff. If not directly tapestry-related properties, then at least your application. By default, Tapestry seems to suggest that everybody should start using web.xml for all such configuration purposes. At least that's the impression that I get when looking at http://tapestry.apache.org/tapestry5/guide/conf.html. However, I don't particularly like the overly-verbose web.xml style of configuring plain-simple properties - I'd rather use (the much more concise) properties file syntax for that. Is it possible to tell to Tapestry: "please load all properties from WEB-INF/myapp.properties"? If not, can someone give some pointers on how to implement it? (it would also be a welcome "out-of-the-box" addition to Tapestry5) Rgds, Neeme --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]