Hi,

In https://issues.apache.org/jira/browse/WICKET-4326 I suggest to
introduce IAjaxRequestHander which is an interface for
AjaxRequestTarget.
It gives the possibility to be able to provide customized ART or
completely new one. This way it is much easier to use a mock for
testing too.

Until now we had
org.apache.wicket.protocol.http.WebApplication#setAjaxRequestTargetProvider()
but it was useless because ART is mostly final (i.e. many methods in
it are final).

The "bad" thing is that all onXyz() methods (like onEvent, onClick,
onUpdate, ...) need to change their signature to receive
IAjaxRequestHandler instead.
The fix is easy but depending on how much Ajax you use in your
application it may be a cumbersome task ...

-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

Reply via email to