...
RequestCycle.find(Class<? extends IRequestHandler>) can be used to find the currently running or a scheduled IRequestHandler for other types too.
AjaxRequestTarget is an interface
o.a.w.ajax.AjaxRequestTarget is an interface now with a default implementation o.a.w.ajax.AjaxRequestHandler. This way it will be possible to replace it with a different implementation, or mock/spy it in tests.
This change required to refactor AjaxRequestTarget.get() too. The replacement code is:
Code Block |
---|
AjaxRequestTarget target = requestCycle.find(AjaxRequestTarget.class);
|
RequestCycle.find(Class<? extends IRequestHandler>) can be used to find the currently running or a scheduled IRequestHandler for other types too.
IHeaderResponse, including decorators and filters
...