Re: How to use ContextResourceSymbolProvider

2011-07-25 Thread Erik Fäßler
Hi again, thank you all for your kind advice! My responses follow: @Josh: This "lazy" approach didn't work for me anyhow. I got just the same NPEs. This really is kind of non-deterministic as it sometimes would work and sometimes it wouldn't. I mean the whole access-the-servlet-context-while-

Re: How to use ContextResourceSymbolProvider

2011-07-21 Thread Михаил Слободянюк
Hi! I simply use this code for it: public static void contributeApplicationDefaults( MappedConfiguration configuration) { ResourceBundle bundle = ResourceBundle.getBundle("Cpu"); Enumeration e = bundle.getKeys(); while (e.hasMoreElements()) {

Re: How to use ContextResourceSymbolProvider

2011-07-21 Thread Josh Canfield
You can also set them from the command line: -Dtapestry.production-mode=false which is mostly how I choose to do it... On Thu, Jul 21, 2011 at 11:35 AM, Mark wrote: > On Thu, Jul 21, 2011 at 10:27 AM, Erik Fäßler > wrote: >> Goal: Being able to configure my WebApp from >> file rather than bei

Re: How to use ContextResourceSymbolProvider

2011-07-21 Thread Mark
On Thu, Jul 21, 2011 at 10:27 AM, Erik Fäßler wrote: > Goal: Being able to configure my WebApp from > file rather than being forced to edit the code every time I change > deployment (from test to productive for instance; You probably already know this, but you can set these from web.xml with some

Re: How to use ContextResourceSymbolProvider

2011-07-21 Thread Josh Canfield
t;SemedicoToolsSymbols", new > ContextResourceSymbolProvider(applicationGlobals.getContext(), > "configuration.properties"), "before:ApplicationDefaults"); >    } > > but this does not work as described above: At this point of application > startup, the co

How to use ContextResourceSymbolProvider

2011-07-21 Thread Erik Fäßler
medicoToolsSymbols", new ContextResourceSymbolProvider(applicationGlobals.getContext(), "configuration.properties"), "before:ApplicationDefaults"); } but this does not work as described above: At this point of application startup, the context (gotten by applicationGlobals