java - messages.properties taken from db -



java - messages.properties taken from db -

possible duplicate: design question regarding java ee entity multiple language support

i'm working on i18n of jsf application. need standard jsf messages located in messages.properties taken database. there simple way it?

thanks.

i think found answer:

public class dbmessagesbundle extends resourcebundle { @override protected string handlegetobject(string key){ ... } @override public enumeration<string> getkeys() { ... } }

and in facesconfig.xml

<application> ... <message-bundle>mypackage.dbmessagesbundle</message-bundle> </application>

thank help.

java spring jsf internationalization

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -