You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Beelen, Marco" <ma...@merck.com> on 2007/04/03 10:24:09 UTC
Scrolling on individual pages
Hello all,
In my application currently the AUTO_SCROLL functionality is enable, but
there are some pages on which I would like to disabled this or
otherwise: Disable it globally and just activate it on some forms.
Is this possible or does the config-param AUTO_SCROLL forces the same
behaviour throughout the entire applications?.
If it is possible: Could you tell me how to do that?
With kind regards,
Marco Beelen
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and then
delete it from your system.
------------------------------------------------------------------------------
Re: Scrolling on individual pages
Posted by Jeff Bischoff <jb...@klkurz.com>.
Marco,
If you want to see the "hack" to accomplish this, take a look at my
previous reply to Veit [1]. I believe it still works, though it's ugly.
Another way to prevent page scrolling to top is to use AJAX requests...
though that opens up a whole new bag of worms. :)
[1] http://www.nabble.com/AUTO_SCROLL-de--activation-tf2504630.html#a6991924
Regards,
Jeff Bischoff
Kenneth L Kurz & Associates, Inc.
Veit Guna wrote:
> Hi.
>
> This has been asked several times ago (including myself). But nobody knew a solution for this. I switched off AUTO_SCROLL completely and live with this pain. Actually it didn't bother me too much to grab the myfaces/tomahawk sources to add this functionality.
>
> Regards,
> Veit
>
>
> -------- Original-Nachricht --------
> Datum: Tue, 3 Apr 2007 10:24:09 +0200
> Von: "Beelen, Marco" <ma...@merck.com>
> An: "MyFaces Discussion" <us...@myfaces.apache.org>
> Betreff: Scrolling on individual pages
>
>> Hello all,
>>
>> In my application currently the AUTO_SCROLL functionality is enable, but
>> there are some pages on which I would like to disabled this or
>> otherwise: Disable it globally and just activate it on some forms.
>>
>> Is this possible or does the config-param AUTO_SCROLL forces the same
>> behaviour throughout the entire applications?.
>> If it is possible: Could you tell me how to do that?
>>
>> With kind regards,
>> Marco Beelen
>>
>> ------------------------------------------------------------------------------
>> Notice: This e-mail message, together with any attachments, contains
>> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
>> New Jersey, USA 08889), and/or its affiliates (which may be known
>> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
>> and in Japan, as Banyu - direct contact information for affiliates is
>> available at http://www.merck.com/contact/contacts.html) that may be
>> confidential, proprietary copyrighted and/or legally privileged. It is
>> intended solely for the use of the individual or entity named on this
>> message. If you are not the intended recipient, and have received this
>> message in error, please notify us immediately by reply e-mail and then
>> delete it from your system.
>>
>> ------------------------------------------------------------------------------
>
Re: Scrolling on individual pages
Posted by Veit Guna <Ve...@gmx.de>.
Hi.
This has been asked several times ago (including myself). But nobody knew a solution for this. I switched off AUTO_SCROLL completely and live with this pain. Actually it didn't bother me too much to grab the myfaces/tomahawk sources to add this functionality.
Regards,
Veit
-------- Original-Nachricht --------
Datum: Tue, 3 Apr 2007 10:24:09 +0200
Von: "Beelen, Marco" <ma...@merck.com>
An: "MyFaces Discussion" <us...@myfaces.apache.org>
Betreff: Scrolling on individual pages
> Hello all,
>
> In my application currently the AUTO_SCROLL functionality is enable, but
> there are some pages on which I would like to disabled this or
> otherwise: Disable it globally and just activate it on some forms.
>
> Is this possible or does the config-param AUTO_SCROLL forces the same
> behaviour throughout the entire applications?.
> If it is possible: Could you tell me how to do that?
>
> With kind regards,
> Marco Beelen
>
> ------------------------------------------------------------------------------
> Notice: This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
> and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and then
> delete it from your system.
>
> ------------------------------------------------------------------------------
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Re: Scrolling on individual pages
Posted by Mike Kienenberger <mk...@gmail.com>.
How about using the "rendered" flag to control which one is active at
a time? There may be better ways to do it -- perhaps it's time for
some patches for s:focus.
On 4/4/07, Beelen, Marco <ma...@merck.com> wrote:
>
>
> To use s:focus for scrolling is an interesting idea!
>
> I didn't think of that earlier. Now that I'm thinking about it, I wonder
> if s:focus could be made 'conditionally'
>
> On the first opening of a page I don't want to scroll, so the user can
> start at the top of the page. If the user submits a form and returns to
> the pages, I would prefer to scroll to a sensible default. ( eighter to
> the first form-field with validation-erros, or the button used to submit
> the form. )
>
> I don't see how I can get that working with the focus-component at this
> time.
>
> I'll think about it some more and might come back on this.
>
> With kind regards,
> Marco Beelen
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: dinsdag 3 april 2007 23:04
> To: MyFaces Discussion
> Subject: Re: Scrolling on individual pages
>
> I wonder if you could use the sandbox focus component to control the
> scrolling?
>
>
> On 4/3/07, Beelen, Marco <ma...@merck.com> wrote:
> >
> >
> >
> > Hello all,
> >
> > In my application currently the AUTO_SCROLL functionality is enable,
> but
> > there are some pages on which I would like to disabled this or
> otherwise:
> > Disable it globally and just activate it on some forms.
> >
> > Is this possible or does the config-param AUTO_SCROLL forces the same
> > behaviour throughout the entire applications?.
> > If it is possible: Could you tell me how to do that?
> >
> > With kind regards,
> > Marco Beelen
> >
>
>
> ------------------------------------------------------------------------------
> Notice: This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
> and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and then
> delete it from your system.
>
> ------------------------------------------------------------------------------
>
RE: Scrolling on individual pages
Posted by "Beelen, Marco" <ma...@merck.com>.
To use s:focus for scrolling is an interesting idea!
I didn't think of that earlier. Now that I'm thinking about it, I wonder
if s:focus could be made 'conditionally'
On the first opening of a page I don't want to scroll, so the user can
start at the top of the page. If the user submits a form and returns to
the pages, I would prefer to scroll to a sensible default. ( eighter to
the first form-field with validation-erros, or the button used to submit
the form. )
I don't see how I can get that working with the focus-component at this
time.
I'll think about it some more and might come back on this.
With kind regards,
Marco Beelen
-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com]
Sent: dinsdag 3 april 2007 23:04
To: MyFaces Discussion
Subject: Re: Scrolling on individual pages
I wonder if you could use the sandbox focus component to control the
scrolling?
On 4/3/07, Beelen, Marco <ma...@merck.com> wrote:
>
>
>
> Hello all,
>
> In my application currently the AUTO_SCROLL functionality is enable,
but
> there are some pages on which I would like to disabled this or
otherwise:
> Disable it globally and just activate it on some forms.
>
> Is this possible or does the config-param AUTO_SCROLL forces the same
> behaviour throughout the entire applications?.
> If it is possible: Could you tell me how to do that?
>
> With kind regards,
> Marco Beelen
>
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and then
delete it from your system.
------------------------------------------------------------------------------
Re: Scrolling on individual pages
Posted by Mike Kienenberger <mk...@gmail.com>.
I wonder if you could use the sandbox focus component to control the scrolling?
On 4/3/07, Beelen, Marco <ma...@merck.com> wrote:
>
>
>
> Hello all,
>
> In my application currently the AUTO_SCROLL functionality is enable, but
> there are some pages on which I would like to disabled this or otherwise:
> Disable it globally and just activate it on some forms.
>
> Is this possible or does the config-param AUTO_SCROLL forces the same
> behaviour throughout the entire applications?.
> If it is possible: Could you tell me how to do that?
>
> With kind regards,
> Marco Beelen
>
> ------------------------------------------------------------------------------
> Notice: This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
> and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html)
> that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and then
> delete it from your system.
>
> ------------------------------------------------------------------------------
>
>
>