-
Bug
-
Resolution: Fixed
-
Normal
-
5.0.10
-
None
-
None
Test Case:
<vlayout> <html>Copy "1e2" and paste it to the following box, and then press TAB. An error message shall be shown</html> <zscript><![CDATA[ public class MyConstraint extends SimpleConstraint implements CustomConstraint { public MyConstraint(int flags) { super(flags); } public void showCustomError(Component comp, WrongValueException ex) { comp.getFellow("err").setValue(ex != null ? ex.getMessage(): ""); } } MyConstraint cs1 = new MyConstraint(0); MyConstraint nes = new MyConstraint(MyConstraint.NO_NEGATIVE); ]]></zscript> <decimalbox format="#.##" width="150px" constraint="${cs1}"/> <label id="err"/> </vlayout>