title: Determine datetime pattern based on locale
body: <p>I have the following JSF code to display a date using a certain pattern.</p>
  
  <pre><code>&lt;f:convertDateTime pattern="E, d MMM, yyyy" timeZone="#{localeBean.timeZone}" /&gt;
  </code></pre>
  
  <p>I would like to pass the pattern to this via the localeBean also.
  Is there any way to determine the specific pattern based on the locale?</p>
  
  <pre><code>public LocaleBean() {
    this.defaultTimeZone = TimeZone.getDefault();
    this.strLocale = Locale.getDefault().toString();
    this.timeZone = defaultTimeZone.getDisplayName();
  }
  </code></pre>