3
我無法將數字顯示爲貨幣。javax.faces.convert.ConverterException:無法理解爲貨幣值
我使用的代碼是:
<h:outputText id="id_importo" value="33333,33">
<f:convertNumber type="currency" currencySymbol="€" locale="it_IT"/>
</h:outputText>
產生這個錯誤:
javax.faces.convert.ConverterException: id_importo: '33333,33' could not be understood as a currency value.
at javax.faces.convert.NumberConverter.getAsObject(NumberConverter.java:621)
at
....
Caused by: java.text.ParseException: Unparseable number: "33333,33"
at java.text.NumberFormat.parse(NumberFormat.java:344)
at javax.faces.convert.NumberConverter.getAsObject(NumberConverter.java:614)
... 63 more
我甚至沒有運氣試圖<h:outputText id="id_importo" value="33333,33">
。