icefaces


Data pager in icefaces not paging


I have been trying to populate data from a csv file in ice:datatable. I am trying to bind the datatable to a data paginator to display 10 rows on each page.But when I click on other page numbers of paginator,it encounters the following exception
java.lang.IllegalArgumentException: -10
at javax.faces.component.UIData.setFirst(UIData.java:275)
at com.icesoft.faces.component.datapaginator.DataPaginator.broadcast(DataPaginator.java:160)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Adding the that I am using.
<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>
Very old question, but this error usually happens when in any of the setters called when the page is changed, the dataTable model changes, for example if a clear() is called.

Related Links

How to configure rime style in ICEfaces 3
scrolling changes the size of the ice datatable headers
How to get values in dropdown list from database in icefaces?
Data pager in icefaces not paging
use sbt for generate a webapp with icefaces
Cancel button Icefaces with immediate=true
how to redirect to j_security_check in the managed bean?
How do I disable a column using icefaces?
icefaces menu bar handling
ui:repeatn tag inside ui:repeat..not working
<ice:outputMedia> and <ui:repeat>
HOW TO HIDE/IGNORE ?RVN in Icefaces
Two ICEfaces panel positioned interacting
java.lang.ClassNotFoundException: com.icesoft.faces.util.event.servlet.ContextEventRepeater
how to push component state changes to multiple different pages using icefaces
How can Websphere PUMA SPI (PumaLocator) be used with an ICEfaces Portlet?

Categories

HOME
jdbc
google-cloud-bigtable
elixir
dynamics-crm
oauth
sed
performancecounter
json-ld
spring-cloud-contract
slim-3
dropbear
ipfs
window
hashicorp-vault
automata
local
maxima
pdo
lenskit
medium-editor
google-openid
anychart
scalajs-react
onesignal
image-quality
fileinfo
thinking-sphinx
forum
dd-wrt
pygooglechart
getline
geo
geopy
division
node-horseman
declare
installshield-2012
brute-force
alchemy.js
linq-to-entities
soundjs
stdclass
xbim
microdata
lftp
matlab-cvst
tableau-server
nsjsonserialization
production-environment
slidesjs
google-maps-ios
nuget-server
rxvt
polar-coordinates
typhoon
windows-azure-pack
update-site
post-processing
brackets-shell
zuora
abas
programming-paradigms
prezto
xaml-designer
google-earth-plugin
python-ggplot
moai
activity-streams
libsndfile
docopt
firebug-lite
suffix-array
java-collections-api
mbox
openkinect
chrome-for-android
opendata
java.util.date
backbone-relational
iconv
vertical-scrolling
git-filter-branch
enumerators
feof
xmlslurper
parameterization
nssavepanel
paintcomponent
loadui
recordset
revert
external-assemblies
trampolines
pci-bus
graph-layout
microsoft.ink
opcodes
outlook-form

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App