Returns an appropriate {@link Locale} to use for this andsubsequent requests for the current client.
context
null
246247248249250251252253254255256
uiViewRoot.setLocale(currentLocale); } else { // calculate locale uiViewRoot.setLocale(applicationViewHandler.calculateLocale(facesContext)); } if (currentRenderKitId != null) { // set old renderKit
5960616263646566676869
{ // If not, this method must call calculateLocale() and calculateRenderKitId(), and store the results // as the values of the locale and renderKitId, proeprties, respectively, of the newly created // UIViewRoot. ViewHandler handler = application.getViewHandler(); newViewRoot.setLocale(handler.calculateLocale(context)); newViewRoot.setRenderKitId(handler.calculateRenderKitId(context)); } else { // If there is an existing UIViewRoot available on the FacesContext, this method must copy its locale