Re: T4: forward browser to an external web site

2010-02-07 Thread Ivano Luberti
I know, but a was hoping for some kind of "forward to external web site" mechanism. It shouldn't be impossible to build something like that using HttpClient or some similar package Martin Strand ha scritto: > This has nothing to do with Tapestry, it's how the HTTP protocol works. > There's just no

Re: T4: forward browser to an external web site

2010-02-07 Thread Martin Strand
This has nothing to do with Tapestry, it's how the HTTP protocol works. There's just no response you can send which tells the client to POST data to another URL. Instead you send a short program which performs the POST and hope your client executes that program - that's the script solution. On

Re: T4: forward browser to an external web site

2010-02-07 Thread Ivano Luberti
Yes I had already tought of a solution like taht but I was hoping for a clean tapestry solution like the you suggested me with the link. Thanks anyway. Would instead be possible with T5? Martin Strand ha scritto: > For POST requests, your initial idea is the way to go: > > Of course I can retu

Re: T4: forward browser to an external web site

2010-02-06 Thread Martin Strand
For POST requests, your initial idea is the way to go: Of course I can return to the new user a new page with a form that has an action that points to the web site, but it would be far better to have my page class. So you'll render a form (no need to use the Form component for this) http://w

Re: T4: forward browser to an external web site

2010-02-06 Thread Ivano Luberti
Thanks Martin: it worked. But what I could do in case I had to submit a form accepting only POST method in the form? Ivano Luberti ha scritto: > I will try that: for whatever reason I was convinced that I had to > submit a form and not simply a link. > But checking twice the docs of the web site

Re: T4: forward browser to an external web site

2010-02-03 Thread Ivano Luberti
I will try that: for whatever reason I was convinced that I had to submit a form and not simply a link. But checking twice the docs of the web site I have to forward to, I see I can use a link. Thanks for now Martin Strand ha scritto: > If you just want to redirect the client to another URL, retu

Re: T4: forward browser to an external web site

2010-02-03 Thread Martin Strand
If you just want to redirect the client to another URL, return an ILink from your form listener: public ILink formSubmitListener() { // Do work // ... return new StaticLink("http://www.example.com/";); } Martin On Wed, 03 Feb 2010 10:39:23 +0100, Ivano Luberti wrote: Hello, I'm tryi

T4: forward browser to an external web site

2010-02-03 Thread Ivano Luberti
Hello, I'm trying to solve the following problem using T4.1.6. I want to have the user submit a form , perform some operation in the page class and then forward the user to an external web site. Of course I can return to the new user a new page with a form that has an action that points to the web