rich:dataScroller doesn't work (Richfaces 4.2.0)
akaine Feb 29, 2012 7:04 PMHello,
Recently I've started playing seriously with RF4 (had been working with RF3 for almost 3 years before that) and have some serious problems with some basic functionality. One is:
rich:dataScroller doesn't work.
Scenario 1. If I click any of its buttons nothing happens.
Scenario 2. I click a page button and then "first page" button or any "arrow" button the datatable empties itself.
I've made a brief search through the forums and didn't find any helpful info so I'm really stuck here...
Here's the code from a demo app I'm working on (so no fancy things here, just the datatable fed with a list):
<h:form id="form_cars">
<rich:dataTable id="dt_cars" value="#{managedBean1.cars}" var="car" rowKeyVar="row" rows="10">
<rich:column>
<f:facet name="header">Brand</f:facet>
<h:outputText value="#{car.brand}"/>
</rich:column>
<rich:column style="text-align: right;">
<f:facet name="header">Model</f:facet>
<h:outputText value="#{car.model}"/>
</rich:column>
<rich:column style="text-align: right;">
<f:facet name="header">Price</f:facet>
<h:outputText value="#{car.price}">
<f:convertNumber pattern="$#,###.00" type="currency" locale="es_MX"/>
</h:outputText>
</rich:column>
<rich:column style="text-align: center;">
<f:facet name="header">Sold</f:facet>
<h:outputText value="#{car.sold?'Y':'N'}"/>
</rich:column>
<f:facet name="footer">
<rich:dataScroller id="ds_cars" for="dt_cars" page="#{managedBean1.page}"/>
</f:facet>
</rich:dataTable>
</h:form>
Forgot to mention: I'm running the thing under JBoss 7.1
Libs list (all exported with the WAR):
- javax.faces-2.1.7
- cssparser-0.9.5 (tried with cssparser-0.9.6.jar)
- guava-10.0.1 (tried with guava-11.0.2.jar)
- sac-1.3
- richfaces-components-api-4.2.0.Final
- richfaces-components-ui-4.2.0.Final
- richfaces-core-api-4.2.0.Final
- richfaces-core-impl-4.2.0.Final