This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes setLocale on UIViewRoot Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "setLocale on UIViewRoot" Watch "setLocale on UIViewRoot" New topic
Author

setLocale on UIViewRoot

Ronald Johnson
Greenhorn

Joined: Jan 15, 2007
Posts: 18
hi, i want the user to be able to change the langue of the website.
as default whatever the user defines in his browser should be used (if we support it).

I have read that to override the browser language, i could call setLocale on UIViewRoot.
How can I do this, I assume this is something that has to be set for each web page. How can that be done?

Any pointer would be very helpful!

cheers!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: setLocale on UIViewRoot
 
Similar Threads
JSF lifecycle concept
Accessing the JSF UIViewRoot from a servlet filter??
Changing the language permanently for a user
Override request headers
setLocale();