Re: exception handling (get cause page)
It works perfectly thanks On Mon, Sep 3, 2012 at 3:11 PM, Martin Grigorov wrote: > Hi, > > See > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java > Register it, then use it: > PageRequestHandlerTracker.getLastHandler(cycle).getPage() > > > On Mon, Sep 3, 2012 at 8:00 PM, Alfonso Quiroga > wrote: >> Hi! I have a custom exception handler, and I have this method: >> >> onException(RequestCycle cycle, Exception anException) { >> >> } >> >> >> Inside this method, how can I get the original page who caused the >> exception? in other Wicket version, I had "onRuntimeException" >> method, who already had the original page. >> >> Thanks in advance! >> >> - >> 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 > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: exception handling (get cause page)
Hi, See https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java Register it, then use it: PageRequestHandlerTracker.getLastHandler(cycle).getPage() On Mon, Sep 3, 2012 at 8:00 PM, Alfonso Quiroga wrote: > Hi! I have a custom exception handler, and I have this method: > > onException(RequestCycle cycle, Exception anException) { > > } > > > Inside this method, how can I get the original page who caused the > exception? in other Wicket version, I had "onRuntimeException" > method, who already had the original page. > > Thanks in advance! > > - > 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
exception handling (get cause page)
Hi! I have a custom exception handler, and I have this method: onException(RequestCycle cycle, Exception anException) { } Inside this method, how can I get the original page who caused the exception? in other Wicket version, I had "onRuntimeException" method, who already had the original page. Thanks in advance! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org