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

Copy-paste large value in doublebox get error.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.0, 6.5.5
    • Fix Version/s: 7.0.1, 6.5.6
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: