myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco <marco1...@gmail.com>
Subject Re: DataScroller index
Date Sun, 22 Jan 2006 10:09:39 GMT
Hi Andreas;

Going to a specific page in the dataScroller depends on the (rows &
first)attributes of the dataTable.

1) The rows attribute - is the # of displayed rows per page (default is 10).
2) The first attribute - is the index of the first displayed row (default is
0).

So for example if your total number of rows is 20 and the rows attribute was
10:
1) You want to show results from 1 to 10 (1st page in the scroller) simply
make (first=0).
2) You want to show results from 11 to 20 (2st page in the scroller) simply
make (first=10).

Make a value binding in you managed bean to those two attributes and then
you have the full control of what is displayed in the dataTable.

Marco

Mime
View raw message