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

Update the data of the listbox with a timer and IE8 will cause javascript error

    XMLWordPrintable

    Details

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

      Description

      <zk>
      	<zscript><![CDATA[
      ListitemRenderer renderer = new ListitemRenderer(){
      
      	public void render(Listitem item, Object data) throws Exception {
      		item.appendChild(new Listcell("item"));
      		item.appendChild(new Listcell("item"));
      		item.appendChild(new Listcell("item"));
      		
      	}
      	
      };
      	]]></zscript>
      	<listbox height="500px" width="300px" id="lb" itemRenderer="${renderer}">
      	<custom-attributes org.zkoss.zul.listbox.rod="false"/>
      		<listhead>
      			<listheader label="col" forEach="1,1,1"/>
      		</listhead>
      	</listbox>
      	<timer repeats="true" running="true" delay="3000">
      		<attribute name="onTimer"><![CDATA[
      			List list = new ArrayList();
      			
      			for (int i = 0; i < 1000; i++)
      				list.add("item");
      			lb.setModel(new ListModelList(list));
      		]]></attribute>
      	</timer>
      </zk>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: