title: How to propagate a JSF locale to other layers in the application
body: <p>In Java Server Faces, we normally get the locale of the current request with the <code>UIViewRoot.getLocale()</code> method, which would normally return the locale set in the browser. In a layered application, how can I read the same locale in other layers, where there's no access to the JSF objects? It seems that <code>Locale.getDefault()</code> is not suitable, because it returns a JVM-wide default locale. I need the context locale, set only by the current request from the browser. I assume it needs to have some kind of thread-affinity, like with .NET's <code>Thread.CurrentCulture</code> property.</p>