Bind the dataTable component to one Java bean class's property, say 
MyBackBean.dataTable. And Call 

dataTable.setFirst(0);

in your h:outputLink action or listener method.

Good luck,

Zhi


----- Original Message ----- 
From: Igor devor 
To: [email protected] 
Sent: Tuesday, July 25, 2006 12:47 AM
Subject: Tomahawk data scroller problem


Hi,

        We use data scroller of tomahawk 1.1.3, with myfaces 1.1.3.

        On our web application, we have a menu, made of  h:outputlink, that 
each point on a page with a data scroller (and the same menu).
        The data scroller work correctly, and we can go to the 4th page for 
exemple.
        But when we click on another link in menu, ( the data are not the same 
for the table ) the page is still on the 4th page of the data scroller.
        And if there is no 4th page for this data, a blank page is display, and 
bad value are display for rowsCountVar, displayedRowsCountVar, 
firstRowIndexVar, etc... . 

        How can we force the data scroller to reset to the first page ?

Many thanks,
Igor Devor

Reply via email to