On Wed, Aug 11, 2010 at 4:23 PM, Jakob Korherr <[email protected]> wrote: > Hi guys, > > Talking to some users of MyFaces, we found out that it would be really nice > to be able to have web.xml-settings depending on the current project stage. > For example you want to have different error pages for Development and > Production. > > Imagine there is the config parameter org.apache.myfaces.MY_PARAM. Now you > want to use 3 different values for this parameter, depending on the project > stage. So you can set org.apache.myfaces.MY_PARAM.DEVELOPMENT for the > development value, org.apache.myfaces.MY_PARAM.PRODUCTION for the production > value and org.apache.myfaces.MY_PARAM for the default value (all other > stages).
I kinda like this fluent extension proposal. > > To accomplish this we could introduce a web.xml-settings manager, which > handles this lookup. With the help of this manager we could get rid of the > usual "lookup" via ExternalContext and use the manager instead. good idea. I hate the fact that you see over and over again the same calls. A unified "manager" that does that for you; and you just give it the param would be nice. > > What do you think? > > Regards, > Jakob > > -- > Jakob Korherr > > blog: http://www.jakobk.com > twitter: http://twitter.com/jakobkorherr > work: http://www.irian.at > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
