On Wed, Nov 9, 2011 at 12:42 AM, kamiseq <kami...@gmail.com> wrote: > ok, thanks for that. > > I have one small question that is bugging me for a while. > > What would be the difference between throwing exception or > setResponsePage(pageClass);?? > I ve found somewhere that I should always throw RestartException, but > I see setResponsePage so many times that Im confused.
The exception stops the execution of your code and immediately replaces the current IRequestHandler while setResponsePage() just schedules another IRequestHandler to be executed after the current one and continues executing your code. > > pozdrawiam > Paweł Kamiński > > kami...@gmail.com > pkaminski....@gmail.com > ______________________ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org