code: public void setLocale(Locale locale) {
  
          getStateHelper().put(PropertyKeys.locale, locale);
          // Make sure to appraise the EL of this switch in Locale.
          FacesContext.getCurrentInstance().getELContext().setLocale(locale);
  
      }
docs: <p>Set the <code>Locale</code> to be used in localizing the
  response being created for this view. </p>
  
  @param locale The new localization Locale