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

Reset ListModel will cause an exception in ROD

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.10
    • 5.0.9
    • Components

      For example,

      <zk>
          <zscript><![CDATA[
      String[] data = new String[10];
      for (int i = 0; i < data.length; i++)
      	data[i] = "option " + i;
      
      
      ListModelList model = new ListModelList(data);
          ]]></zscript>
          Please click the button and you shouldn't see any exception
          <button label="clean model">
          	<attribute name="onClick">
          	
          	// reset model
          	listbox.setModel(null);
          	</attribute>
          </button>
          <listbox id="listbox" model="${model}" onSelect="">
          	<listhead><listheader label="column" sort="auto"/></listhead>
          </listbox>
          
      </zk>
      

            jumperchen jumperchen
            jumperchen jumperchen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: