Description
At the moment Wicket's passes "null" as a AjaxRequestTarget when an AjaxFallback** component is used in a browser with disabled JavaScript.
Sometimes application developers forget to check the passed "target" for null and try to use and this leads to NullPointerException at runtime.
It would be better to make use of Java 8's java.util.Optional. This way the application developer cannot forget the check.
Attachments
Issue Links
- is related to
-
WICKET-2991 Ajax Fallback LInk should pass a NullAjaxRequestTarget when javascript not supported
- Resolved
- relates to
-
WICKET-6189 Return Optional<T> from RequestCycle.find(Class<T>)
- Resolved
- links to