From bbf1ffb27bda704977e5d982904596e38f67e372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacobo=20Aragunde=20P=C3=A9rez?= Date: Mon, 23 Jan 2012 16:43:56 +0100 Subject: [PATCH] Revert "[Bug #1273] Reimplement coerceToString as a workaround for the bug in Decimalbox." This reverts commit c27253af633a92c76c3276a2744bc3cae92a663b. The bug is fixed in ZK 5.0.10, so there's no need for this workaround. --- .../java/org/libreplan/web/common/LenientDecimalBox.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/common/LenientDecimalBox.java b/libreplan-webapp/src/main/java/org/libreplan/web/common/LenientDecimalBox.java index 1f9a8e0e9..6b3643dbd 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/common/LenientDecimalBox.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/common/LenientDecimalBox.java @@ -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 . 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 * @author Jacobo Aragunde Pérez @@ -42,8 +43,4 @@ public class LenientDecimalBox extends Decimalbox { super(value); } - protected String coerceToString(Object value) { - return formatNumber(value, null); - } - }