-
Bug
-
Resolution: Fixed
-
Normal
-
6.0.1
-
None
-
None
NumberInputElement.java
protected String formatNumber(Object value, String defaultFormat) { if (value == null) return ""; final DecimalFormat df = (DecimalFormat) NumberFormat.getInstance(getDefaultLocale()); if (_rounding != BigDecimal.ROUND_HALF_EVEN) df.setRoundingMode(RoundingMode.valueOf(_rounding)); String fmt = getFormat(); if (fmt == null) fmt = defaultFormat; if (fmt != null) df.applyPattern(fmt); //should replace if (fmt != null) df.applyLocalizedPattern(); return df.format(value); }
Test Case :
test.zul
<decimalbox value="1111.112" locale="pt" format="#.##0,0##" />
reference : http://www.zkoss.org/forum/listComment/19974