Hi,
I had the same problem some weeks ago. As far as i can remember, the way to
solve the problem is not to use:
<t:dataTable value="#{someValue}">
</t:dataTable>
Instead use the following for your dataTable:
<t:dataTable binding="#{myBean.myTable}">
</t:dataTable>
The bean have to look like the following:
Public class MyBean
{
private HtmlDataTable table;
Getters/Setters for table
}
But be careful, MyBean has to be Session scope. That way, the component
remains the same, even if you come back to the page after rendering some
other pages. The HtmlDataTable contains the current position of the
DataTable which is used by the Paginator.
Hope this helps,
Dominik
-----Ursprüngliche Nachricht-----
Von: Adrian Mitev [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 27. Oktober 2006 16:58
An: [email protected]
Betreff: DataTable + DataScroller problem.
Hi guys! I have a page with t:dataTable and t:dataScroller. I use
ListDataModel for the table. The data for the table is in session
scoped managed bean. In one of columns there is commandLink that
navigates to details page for the objects of the table. On the details
page there is a back button that navigates back to the dataTable page
via navigation rule. When i use the scroller to go to other page and
select the details page then get back on the dataTable page with the
back button then the scroller's paginator shows the first page but on
the dataTable is shown the page i was before. I want the dataTable to
be the same as before. Where's the problem?
--
Seeing is believing