Re: redirect-after-post pattern

2012-03-06 Thread HubbardTisha
Thanks for the reply, Stephanie. I expect to use de PageService too and looking forward to some advice. - m4a to mp3 -- View this message in context: http://tapestry.1045711.n5.nabble.com/redirect-after-post-pattern-tp2394300p5540713.html Sent from the Tapestry - User mailing list archive a

Re: redirect-after-post pattern

2006-06-20 Thread Stephane Decleire
I expect to use de PageService. Paul Ferraro a écrit : It depends on which service you expect the redirect page to use. e.g. If the ExternalService will handle your redirect link, you can use: String page = "MyPage"; Object[] parameters = new Object[] { parameter1, parameter2 }; // Alternative

Re: redirect-after-post pattern

2006-06-20 Thread Paul Ferraro
It depends on which service you expect the redirect page to use. e.g. If the ExternalService will handle your redirect link, you can use: String page = "MyPage"; Object[] parameters = new Object[] { parameter1, parameter2 }; // Alternatively, you can use injection to obtain service IEngineService

Re: redirect-after-post pattern

2006-06-20 Thread Stephane Decleire
Thanks ! And does anybody know how to pass parameters to the ILink ? Stephane Filip S. Adamsen a écrit : I think what you want to do is to simply return null if you find any errors. Tapestry won't redirect, then. Stephane Decleire skrev: Hi, I've tried to implement redirect-after-post patt

Re: redirect-after-post pattern

2006-06-20 Thread bėgantis debesis
Hi, if I understand the problem correctly, you should return null on validation errors, then the page will be redirected to the page listener was invoked from. Valdemaras Repšys On 6/20/06, Stephane Decleire <[EMAIL PROTECTED]> wrote: This post has been written on May 2005. I've read the ILin

Re: redirect-after-post pattern

2006-06-20 Thread Filip S. Adamsen
I think what you want to do is to simply return null if you find any errors. Tapestry won't redirect, then. Stephane Decleire skrev: Hi, I've tried to implement redirect-after-post pattern in Tapestry4 without success ... I've read that the way to send a redirect reponse to the client web

Re: redirect-after-post pattern

2006-06-20 Thread Stephane Decleire
This post has been written on May 2005. I've read the ILink approach an Howard's blog dated of february 2006 ... ( http://howardlewisship.com/tapestry-javaforge/tapestry-flash/index.html ) Are you sure the redirection is the good solution ? Is the redirection really send a redirect reponse to

RE: redirect-after-post pattern

2006-06-20 Thread James Carman
In order to redirect, you have to throw a RedirectException. Have you read this: http://www.tapestryforums.com/-vp14687.html -Original Message- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 8:29 AM To: users@tapestry.apache.org Subject: redirect-after-