Re: Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread Kalle Korhonen
wrong within my methods, in Tapestry >> what is the best way to intercept any thing that goes wrong and then >> redirect the user to for example an error page. >> >> I do not want to put a try catch in each method and then redirect to my >> error page. >> >>

Re: Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread Lenny Primak
oes wrong and then > redirect the user to for example an error page. > > I do not want to put a try catch in each method and then redirect to my > error page. > > > Thx in advance. > > > > } > > -- > View this message in context: > http://tape

Re: Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Jul 2012 09:53:39 -0300, captain_rhino wrote: I have several pages that several methods within them public class Page public void onActivate(EventContext ec){ //Code } public void onSuccess(){ //code } void onSelectedFromAButton(){ //code } In tapestry

Re: Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread Lance Java
l together, then you will need to override the RequestExceptionHandler service with your own implementation (take a look at the DefaultRequestExceptionHandler source code for inspiration). Cheers, Lance. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Intercepting-exceptions

Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread captain_rhino
/Intercepting-exceptions-errors-in-logic-within-page-objects-tp5714597.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e