Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77E6611BA4 for ; Mon, 18 Aug 2014 12:16:46 +0000 (UTC) Received: (qmail 15398 invoked by uid 500); 18 Aug 2014 12:16:44 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 15354 invoked by uid 500); 18 Aug 2014 12:16:44 -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 15343 invoked by uid 99); 18 Aug 2014 12:16:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 12:16:44 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [213.198.55.74] (HELO mail08b.verio.de) (213.198.55.74) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 12:16:14 +0000 Received: from mxmtaout01.va1.mxservers.net (208.55.215.112) by mail08b.verio.de (RS ver 1.0.95vs) with SMTP id 2-037874172 for ; Mon, 18 Aug 2014 14:16:13 +0200 (CEST) Received: from unknown [213.198.55.75] (EHLO mmm803.verio.de) by mxmtaout01.va1.mxservers.net(mxl_mta-6.15.0-3) with ESMTP id b8ee1f35.0.8556296.00-475.14377017.mxmtaout01.va1.mxservers.net (envelope-from ); Mon, 18 Aug 2014 08:16:13 -0400 (EDT) X-MXL-Hash: 53f1ee8d726ec9d9-14c5ea56741b9805d56aa0221d5651231c654eda Received: (qmail 79740 invoked from network); 18 Aug 2014 12:16:11 -0000 Received: from unknown (HELO tagwerk1) (portwich@85.177.139.122) by with ESMTPA; 18 Aug 2014 12:16:11 -0000 From: "Georg Portwich" To: Subject: How to reset pageIndex for t:dataScroller Date: Mon, 18 Aug 2014 14:16:06 +0200 Message-ID: <000001cfbade$30a772a0$91f657e0$@blueskye.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CFBAEE.F43376F0" X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac+63JZuLgA2MNSBTcaGqxiTkMB23Q== Content-Language: de X-Spam: [F=0.2000000000; CM=0.500; MH=0.500(2014081811); S=0.200(2014051901)] X-MAIL-FROM: X-SOURCE-IP: [213.198.55.75] X-AnalysisOut: [v=2.0 cv=OZgv+GvY c=1 sm=1 a=ikgN0ahALqmx3cx3g6/djw==:17 a] X-AnalysisOut: [=qIst4a__cD0A:10 a=grWddM8xLbcA:10 a=lzqgkhWSf9EA:10 a=BLc] X-AnalysisOut: [eEmwcHowA:10 a=l7ZH_I-td5Ky1eSeMUMA:9 a=CjuIK1q_8ugA:10 a=] X-AnalysisOut: [3wBmAMqMrQ4A:10 a=Yi-w77nzmtsA:10 a=yMhMjlubAAAA:8 a=SSmOF] X-AnalysisOut: [EACAAAA:8 a=uUm_ia_QI2goTbSkYCsA:9 a=gKO2Hq4RSVkA:10 a=UiC] X-AnalysisOut: [Q7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10 a=_R3z8WX] X-AnalysisOut: [DqJyNJjdD:21] X-SF-Loop: 1 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0001_01CFBAEE.F43376F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I want to set the pageIndex in the t:dataScroller manually. How do I do this in a bean? I need this for the following use case: A list with 20 entries and a pagesize of 15. The user is on the second page. Now the user changes the number of items displayed by page to 25. The page is reloaded and the list is empty because the pageIndex is still on the second page. So I have to change the pageIndex to zero to avoid the empty page. Thanks Georg ------=_NextPart_000_0001_01CFBAEE.F43376F0--