This content has been marked as final.
Show 1 reply
-
1. Re: Locale is lost after exception in Renderer.render()
tamas.tamas.blummers.hu Aug 21, 2009 12:06 PM (in response to vladimir.kovalyuk)Following solved for me a similar problem: Sending e-mail using the injected renderer always used the default language of the application.
It seems to me localeSelector should set application locale by default.
Tamás
@In FacesContext facesContext; @In LocaleSelector localeSelector; .... javax.faces.context.FacesContext f = (javax.faces.context.FacesContext)facesContext; f.getApplication ().setDefaultLocale (localeSelector.getLocale ());