From adffaces-user-return-1071-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Wed Oct 04 04:17:38 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 49664 invoked from network); 4 Oct 2006 04:17:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Oct 2006 04:17:37 -0000 Received: (qmail 13456 invoked by uid 500); 4 Oct 2006 04:17:36 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 13438 invoked by uid 500); 4 Oct 2006 04:17:36 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 13423 invoked by uid 99); 4 Oct 2006 04:17:35 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of martin.marinschek@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2006 21:17:35 -0700 Received: by nf-out-0910.google.com with SMTP id x4so380409nfb for ; Tue, 03 Oct 2006 21:15:10 -0700 (PDT) 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:content-transfer-encoding:content-disposition:references; b=OjIxirJUrhtcShXYKux1KBoYsoQ5sTrfMZ7it6O8L7Le7Y24/zHRkl1mApQvoihb/9ah7ht/x08/xNUNOtysZbVMKmiu9cAEQ3r2sQYLXcffo3x9LJyMd9JEEZRP377AGqu3Dcx86yXfe5Sl4tml8ai9FqKS6jakedHe2GZ2cuc= Received: by 10.49.80.12 with SMTP id h12mr1815795nfl; Tue, 03 Oct 2006 21:15:08 -0700 (PDT) Received: by 10.49.9.14 with HTTP; Tue, 3 Oct 2006 21:15:08 -0700 (PDT) Message-ID: <5a99335f0610032115y7e301573raeda433482b93acf@mail.gmail.com> Date: Wed, 4 Oct 2006 06:15:08 +0200 From: "Martin Marinschek" To: adffaces-user@incubator.apache.org Subject: Re: Auto-scroll feature In-Reply-To: <6dac79b90610030912y5ba3ce06g6b9b70a5e73e8156@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1159882658.3765.125.camel@markoc.aura> <6dac79b90610030745q4cb24652n59763c46c9e50961@mail.gmail.com> <1159888753.3765.142.camel@markoc.aura> <6dac79b90610030912y5ba3ce06g6b9b70a5e73e8156@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, basically, what we'd need to do, is add an onsubmit-handler, that dynamically adds a new input-node to the form with the current scrolling position. We could do that without customizing the submit routine, as we do currently. regards, Martin On 10/3/06, Adam Winer wrote: > I'd rather not port it to Trinidad, if that means copying code over. > I'd be interested in finding a way to make the autoscroll > feature one that doesn't require using the MyFaces commandButton > and form. > > -- Adam > > > On 10/3/06, Martin Koci wrote: > > > > Yes, PPR can solve that problem too, but many users of trinidad have > > legacy pages with h:dataTable etc. > > They can rely on myfaces auto-scroll feature and they won't rewrite all > > pages to trinidad. > > > > I think myfaces auto-scroll feature should be ported to trinidad: > > > > - using trinidad disables auto-scroll; this can be annoying surprise fo= r > > myfaces impl users > > > > - accordance with current myfaces code there are only three or four > > points which must be ported, so port is simple > > > > - porting this feature to trinidad will allow using it with Sun RI. > > > > > > Martin > > > > > > Adam Winer p=ED=9Ae v =DAt 03. 10. 2006 v 07:45 -0700: > > > Martin, > > > > > > Trinidad doesn't have an auto-scroll feature; however, > > > it has PPR, which preserves scrolling position without > > > any bouncing up-and-down. > > > > > > -- Adam > > > > > > > > > On 10/3/06, Martin Koci wrote: > > > > Have Trinidad auto-scroll as myfaces impl has? > > > > > > > > If rendered output is too long (for example long dataTable) and use= r > > > > clicks a bottom button the page scrolls to the top. > > > > > > > > Myfaces have a auto-scroll feature (can be enabled with > > > > org.apache.myfaces.AUTO_SCROLL in web.xml). This features saves > > > > position of a window between requests and re-scroll it. > > > > > > > > But it is based on command button rendererer and html form renderer > > from > > > > myfaces. Unfortunately trinidad overrides those renderers so that > > > > feature doesn't work. > > > > > > > > > > > > Martin > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --=20 http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces