StreetCookie CD Duplication wrote:
>
>
> Sorry,
>
> i submitted the first response without adding the sortableHeader code.
>
>> 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:column>
> <f:facet name="header">
> <t:commandSortHeader id="myMethod"
> columnName="myColumn" immediate="false">
> #{myBean.theSortableHeaderValue}
> </t:commandSortHeader>
> </f:facet>
> #{mybean.value}
> </t:column>
>
>
>
> </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.
>> >
>> >
>>
>
>
i'll try
thanks
--
View this message in context:
http://www.nabble.com/dataScroller-and-sortHeader-%28sorry-forgot-to-add-sortHeader-example%29-tf2546685.html#a7098062
Sent from the MyFaces - Users mailing list archive at Nabble.com.