Description
RequestCycle.find(Class<T>) is mostly used to get the current AjaxRequestTarget.
Since the returned reference might be null (in case of a non-Ajax request), it would be better to return an Optional<AjaxRequestHandler>.
Attachments
Issue Links
- is related to
-
WICKET-6104 Rework AjaxFallback** components to use java.util.Optional for their #onEvent methods
- Resolved