Jeff,

I tried it without the binding, but it doesn't help.
table.getFirst() returns the correct result.
The binding of the dataTable should not be the reason, should it?

Jan




Jeff Bischoff wrote:
> 
> Jan,
> 
> Have you tried this without binding the dataScroller? In my experience, 
> maintaining the correct state information for the dataTable itself is 
> sufficient. If the "first" property is set correctly on the dataTable 
> (and it sounds like yours is), then a regular dataScroller tag should be 
> able to find the right page (without being bound).
> 
> Regards,
> 
> Jeff Bischoff
> Kenneth L Kurz & Associates, Inc.
> 
> janw wrote:
>> Hello,
>> 
>> I use the dataScroller bound to a backing Bean in session scope.
>> The table is as well bound to the backing bean.
>> 
>>   private UIData table;
>>   private HtmlDataScroller dataScroller;
>> 
>> Scenario:
>> The user scrolls to page 3, goes to a completely other page, then returns
>> to
>> the page with the datatable (not by back button, but by a menu item /
>> command button of some kind).
>> The data displayed is the one from page 3, but the datascroller shows
>> page 1
>> active ("1" is bold).
>> How can I correct this? 
>> The pageIndex of the datascroller seems correct (getPageIndex() returns
>> 3).
>> 
>> Jan
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Datascroller-displays-incorrect-pageIndex-%281%29-tf2394335.html#a6680341
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to