s/error/session.error/
s/setresponsepage/throw new restartresponseexception

-igor


On Wed, Feb 20, 2008 at 2:54 PM, MYoung <[EMAIL PROTECTED]> wrote:
>
>  In my Checkout page if there is nothing to checkout, I want to bounce to the
>  ShowCatalog page with an error message.  I did it this way:
>
>  class Checkout extends WebPage {
>     public Checkout() {
>         if (thereIsNothingToCheckout()) {
>             error("You have nothing to checkout");
>             setResponsePage(ShowCatalog.class);
>             return;
>         }
>
>         // continue to checkout
>
>     }
>  }
>
>  Is this the right way?
>  --
>  View this message in context: 
> http://www.nabble.com/What-is-the-Wicket-way-to-redirect--tp15600869p15600869.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to