0 Replies Latest reply on Aug 23, 2007 6:39 PM by Reind D

    Changing message bundles without redeploying.

    Reind D Newbie

      What would is a good approach for changing message bundles at runtime?

      I'd like something similar to the locale selector, but with the ability to switch to messages defined in arbitrarily named '.properties' files.

      So, I'd like to switch to a localized version of 'foo' or 'bar' without redeploying...

      foo.properties

      some.key=This is foo

      foo_fr.properties

      some.key=C'est trop foo


      bar.properties

      some.key=I am bar


      facelet xhtml

      #{message['some.key']}


      And, I'd like this change to only affect messages in Session scope.