You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Anton Veretennikov <an...@gmail.com> on 2009/07/10 12:17:04 UTC
Submiting a form to external page with SubmitLink
Hello, wicket users and developers,
I need to post a form to external page and open it in a new window.
I found an advice to use a simple WebMarkupContainer instead of a form here:
http://markmail.org/message/hpim6m4fyb56kzi5#query:Wicket%20how%20to%20redirect%20with%20POST+page:1+mid:ghuhk35lqosmpswp+state:results
But I want to submit this form via SubmitLink.
Of course, as I don't have a form in SubmitLink constructor it produces only:
<a href="#" onclick>
How to implement this? I'm asking your help on my problem.
Thank you very much.
-- Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Submiting a form to external page with SubmitLink
Posted by shumbola <sh...@yahoo.com>.
Why not just use SimpleAttributeModifier for action attribute of your form?
It works for me, try it.
shumbola
Anton Veretennikov wrote:
>
> Honestly, I tried it :) but it didn't work....
>
> Thank you.
>
> On Fri, Jul 10, 2009 at 10:50 PM, Igor Vaynberg<ig...@gmail.com>
> wrote:
>> you can subclass form, override oncomponenttag and change the value of
>> the action attribute to point to the external page.
>>
>> -igor
>>
>> On Fri, Jul 10, 2009 at 3:17 AM, Anton
>> Veretennikov<an...@gmail.com> wrote:
>>> Hello, wicket users and developers,
>>>
>>> I need to post a form to external page and open it in a new window.
>>>
>>> I found an advice to use a simple WebMarkupContainer instead of a form
>>> here:
>>> http://markmail.org/message/hpim6m4fyb56kzi5#query:Wicket%20how%20to%20redirect%20with%20POST+page:1+mid:ghuhk35lqosmpswp+state:results
>>>
>>> But I want to submit this form via SubmitLink.
>>>
>>> Of course, as I don't have a form in SubmitLink constructor it produces
>>> only:
>>> #
>>>
>>> How to implement this? I'm asking your help on my problem.
>>>
>>> Thank you very much.
>>>
>>> -- Tony
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Submiting-a-form-to-external-page-with-SubmitLink-tp24424850p24431662.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Submiting a form to external page with SubmitLink
Posted by Anton Veretennikov <an...@gmail.com>.
Honestly, I tried it :) but it didn't work....
Thank you.
On Fri, Jul 10, 2009 at 10:50 PM, Igor Vaynberg<ig...@gmail.com> wrote:
> you can subclass form, override oncomponenttag and change the value of
> the action attribute to point to the external page.
>
> -igor
>
> On Fri, Jul 10, 2009 at 3:17 AM, Anton
> Veretennikov<an...@gmail.com> wrote:
>> Hello, wicket users and developers,
>>
>> I need to post a form to external page and open it in a new window.
>>
>> I found an advice to use a simple WebMarkupContainer instead of a form here:
>> http://markmail.org/message/hpim6m4fyb56kzi5#query:Wicket%20how%20to%20redirect%20with%20POST+page:1+mid:ghuhk35lqosmpswp+state:results
>>
>> But I want to submit this form via SubmitLink.
>>
>> Of course, as I don't have a form in SubmitLink constructor it produces only:
>> <a href="#" onclick>
>>
>> How to implement this? I'm asking your help on my problem.
>>
>> Thank you very much.
>>
>> -- Tony
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Submiting a form to external page with SubmitLink
Posted by Igor Vaynberg <ig...@gmail.com>.
you can subclass form, override oncomponenttag and change the value of
the action attribute to point to the external page.
-igor
On Fri, Jul 10, 2009 at 3:17 AM, Anton
Veretennikov<an...@gmail.com> wrote:
> Hello, wicket users and developers,
>
> I need to post a form to external page and open it in a new window.
>
> I found an advice to use a simple WebMarkupContainer instead of a form here:
> http://markmail.org/message/hpim6m4fyb56kzi5#query:Wicket%20how%20to%20redirect%20with%20POST+page:1+mid:ghuhk35lqosmpswp+state:results
>
> But I want to submit this form via SubmitLink.
>
> Of course, as I don't have a form in SubmitLink constructor it produces only:
> <a href="#" onclick>
>
> How to implement this? I'm asking your help on my problem.
>
> Thank you very much.
>
> -- Tony
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org