I want to reset to the first  page in a scroller

I'm trying this solution but don't  work:


FacesContext facesContext = FacesContext.getCurrentInstance();
               
HtmlDataTable tabla=(HtmlDataTable)PageCodeBase.findComponentInRoot("table1");
tabla.setFirst(0);


How can i reset to the first page when i click a button

Thanks!!


--------------------------------
Jose Merchan Bosch
Departament de Desenvolupament
e-mail: [EMAIL PROTECTED]
http://www.saytel.es

Reply via email to