KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
faces-config.xml : <application> <locale-config> <default-locale>ru</default-locale> <supported-locale>ua</supported-locale> </locale-config> </application> In a bean action method, I'm changing the locale in the current view as follows: FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale("ua")); The problem is that ua Locale is applied, but only per request/view and not for session. Another request/view within the same session resets the locale back to default ru value. How can I apply the locale for session?
Tags (comma-separated)
Save Edits
Cancel