File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Doubts regarding <locale-config> tag in JSF. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Doubts regarding <locale-config> tag in JSF." Watch "Doubts regarding <locale-config> tag in JSF." New topic
Author

Doubts regarding <locale-config> tag in JSF.

Prabhat Gupta
Ranch Hand

Joined: Jan 22, 2008
Posts: 135
Hi All,
I am very much confused the way system choose the appropriate locale from faces-config.

Suppose for example i have a code

<locale-config>
<default-locale>en</default-locale>
<supported-locale>en_US</supported-locale>
<supported-locale>zh_CN</supported-locale>
</locale-config>

and three message file with appropriate name. I want to know the way by which the application decides appropriate locale .Does ordering of <supported-locale> play in role? Does the system local language or regional location affect anything?

Thanks in advance .

Regards,
Prabhat
 
Don't get me started about those stupid light bulbs.
 
subject: Doubts regarding <locale-config> tag in JSF.
 
Similar Threads
JSF 2 - Internationalization - Message Resources
JSF and internationalization
App runs properly on one computer only!
JSF 2.0 problem with customizing validation messages
How to work with t:tree component