JSF 2.x to Jakarta Faces 3.x

MSAL

Jakarta EE 9 uses Faces 3.0, a major upgrade to Jakarta packages and XML namespaces.

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

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. Migrate deprecated javax.faces packages to jakarta.faces
  2. Faces XHTML migration for Jakarta EE 9
  3. Migrate JSF values inside ECMAScript files
  4. Migrate xmlns entries in faces-config.xml files
  5. Migrate xmlns entries in taglib.xml files
  6. Migrate xmlns entries in web-fragment.xml files
  7. Migrate xmlns entries in web.xml files
  8. Rename the jsf/ClientSideSecretKey and jsf/FlashSecretKey JNDI names to faces/*
  9. Use jakarta.el instead of jakarta.faces.el and javax.faces.el
  10. Replace ResourceResolver with ResourceHandler
  11. Replace deprecated StateManager methods
  12. Replace CURRENT_COMPONENT and CURRENT_COMPOSITE_COMPONENT with getCurrentComponent() and getCurrentCompositeComponent()
  13. Upgrade Faces open source libraries