Re: Access to initial IRequestHandler on IRequestCycleListener.onException

2020-05-02 Thread Olivier Dutrieux
Perfect thx

-
Duto
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Access to initial IRequestHandler on IRequestCycleListener.onException

2020-05-02 Thread Sven Meier

Hi,

you can use PageRequestHandlerTracker for that:

https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java

Have fun
Sven


On 02.05.20 18:41, Olivier Dutrieux wrote:

Is there a possibility to access to initial IRequestHandler
(AjaxRequestHandler) on IRequestCycleListener.onException when the exception
is due to the rendering exception (Model do RuntimeException) of this ajax
request.

I see on RequestCycle.get() the initial ajax request but I can access it and
RequestCycle.get().find(AjaxRequestTarget.class) is empty.







-
Duto
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

-
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



Access to initial IRequestHandler on IRequestCycleListener.onException

2020-05-02 Thread Olivier Dutrieux
Is there a possibility to access to initial IRequestHandler
(AjaxRequestHandler) on IRequestCycleListener.onException when the exception
is due to the rendering exception (Model do RuntimeException) of this ajax
request.

I see on RequestCycle.get() the initial ajax request but I can access it and
RequestCycle.get().find(AjaxRequestTarget.class) is empty.

 





-
Duto
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org