icefaces中的数据寻呼机不是分页

时间:2011-09-10 09:35:00

标签: icefaces

我一直在尝试从ice:datatable中的csv文件填充数据。我正在尝试将数据表绑定到数据分页器以在每个页面上显示10行。但是当我单击其他页面编号的paginator时,它会遇到以下异常

java.lang.IllegalArgumentException:-10     在javax.faces.component.UIData.setFirst(UIData.java:275)     在com.icesoft.faces.component.datapaginator.DataPaginator.broadcast(DataPaginator.java:160)     在javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)     在javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)     在com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)     在com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)     在javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)     在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)     在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)     在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)     在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)     在org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)     在org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:602)     在org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:489)     在java.lang.Thread.run(未知来源)

添加我正在使用的内容。

<ice:dataTable id="csvDataTable" 
        value="#{fileControllerBean.rowModel}" 
                               rows="10">

<ice:columns value="#{fileControllerBean.columnModel}"
                                 var="headings">
                        <f:facet name="header">
                            <h:outputText value="#{headings}"></h:outputText>               
</f:facet>        
                                                <ice:outputText value="#{fileControllerBean.cellValue}">                        </ice:outputText>

</ice:columns>
                                                /ice:dataTable>

<ice-cc:dataPager forTable="csvDataTable"></ice-cc:dataPager>                        

1 个答案:

答案 0 :(得分:0)

很老的问题,但是当在页面更改时调用的任何setter中,dataTable模型发生更改时,例如调用clear()时,通常会发生此错误。