On Wed, Nov 9, 2011 at 12:42 AM, kamiseq <[email protected]> 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 > > [email protected] > [email protected] > ______________________ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
