I use this all the time and it works. For example:
@InjectPage
private Login loginPage;
Object onActivate() {
if(!userExists) {
loginPage.setNext(this.getClass());
return loginPage;
}
return null;
}
Is what I use to redirect to a login page if a user isn't logged in.
Mark
On Dec 24, 2008, at 9:59 AM, d0ng 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