code: @JSFProperty
      public Locale getLocale()
      {
          Object locale = getStateHelper().get(PropertyKeys.locale);
          if (locale != null)
          {
              return (Locale)locale;
          }
          ValueExpression expression = getValueExpression(PropertyKeys.locale.toString());
          if (expression != null)
          {
              Object veLocale = expression.getValue(getFacesContext().getELContext());
              if (veLocale instanceof Locale)
              {
                  return (Locale) veLocale;
              }
              else
              {
                  return (Locale) _LocaleUtils.toLocale(veLocale.toString());
              }
          }
          else
          {
              locale = getFacesContext().getApplication().getViewHandler().calculateLocale(getFacesContext());
  
              if (locale instanceof Locale)
              {
                  return (Locale)locale;
              }
              else if (locale instanceof String)
              {
                  return _LocaleUtils.toLocale((String)locale);
              }
          }
  
          return getFacesContext().getApplication().getViewHandler().calculateLocale(getFacesContext());
      }
docs: The locale for this view.
  <p>
  Defaults to the default locale specified in the faces configuration file.
  </p>