Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
When javascript is not supported, AjaxFallbackLink calls onClick(target) with target = null. I propose that instead it should pass a NullAjaxRequestTarget whose addComponent() method is a noop (since the whole page is going to be re-rendered anyway).
This will make it possible to call write the onClick() method without a null check, as in:
@Override
public void onClick(AjaxRequestTarget target)
rather than always worrying about whether javascript is enabled by the browser, and wrapping a null check around the target,
Attachments
Issue Links
- relates to
-
WICKET-6104 Rework AjaxFallback** components to use java.util.Optional for their #onEvent methods
- Resolved