You could use a WebMarkupContainer and attribute modifiers.  It may not be
the most elegant, but WMC works for decorating any kind of HTML tag in the
markup...

Markup:
<form wicket:id="externalForm">
...
</form>

Code:
        WebMarkupContainer form = new WebMarkupContainer("externalForm");
        form.add(new AttributeModifier("action", new
SomeModelThatGivesYouTheURLToPostTo()));
        form.add(new SimpleAttributeModifier("method", "POST"));
        add(form);

HTH

-- 
Jeremy Thomerson
http://www.wickettraining.com

On Wed, May 21, 2008 at 9:35 AM, mmocnik <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I want to create a form in a Wicket Panel that POSTs its data to an
> external
> site.
> Simple coding it in the HTML does not work since the target URL and some
> hidden values will be insterted dynamically.
>
> Is there something similar to an ExternalLink only form Forms?
> Or do I have to add the HTML in a Label?
>
> Thanks in advance,
> Marko
>
> PS: Currently using 1.3.0
> --
> View this message in context:
> http://www.nabble.com/External-Form-target-tp17364277p17364277.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]
>
>

Reply via email to