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

share listmodelist cause un-predictable reload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.4
    • 6.5.3
    • Components
    • None

      1.when share a listmodel with listbox and grid.
      2.select any item of listbox will cause grid reload.

      <zk>
      	<window title="CHT1" border="normal" hflex="1" vflex="1">
      	<zscript><![CDATA[
      	    class Obj {
      	    	String str;
      	    	public Obj(String str){
      	    		this.str = str;
      	    	}
      	    	
      	    	public String toString(){
      	    		return str+"-"+new Date().getTime();
      	    	}
      	    }
      	                  
      		ListModelList model = new ListModelList();
      		model.add(new Obj("A"));
      		model.add(new Obj("B"));
      		model.add(new Obj("C"));
      	]]></zscript>
      		<listbox model="${model}" onSelect="//"></listbox>
      		<grid model="${model}"></grid>
      	</window>
      </zk>
      

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

              Created:
              Updated:
              Resolved: