just a RestartResponseException will do

-igor

On Tue, Jun 16, 2009 at 12:34 PM, Jeremy
Thomerson<jer...@wickettraining.com> wrote:
> 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<fachh...@gmail.com> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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

Reply via email to