-
Bug
-
Resolution: Invalid
-
Normal
-
5.0.5
-
IE8
Summary
The user fill 10000 listitems in listbox, when browsing with IE8, the listbox can't render correctly.
This issue might be related to ZK-587
Reproducing Step
1. create a zul and a java class as user provided.
2. visit the zul with IE8 and click the button.
3. After the processing message displays, the error message described above shows.
From forum user zknewbie1's post ( http://www.zkoss.org/forum/listComment/17912 ):
Hi, I run the following test code on IE8. It takes a long time to run and finally raise the errors below. It runs fine on Chrome and Firefox. Any insight is greatly appreciated. Thanks.
1st Error message (Windows IE popup window):
Stop running this script? A Script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer might become unresponsive
2nd Error message (an orange javascript popup window):
Redraw Close Failed to process outer Object doesn't support this property or method
I then opened the detailed javascript error, and it says:
Object doesn't support this property or method zk.pwd Line: 24 Code: 0 Char: 11157 URI: http://<host>/<webapp>/zkau/web/d2a5aa1e/js/zk.wpd
ZUL file:
<?xml version="1.0" encoding="UTF-8"?> <zk xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://www.zkoss.org/2005/zul' xmlns:h='http://www.w3.org/1999/xhtml' xsi:schemaLocation='http://www.zkoss.org/2005/zul WEB-INF/xsd/zul.xsd' > <window id='testWin' use='GcmScLaunch.ControllerTestWin' border='normal' title='A Test Page'> <listbox id='testLstBox' mold="select" rows="1" onCreate='testWin.testLstBox_onCreate()' > </listbox> <button id='qryShowAllSalesGroupBtn' label='Show Replies' autodisable='self' style='width:18ex;' onClick='testWin.qryShowAllSalesGroupBtn_onClick()' /> </window> </zk>
Java file:
package GcmScLaunch; import java.sql.SQLException; import javax.servlet.ServletContext; import java.util.*; import java.io.*; import org.zkoss.zul.*; import org.zkoss.zk.ui.*; import org.zkoss.zk.ui.ext.*; import org.zkoss.zk.ui.event.*; import org.zkoss.zk.ui.util.*; /** Controller class for test.zul page */ public class ControllerTestWin extends Window { private Listbox getTestLstBox() { return ((Listbox) getFellow("testLstBox")); }//end method /** Controller constructor */ public ControllerTestWin() { }//end contructor public void testLstBox_onCreate() throws Exception { Listbox testLstBox = this.getTestLstBox(); (new Listitem("Hello World!!")).setParent(testLstBox); testLstBox.setSelectedIndex(0); }//end method public void qryShowAllSalesGroupBtn_onClick() throws Exception { Listbox testLstBox = this.getTestLstBox(); testLstBox.getChildren().clear(); testLstBox.invalidate(); String theItem = "Hi From World"; for(int i=0; i <= 10000; i++) { String item = theItem + String.valueOf(i); (new Listitem(item)).setParent(testLstBox); testLstBox.setSelectedIndex(0); }//end for }//end method }//end class