On Wed, Mar 26, 2008 at 11:13 AM, Matthew Young <[EMAIL PROTECTED]> wrote:
> My form is at the bottom of a long page.  I have <a name="myform"/> before
>  the form.  Is there a way to:
>
>  1) on fail form validation, response jump to the form?

this is a bit tricky. perhaps you can subclass the feedbackpanel and
if there are messages have it spit out some javascript to scroll the
page.

if you dont want javascript then you will need an extra redirect in
which case you will need to do:

string url=urlfor(mypage.this); url+="#anchor";
requestcycle().setrequesttarget(new redirectrequesttarget(url));

but you may or may not lose some feedback messages, not sure.

>  2) Same for [EMAIL PROTECTED](): response jump to the form?

link has overridable String getAnchor()

-igor

>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to