thinking about this now I think it would be very elegant to first do
Ajax submit and then in onSubmit() append a Javascript code to change
the form's action (and the method too if needed) attribute and submit
it.  

El sáb, 19-09-2009 a las 20:55 -0500, Jeremy Thomerson escribió:
> If you actually want to redirect them to the other site (with a post, and
> not just a get), you will just need to render a form and rely on javascript
> to auto-submit it for you (likely with a "click here if not redirected"
> link).  The hidden fields could be rendered with attribute modifiers on
> webmarkupcontainers for example.  Or you could use an actual form and
> override the action URL, but that's probably a little heavy-handed for this.
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Fri, Sep 18, 2009 at 7:21 AM, Martin Grigorov <mcgreg...@e-card.bg>wrote:
> 
> > El vie, 18-09-2009 a las 10:51 +0000, Vadim Tesis escribió:
> > > all,
> > >
> > >
> > >
> > > i have a form with some input fields.  after the user populates the form
> > and hits submit button, i'd like to do some processing on my website and
> > then redirect the user to external website by posting another form with
> > dynamically generated hidden fields.
> > >
> > > what's the best way to do it in wicket 1.4?
> > There is no automatic Wicket way to do this.
> > You could forward the data with UrlConnection or apache-httpclient in
> > your onSubmit() callback method.
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Vadim
> > >
> > > _________________________________________________________________
> > > Hotmail: Powerful Free email with security by Microsoft.
> > > http://clk.atdmt.com/GBL/go/171222986/direct/01/
> >
> >
> > ---------------------------------------------------------------------
> > 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

Reply via email to