Perhaps you can extend Form and do

onComponentTag(final ComponentTag tag) {
super.onComponentTag(tag);
tag.put("method","post");
tag.put("action",MyApplication.get().getExternalUrl());
}

On Wed, May 21, 2008 at 2:30 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]>
wrote:

>
> Hummm... this is an interesting question. Currently in have solved it like
> this.
>
> Add a javacript to the page that changes the forms target.
>
> function makeCallBack( URL ){
>  document.forms[ "orderForm" ].action = URL;
>  document.forms[ "orderForm" ].submit();
> }
>
> In my wicket page
> target.appendJavascript( "makeCallBack( '"+
> getOrder().getPaymentSetting().getHost() +"' )");
>
> I'm using a ajax submit. Does anyone else have a better solution?
>
>
> --
> View this message in context:
> http://www.nabble.com/External-Form-target-tp17364277p17367657.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]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener

Reply via email to