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

Reset ListModel will cause an exception in ROD

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.9
    • Fix Version/s: 5.0.10
    • Component/s: Components
    • Labels:

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: