Use StateManagementStrategy

Apache 2.0

Methods that were removed from the jakarta.faces.application.StateManager and javax.faces.application.StateManager classes in Jakarta Faces 3.0 are replaced by jakarta.faces.view.StateManagementStrategy or javax.faces.view.StateManagementStrategy based on JakartaEE9 migration in Faces 3.0

com.oracle.weblogic.rewrite.jakarta.RemovedStateManagerMethods3
mod run . --recipe=com.oracle.weblogic.rewrite.jakarta.RemovedStateManagerMethods3

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 method name *.faces.application.StateManager getComponentStateToSave(*.faces.context.FacesContext) to saveView
  2. Change method name *.faces.application.StateManager getTreeStructureToSave(*.faces.context.FacesContext) to saveView
  3. Change method name *.faces.application.StateManager restoreComponentState(*.faces.context.FacesContext,*.faces.component.UIViewRoot,String) to restoreView
  4. Change method name *.faces.application.StateManager restoreTreeStructure(*.faces.context.FacesContext,String,String) to restoreView
  5. Change method name *.faces.application.StateManager saveSerializedView(*.faces.context.FacesContext) to saveView
  6. Change type StateManager to StateManagementStrategy
  7. Change type StateManager to StateManagementStrategy