Microsoft
Software
Hardware
Network
Question : overriding jsf default message resources mechanism
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/ap
i/java/uti
l/
Resource
Bundle.Con
trol.html
http://blogs.sun.com/norbe
rt/entry/
m
ore_contro
l_over_res
ourcebundl
e
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.
Answer : overriding jsf default message resources mechanism
It's very well explained here:
http://java.sun.com/docs/b
ooks/tutor
ial/i18n/r
esbundle/
c
oncept.htm
l
http://www.laliluna.de/art
icles/java
server-fac
es-message
-
resource-
bundle-tut
orial.html
ResourceBundle myResources = ResourceBundle.getBundle("
MyResource
s", currentLocale);
http://java.sun.com/j2se/1
.4.2/docs/
api/java/u
til/
Resour
ceBundle.h
tml
Random Solutions
SQL dump tran with no_log
Access to windows server remotely
outlook 2007 keeps faulting in module msoert2.dll
How do I create an MS-DOS startup disk in XP
Lables printing problem using MS Word
Transparent Form (Only) in C#
Reformat: Upgraded Windows 7 from Upgraded Windows Vista
What new does WPF 4.0 offer?
Create Excel 2007 Spreadsheet with Php
replace value and reference in multiple tables