FacesContext#getViewRoot() returns null while setting <f:view locale> for first time
问题 I am trying to change my JSF application locale in one page and that has to change all my pages locale. I have followed this link, and it works well Localization in JSF, how to remember selected locale per session instead of per request/view If I run the application I can change the locale in my index.xhtml and that locale is set per session, so if then I go to page index_1.xhtml I will see the locale changed. My problem is that when I run the application and I write the URL: http://localhost