Copy-paste large value in doublebox get error.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 7.0.1, 6.5.6
    • Affects Version/s: 7.0.0, 6.5.5
    • Component/s: Components
    • 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>
      

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

              Created:
              Updated:
              Resolved: