-
Bug
-
Resolution: Fixed
-
Normal
-
7.0.0, 6.5.5
-
Security Level: Jimmy
-
None
Copy and paste large value 100000000000000000000 in doublebox will show errors. But if you type the the number by hand it works fine.
More information on http://forum.zkoss.org/question/90258/pasting-into-a-doublebox/
Sample code to reproduce
<zk> <window border="normal" title="hello"> <doublebox format=",###.#" width="200px"> <attribute name="onChange"><![CDATA[ java.text.NumberFormat formatter = new java.text.DecimalFormat(",###.#"); Clients.showNotification("" + formatter.format(self.getValue()), "info", self, "end_center", 2000); ]]></attribute> </doublebox> </window> </zk>