And what's the deal with
if (condition1) {
setResponsePage(Page1.class);
} else {
setResponsePage(Page2.class);
}
return;
??
Is RestartResponseAtInterceptPage better somehow?
Thanks
Peter
2009-06-16 21:34 keltezéssel, Jeremy Thomerson írta:
public class MyPage extends Page {
public MyPage() {
if (condition1) {
throw new RestartResponseAtInterceptPage(Page1.class);
} else if (condition2)
throw new RestartResponseAtInterceptPage(Page2.class);
}
throw new RestartResponseAtInterceptPage(Home.class);
}
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Jun 16, 2009 at 2:29 PM, tubin gen<[email protected]> wrote:
I want to use redirect page to redirect , In my case depending on a
condition I should redirect to different pages , if condition is true then
opage1 if false page 2 can I implement this using redirect page ? If not
whats the other alternative ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]