Hi, Igor What's the difference between "RestartResponseException" and "RestartResponseAtInterceptPageException"? Thx
Regards, Jay -----邮件原件----- 发件人: Igor Vaynberg [mailto:[EMAIL PROTECTED] 发送时间: 2008年2月21日 7:03 收件人: [email protected] 主题: Re: What is the Wicket way to redirect? 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--tp15600869p1560086 9.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
