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]

Reply via email to