Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

overriding jsf default message resources mechanism  RSS feed

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,
I would like to use the custom XML file for loading the internalization messages instead of message resource property file key value entries for implementing internalization for my website to support current 10 languages and to support future new language entries by keeping 99.999% uptime without bouncing the server and to support few other database internal requirements. I found couple of similar useful links for my approach like
http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.Control.html

http://blogs.sun.com/norbert/entry/more_control_over_resourcebundle

I would like to know how to override JSF default message resources implementation mechanism (faces.config calling the messages.properties) so that from my UI when I call say the key(Msg.Label_Current) corresponding language value must appear in the browser based on browser locale setting from XML file instead of loading from default message.properties file.

Any links, resources, suggestions, sample code highly appreciated. Thanks in advance.
overriding jsf default message resources mechanism
 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found one good example in similar lines..
http://www.java2s.com/Code/Java/JDK-6/XMLresourcebundle.htm
still figuring out how can i plugin and use it.Please advise
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!