How about something like the following. It's not pretty but it works in Wicket 1.5 and my submitted form ends up being .../target-page?input1=value1&input2=value2&... with no redirects.
HTML: <form method="get" wicket:id="form"> ... inputs here ... </form> Java: final CharSequence url = RequestCycle.get().urlFor(TargetPage.class, null); final Form f = new Form("form") { // TODO: there may be thread safety issues here - not sure boolean inComponentTagBody = false; @Override public boolean isRootForm() { if (inComponentTagBody) return false; return super.isRootForm(); } @Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { inComponentTagBody = true; super.onComponentTagBody(markupStream, openTag); inComponentTagBody = false; } }; f.add(new AttributeModifier("action", true, new Model(url.toString()))); add(f); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-submit-and-nice-urls-tp3521053p3641551.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org