Re: T5: How to use context-param or init-param from web.xml in contributeApplicationDefaults?

2011-06-18 Thread Nillehammer
Hi Martin, sorry for late reply. I was busy the last two days. I have tried the solution you suggested and indeed it just works. That was realy easy! Not having found the solution myself after digging into the sources, I have to admit that I'm feeling a bit stupid now. Thanks a lot, for

T5: How to use context-param or init-param from web.xml in contributeApplicationDefaults?

2011-06-16 Thread Nillehammer
Hi List, I would like to replace the constant Strings in the method contributeApplicationDefaults in my AppModule. E.g. replace the following line: configuration.add(SymbolConstants.SUPPORTED_LOCALES, en,de); // don't like the en,de here. Would like to replace it. with something

Re: T5: How to use context-param or init-param from web.xml in contributeApplicationDefaults?

2011-06-16 Thread Lenny Primak
I use system properties. On Jun 16, 2011, at 6:28 PM, Nillehammer tapestry.nilleham...@winfonet.eu wrote: Hi List, I would like to replace the constant Strings in the method contributeApplicationDefaults in my AppModule. E.g. replace the following line:

Re: T5: How to use context-param or init-param from web.xml in contributeApplicationDefaults?

2011-06-16 Thread Nillehammer
Yeah, a possible way to go. But I'd like a more persistent solution hence the idea of using params in web.xml Am 17.06.2011 00:36, schrieb Lenny Primak: I use system properties. On Jun 16, 2011, at 6:28 PM, Nillehammertapestry.nilleham...@winfonet.eu wrote: Hi List, I would like to

Re: T5: How to use context-param or init-param from web.xml in contributeApplicationDefaults?

2011-06-16 Thread Martin Strand
ApplicationDefaults is only one of many SymbolProviders, you don't need to configure that specific SymbolProvider to set the supported locales. There are other options, including support for .properties files or system properties. I prefer context parameters myself, everything should just