-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Faces 4.0 recipe - FacesManagedBeansRemoved - needs additions
I found a few things the org.openrewrite.java.migrate.jakarta.FacesManagedBeansRemoved recipe is missing.
Reference documents
- Previous Jakarta Faces 3.0 docs shows replacements needed. Most are currently covered
- Additional docs on migration to Faces 4.0 for EE10: https://docs.redhat.com/en/documentation/red_hat_jboss_enterprise_application_platform/8.0/html/migration_guide/application-migration-from-jakarta-ee-8-to-ee-10_default#faces-managed-beans_default
Missing fixes
1. CustomScoped
java.faces.bean.CustomScopedandjakarta.faces.bean.CustomScopedseem to need a custom recipe to use CDI custom scopes andjakarta.enterprise.context.spi.Context. Unsure of recipe scope, and if feasible.
Migration case with build error:
[ERROR] ... package jakarta.faces.bean does not exist
[ERROR] ... cannot find symbol
[ERROR] symbol: class CustomScoped
Additional analysis: #1025 (comment)
Problem:
jakarta.faces.bean.CustomScopedwas removed in Faces 4.0 with no direct replacement. The CDI equivalent involves defining a custom scope annotation with@NormalScopeor@Scope, plus registering aContextimplementation — this is NOT a simpleChangeType.Status: This would require a custom Java recipe and the migration path isn't mechanical (the issue author also notes "unsure of recipe scope, and if feasible"). Skipping for now.
✅ 2. ManagedProperty name - fixed in #1025/#1027
Faces 3.0 ManagedProperty doc
Faces 4.0 ManagedProperty doc
namewas an optional element in Faces 3.0, and removed in Faces 4.0. Possibly remove entirely unless there is another migration path to maintain functionality.
Migration case with build error:
[ERROR] ... cannot find symbol
[ERROR] symbol: method name()
[ERROR] location: @interface jakarta.faces.annotation.ManagedProperty
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status