Use jakarta.el instead of jakarta.faces.el and javax.faces.el

MSAL

Several classes were removed and replaced in Jakarta Faces 3.0. The only Object definition not removed in the jakarta.faces.el package is the CompositeComponentExpressionHolder interface.

org.openrewrite.java.migrate.jakarta.RemovedJakartaFacesExpressionLanguageClasses
mod run . --recipe=org.openrewrite.java.migrate.jakarta.RemovedJakartaFacesExpressionLanguageClasses

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change type MethodBinding to MethodExpression
  2. Change type MethodBinding to MethodExpression
  3. Change type PropertyResolver to ELResolver
  4. Change type PropertyResolver to ELResolver
  5. Change type ValueBinding to ValueExpression
  6. Change type ValueBinding to ValueExpression
  7. Change type VariableResolver to ELResolver
  8. Change type VariableResolver to ELResolver
  9. Change type EvaluationException to ELException
  10. Change type EvaluationException to ELException
  11. Change type javax.faces.el.MethodNotFoundException to jakarta.el.MethodNotFoundException
  12. Change type jakarta.faces.el.MethodNotFoundException to jakarta.el.MethodNotFoundException
  13. Change type javax.faces.el.PropertyNotFoundException to jakarta.el.PropertyNotFoundException
  14. Change type jakarta.faces.el.PropertyNotFoundException to jakarta.el.PropertyNotFoundException
  15. Change type ReferenceSyntaxException to ELException
  16. Change type ReferenceSyntaxException to ELException