Revert "[Bug #1273] Reimplement coerceToString as a workaround for the bug in Decimalbox."

This reverts commit c27253af63.
The bug is fixed in ZK 5.0.10, so there's no need for this workaround.
This commit is contained in:
Jacobo Aragunde Pérez 2012-01-23 16:43:56 +01:00
parent 953a559c1f
commit e064844a06

View file

@ -19,14 +19,15 @@
package org.libreplan.web.common;
import java.math.BigDecimal;
import java.text.DecimalFormatSymbols;
import org.zkoss.util.Locales;
import org.zkoss.zk.ui.WrongValueException;
import org.zkoss.zul.Decimalbox;
/**
* Same behavior as a {@link Decimalbox}, but it always interprets <b>.</b> as
* decimal separator, even when the locale uses a different separator.
* We also reimplement coerceToString to workaround the bug
* http://tracker.zkoss.org/browse/ZK-629.
*
* @author Óscar González Fernández <ogonzalez@igalia.com>
* @author Jacobo Aragunde Pérez <jaragunde@igalia.com>
@ -42,8 +43,4 @@ public class LenientDecimalBox extends Decimalbox {
super(value);
}
protected String coerceToString(Object value) {
return formatNumber(value, null);
}
}