My guess is that the page activation context isn't designed for this.  There
are a couple of workarounds.  One would be to inject the Response service
(org.apache.tapestry5.services.Response) into your page class and then use
it to perform the redirection in your onActivate method:

@Inject
private Response _response;

void onActivate ()
{
    _response.sendRedirect("/some/other/page");
}

Cheers,
Bill

On Wed, Dec 24, 2008 at 9:59 AM, d0ng <agile.j...@gmail.com> wrote:

> Hi,
> I have a page that's used to redirect request to other page in some
> case,but I don't make it work well.
> For example,in the test code the Index page can't be render and there is
> nothing to output.
>
> public class Test {
> @InjectPage
> private Index index;
>
> public Object onActivate() {
> return index;
> }
> }
>
> Does anyone know why?
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to