You can try adding an abstractbehavior to the form overriding the
onComponentTag where you add the anchor to the action attribute, such
as
public void onComponentTag(final Component component, final ComponentTag tag) {
String action = tag.getString("action");
tag.put("action", action + "#formAnchor");
}
however, this will not work in safari. Wicket does redirect after post
and in safari the redirect doesn't preserve the anchor.
-Matej
On Jan 3, 2008 9:26 AM, TheMayor <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a couple of forms on a page. I would like a user to be able to submit
> a form at the bottom of the page and be anchored back to the form. Is there
> a non-javascript way to do this in Wicket? Kinda like using href="#[id]" in
> links.
>
> Thanks,
>
> -hc
> --
> View this message in context:
> http://www.nabble.com/Anchoring-back-to-a-submitted-form-tp14593381p14593381.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]