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:
parent
fc4c4ee6c6
commit
bbf1ffb27b
1 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue