title: JSF - outputFormat tries to parse argument to number
body: <p>Trying to use primefaces calendar with localization. I thought about adding the javascript properties array into the corresponding locale message properties file.</p>
  
  <p><a href="http://code.google.com/p/primefaces/wiki/PrimeFacesLocales" rel="nofollow">http://code.google.com/p/primefaces/wiki/PrimeFacesLocales</a></p>
  
  <pre><code>primefacesLocale=PrimeFaces.locales['de'] = \u007B closeText: 'Schlie\u00DFen', prevText: 'Zur\u00FCck', nextText: 'Weiter', {0} weekHeader: 'Woche', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: '', timeOnlyTitle: 'Nur Zeit', timeText: 'Zeit', hourText: 'Stunde', minuteText: 'Minute', secondText: 'Sekunde', currentText: 'Aktuelles Datum', ampm: false, month: 'Monat', week: 'Woche', day: 'Tag', allDayText: 'Ganzer Tag'\u007D;
  </code></pre>
  
  <p>Using it like:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      &lt;h:outputFormat value="#{msg.primefacesLocale}" escape="false"&gt;
          &lt;f:param value="test"/&gt;
      &lt;/h:outputFormat&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p><em>Month- and weekday names should be retrieved via el functions, <code>test</code> value is just for testing</em></p>
  
  <p>Results in: </p>
  
  <pre><code>java.lang.IllegalArgumentException: can't parse argument number:  closeText: 'Schließen'
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1420)
      at java.text.MessageFormat.applyPattern(MessageFormat.java:479)
      at java.text.MessageFormat.&lt;init&gt;(MessageFormat.java:381)
      at com.sun.faces.renderkit.html_basic.OutputMessageRenderer.encodeEnd(OutputMessageRenderer.java:113)
  </code></pre>
  
  <p>Whats wrong here?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Using: <code>&lt;h:outputText value="#{msg.primefacesLocale}" escape="false"&gt;</code> works fine.</p>