[jboss-user] [JBoss Seam] - Changing message bundles without redeploying.

reind do-not-reply at jboss.com
Thu Aug 23 18:39:39 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077570#4077570

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077570



More information about the jboss-user mailing list