I used LazyLoading of DataTable to develop WebApplication on Primefaces 2.2.1
but when i click the pagiator to select "1000" in order to display 1000 records in a page,
The IE error dialog is showed.message is "A script on this page is causing Internet Explorer to run slowly....".
and it spent 100 seconds to display search results.
The search of The Application layer is spent 5 seconds.
That's why IE error message be showed.
The sample code is follow:
Code: Select all
<h:form id="form">
<p:dataTable var="car" value="#{tableBean.lazyModel}" paginator="true" rows="10"
paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
rowsPerPageTemplate="10,100,1000," selectionMode="single" selection="#{tableBean.selectedCar}" id="carTable">
<p:ajax event="rowSelect" listener="#{tableBean.onRowSelect}" update=":form:display" oncomplete="carDialog.show()" />
<p:column headerText="Model" sortBy="#{car.model}" filterBy="#{car.model}">
<h:outputText value="#{car.model}" />
</p:column>
<p:column headerText="button1" >
<p:commandButton image="ui-icon-update" value="update" title="update"/>
</p:column>
<p:column headerText="button2" >
<p:commandButton image="ui-icon-minus" value="leave" title="leave"/>
</p:column>
</p:dataTable>
</h:form>
The message "A script on this page is causing Internet Explorer to run slowly...." is never showed any more.
and it spent 7 seconds to show search results.
Question:
1.Why CommandButton can't.
2.Somebody else have better solution.
Please help me.
kaku