Hi Marco
look at the datascroller.jsp sample...
----------------------------------------------------
<x:dataScroller id="scroll_2"
for="data"
rowsCountVar="rowsCount"
displayedRowsCountVar="displayedRowsCountVar"
firstRowIndexVar="firstRowIndex"
lastRowIndexVar="lastRowIndex"
pageCountVar="pageCount"
pageIndexVar="pageIndex"
>
<h:outputFormat
value="#{example_messages['dataScroller_pages']}" styleClass="standard"
>
<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>
</x:dataScroller>
----------------------------------------------------
pageIndex is what you are looking for
Just have it point to a managed-bean-attribute...
hth
Alexander
________________________________
From: Marco [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 12:40 PM
To: MyFaces Discussion
Subject: Question?
Hi all;
I have dataScroller..How can i know the clicked page value from the
scroller ?
(For ex. the scroller shows that i have 3 pages of results (1,2,3) for a
dataTable, & i want if i clicked on 2 - for ex. - i can get 2 inside my
code ).
Like in the dataTable there is an attribute "first" tells me where the
cursor now, is there anything like this in the dataScroller that tells
me which page I'm on now ?
Thanks a lot