Hi Hugo,

what u could do is to create the Link to the page u want to send
redirect and then use the response. It would be something like:
Link redirectTo =
pageRenderLinkSource.createPageRenderLinkWithContext(pageClass,
context);
response.sendRedirect(link);

I hope it helps! :)

On Mon, Nov 8, 2010 at 12:43 PM, Hugo Palma <hugo.m.pa...@gmail.com> wrote:
> I would like for a given page to force a redirect to a different page before
> it's rendered if a given condition is met.
> I could use a simple Response.sendRedirect but that would mean i would have
> to provide the page name in string format. I would like to avoid having to
> do this because it would make code refactoring harder and more error prone.
>
> So, any way i can redirect using page classes only ?
> Thanks.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to