Re: Submiting a form to external page with SubmitLink
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 Veretennikovanton.veretenni...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Submiting a form to external page with SubmitLink
Honestly, I tried it :) but it didn't work Thank you. On Fri, Jul 10, 2009 at 10:50 PM, Igor Vaynbergigor.vaynb...@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 Veretennikovanton.veretenni...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Submiting a form to external page with SubmitLink
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 Vaynbergigor.vaynb...@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 Veretennikovanton.veretenni...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org