THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
getComponent().getRequestCycle().find(AjaxRequestTarget.class).ifPresent(target -> target.add(this)); |
...
During migration you should check your old code for places where the AjaxRequestCycle (now an Optional<AjaxRequestTarget>) is compared with null:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
if (cycle.find(AjaxRequestTarget.class) == null) {
// this is *never* executed since #find() always returns an Optional
}
if (cycle.find(AjaxRequestTarget.class) != null) {
// this is *always* executed since #find() always returns an Optional
} |
AjaxFallback** components now use java.util.Optional
Jira | ||||||
---|---|---|---|---|---|---|
|
...