public class YourPage extends WebPage implement IHeadContributor {
........
// in case form has error, scroll down
@Override public void renderHead(IHeaderResponse r) {
if (form.hasError()) {
r.renderOnLoadJavascript("location.hash='YOUR-ANCHOR'");
}
}
}
On Thu, May 1, 2008 at 4:08 PM, nate roe <[EMAIL PROTECTED]> wrote:
> If I have a feedback panel positioned together with a form at the bottom
> of
> a very long page, how can I cause the browser to snap to that feedback
> panel
> upon validation error?
>
> I could use an anchor tag at the feedback panel, but how would I tell
> Wicket
> to go to that anchor upon validation error?
>
> Thanks,
> Nate Roe
>