Hi!
I want to delete some rows of a dataTable. I have something like this:
<a4j:form>
<a4j:outputPanel id="panel03" ajaxRendered="true">
<rich:dataTable id="dt1" value="#{RichBean.data}" rows="4" var="dto">
<h:column>
<f:facet name="header">
<rich:spacer />
</f:facet>
<h:selectBooleanCheckbox id="magicBox" value="#{dto.checked}" />
</h:column>
</rich:dataTable>
<rich:datascroller id="datascr" for="dt1" maxPages="5" reRender="panel03"/>
</a4j:outputPanel>
<a4j:commandButton value="Delete Tagged" action="#{RichBean.deleteTaggedRecords}" reRender="panel03" />
</a4j:form>
Hi
In your deleteTaggedRecords method you can use findComponent to get your datascroller and set the pageIndex to 0.
I think that should work.
Tiago