Hi,

> The next time the user opens the site with the datatable and the
> datascroller the pageindex is still the same like before...

> Any chance to set it to 0 again?

I solved this problem that way:

FacesContext context = FacesContext.getCurrentInstance();
UIViewRoot view = context.getViewRoot();
HtmlDataTable table =(HtmlDataTable) view.findComponent("form1:part1:table1");
table.setFirst(0);

Simply call it before showing the site with the datatable again.

Hope that helps,

Steffen Hankiewicz

Reply via email to