Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 36983 invoked from network); 22 Jan 2006 10:10:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jan 2006 10:10:06 -0000 Received: (qmail 94716 invoked by uid 500); 22 Jan 2006 10:10:03 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 94666 invoked by uid 500); 22 Jan 2006 10:10:02 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 94655 invoked by uid 99); 22 Jan 2006 10:10:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 02:10:02 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of marco1984@gmail.com designates 66.249.92.192 as permitted sender) Received: from [66.249.92.192] (HELO uproxy.gmail.com) (66.249.92.192) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 02:10:01 -0800 Received: by uproxy.gmail.com with SMTP id m3so560421ugc for ; Sun, 22 Jan 2006 02:09:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=W6ZFPyWphHteHo/xQugGF3HJ4SGQznZCwgAHc7t9wNtbJeCKEC0juVw395R5iH8Mxede7SEe2VBRjdx7xuqvtNXNfPisNJIfEQY72EuH6RInEF6UNQGUPLuxuGtyNiyGtuXVzHV4KQNCdq54wf70Glka9PIldX0EVGLE64Ck2nY= Received: by 10.49.20.12 with SMTP id x12mr256273nfi; Sun, 22 Jan 2006 02:09:39 -0800 (PST) Received: by 10.49.42.6 with HTTP; Sun, 22 Jan 2006 02:09:39 -0800 (PST) Message-ID: <272a3cdf0601220209i6e0dedc0u26288758f0129283@mail.gmail.com> Date: Sun, 22 Jan 2006 12:09:39 +0200 From: Marco To: MyFaces Discussion Subject: Re: DataScroller index In-Reply-To: <43D1D4A4.3000609@zit-systems.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16430_6768352.1137924579785" References: <43D1D4A4.3000609@zit-systems.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_16430_6768352.1137924579785 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 i= s 0). So for example if your total number of rows is 20 and the rows attribute wa= s 10: 1) You want to show results from 1 to 10 (1st page in the scroller) simply make (first=3D0). 2) You want to show results from 11 to 20 (2st page in the scroller) simply make (first=3D10). 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 ------=_Part_16430_6768352.1137924579785 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Andreas;

Going to a specific page in the dataS= croller depends on the (rows &
first)<= span class=3D"sg"> 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).<= br>
So for example if your total number of rows is 20 and the rows attri= bute was 10:
1) You want to show results from 1 to 10 (1st page in the s= croller) simply make (first=3D0).
2)
You want to show results from 11 to 20 (2s= t page in the scroller) simply make (first=3D10).

Make a value bindi= ng in you managed bean to those two attributes and then you have the full c= ontrol of what is displayed in the dataTable.

Marco


------=_Part_16430_6768352.1137924579785--