Hi again :) I noticed, that apparently the whole session will be invalidated, because some other attributes will be lost, too.
Is there any "parameter" or something else to disable this behaviour? Regards, Alf ----- original Nachricht -------- Betreff: [Tobago] Locale changed when handling exceptions Gesendet: Mi, 20. Jan 2010 Von: Alf Felis<alf.fe...@gmx.de> > Hi all, > > I have a problem with the locale and the error handling. > > My application provides the possibility to choose the preferred language. > I set the selected locale with the following code > > FacesContext.getCurrentInstance().getViewRoot().setLocale(selectedLocale); > > Everything works fine until the error page is called. > For any exception I use one error page set within the web.xml. > > <error-page> > <exception-type>java.lang.Throwable</exception-type> > <location>/faces/ErrorPage.jsp</location> > </error-page> > > If now an error occurred the locale set by my code above will be overridden > and set to the browser locale. > > How can I avoid this? > > Best regards, > > Alf > --- original Nachricht Ende ---- -- Hilfe für Haiti! Spende per SMS: Sende UI HAITI an die Nummer 81190. Von 5 Euro je SMS (zzgl. SMS-Gebühr) gehen 4,83 Euro an UNICEF.