Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2091

Copy-paste large value in doublebox get error.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.1, 6.5.6
    • 7.0.0, 6.5.5
    • Components
    • Security Level: Jimmy

      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>
      

            RaymondChao RaymondChao
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: