Skip to content

Opt-out for OptionalELResolver #5591

@jharnack1

Description

@jharnack1

In #5481 the OptionalELResolver was added and is added to FacesCompositeELResolver by default.
We already used Optionals in many places in JSF Pages, also using Optional#isPresent in the pages. Since the resolver now changes the type to the generic type, we get lots of errors because the isPresent checks no longer work and would need to be changed to null checks.

Is it possible to opt-out of using the OptionalELResolver or somehow configure Mojarra to disable that specific resolver so we don't have to update our pages when updating to 4.1, since this is a breaking change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions