Try this working code .................
******************************************
This is dataTable used to display the table
this having 4 main attributes
1)id - id unique for one form
2)value - this is collection or arrayList Object(#{beanname.variablename})
3)var- This is for reference variable(id is used for datascroller)
4)rows - no of rows to display
<t:dataTable id="list" value="#{assetgroupindex.list}" var="list" rows="10">
write your datatable code here
</t:dataTable>
********************************************
Description:
This dataScroller is used for display the first|previous|next|Last Buttons
datatable id attribute and for attribute should same(for="list")
actionListener="#{assetgroupindex.scrollerAction}"
This method add ur
java code:
public void scrollerAction(ActionEvent event) {
ScrollerActionEvent scrollerEvent = (ScrollerActionEvent) event;
}
<t:dataScroller fastStep="10" pageCountVar="inactiveTabStyle" pageIndexVar="pageIndex" styleClass="scroller" paginator="true" paginatorTableClass="paginator" paginatorActiveColumnStyle="font-weight:bold;" for="list" paginatorMaxPages="3" actionListener="#{assetgroupindex.scrollerAction}">
<f:facet name="first">
<t:graphicImage align="center" url="/resources/images/arrow-first.gif" border="1"/>
</f:facet>
<f:facet name="last">
<t:graphicImage align="center" url="/resources/images/arrow-last.gif" border="1"/>
</f:facet>
<f:facet name="previous">
<t:graphicImage align="center" url="/resources/images/arrow-previous.gif" border="1"/>
</f:facet>
<f:facet name="next">
<t:graphicImage align="center" url="/resources/images/arrow-next.gif" border="1"/>
</f:facet>
<f:facet name="fastforward">
<t:graphicImage align="center" url="/resources/images/arrow-ff.gif" border="1"/>
</f:facet>
<f:facet name="fastrewind">
<t:graphicImage align="center" url="/resources/images/arrow-fr.gif" border="1"/>
</f:facet>
</t:dataScroller>
*************************************************
Description:
This dataScroller is used for display the no of records.
datatable id attribute and for attribute should same(for="list")
<t:dataScroller rowsCountVar="rowsCount" displayedRowsCountVar="displayedRowsCountVar" firstRowIndexVar="firstRowIndex" lastRowIndexVar="lastRowIndex" pageCountVar="pageCount" pageIndexVar="pageIndex" for="list">
<h:outputFormat value="{0} Records found, displaying {1} record, from {2} to {3}. Page {4} / {5}">
<f:param value="#{rowsCount}"/>
<f:param value="#{displayedRowsCountVar}"/>
<f:param value="#{firstRowIndex}"/>
<f:param value="#{lastRowIndex}"/>
<f:param value="#{pageIndex}"/>
<f:param value="#{pageCount}"/>
</h:outputFormat>
</t:dataScroller>
******************************************************
regards
Babu