Add the datatTable with an Id:

          <t:dataTable  id="myDataTable" cellspacing="0" preserveSort="false"  
sortColumn="#{myBean.sort}"     sortAscending="#{myBean.ascending}"  
value="#{myBean.myValues}" rows="10" var="myValue" rowIndexVar="index" 
style="border: none;"></t:dataTable> 

Then add the dataScroller with a "for" attribute pointed to the dataTable. 

     <t:dataScroller id="pager" for="myDataTable" pageCountVar="pageCount" 
pageIndexVar="pageIndex" rowsCountVar="rowsCount" first="#{pageIndex}" 
firstRowIndexVar="pageIndex" displayedRowsCountVar="displayedRowsCount"
                            fastStep="5" paginator="true" 
renderFacetsIfSinglePage="false" paginatorMaxPages="5" 
paginatorActiveColumnStyle="font-size:12px; font-decoration:bold;" 
styleClass="scroller">
                            <f:facet name="previous">Previous</f:facet>
                            <f:facet name="next">Next</f:facet>
                            <f:param value="#{rowsCount}/" />
                            <f:param value="#{displayedRowsCount}" />
                            <f:param value="#{lastRowIndex}" />
                            <f:param value="#{pageIndex}" />
                            <f:param value="#{pageCount}" />
                        </t:dataScroller>





>  -------Original Message-------
>  From: clockdva <[EMAIL PROTECTED]>
>  Subject: a  dataScroller and a SortHeader in the same dataTable
>  Sent: 31 Oct '06 13:39
>  
>  
>  http://myfaces.apache.org/tomahawk/dataScroller.html
>  http://myfaces.apache.org/tomahawk/extDataTable.html
>  
>  It is possible to use a  dataScroller and a SortHeader in the same
>  dataTable??
>  How can i do??
>  
>  
>  thanks
>  
>  --
>  View this message in context: 
> http://www.nabble.com/a--dataScroller-and-a-SortHeader-in-the-same-dataTable-tf2545861.html#a7094023
>  Sent from the MyFaces - Users mailing list archive at Nabble.com.
>  
>  

Reply via email to