myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikhil M <nmustil...@yahoo.com>
Subject Problem with t:datascroller and t:datatable
Date Mon, 03 Nov 2008 09:54:01 GMT

Hi, 

I have one query on data scroller. I have one t:datascroller and there is
t:dataTable which is linked to this data scroller. When I click on the next,
it goes to next page and data is displayed properly. So everything works
fine with next, previous, first, last. But problem is when I select one item
from the list and go out of this page. My requirement is when I come back to
this list page, it should go to the page where I was. 

So for this I have bind one attribute in the page bean to the scroller and
this attribute is of type HTMLDataScroller. And the getter/setter of this
page bean just access the HTMLDatascroller in the managed bean which has a
session scope. So currently what is happening is when I come back to the
list page, it shows the page number which was selected in the data scroller
before going out of this page. But the data displayed in the datatable is
from first page. I tried to set the first row also with
scroll.getUIData().setFirst(scroll.getFirstRow());. But that also does not
work. 

Can you please give me some solution or lead/direction in which I should
look into? 

Thanks and Regards, 
Nikhil.
-- 
View this message in context: http://www.nabble.com/Problem-with-t%3Adatascroller-and-t%3Adatatable-tp20299882p20299882.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message