This rule flags the following methods that were removed from the jakarta.faces.application.StateManager and javax.faces.application.StateManager classes
in Jakarta Faces 4.0:
Removed Jakarta/JavaEE StateManager Method |
Replacement Method |
|---|---|
restoreView |
jakarta.faces.view.StateManagementStrategy.restoreView() |
saveSerializedView |
jakarta.faces.view.StateManagementStrategy.saveView() |
saveView |
jakarta.faces.view.StateManagementStrategy.saveView() |
writeState(FacesContext context, StateManager.SerializedView state) |
writeState(FacesContext context, Object state) |
The following convenience methods were removed from the jakarta.faces.application.StateManager and javax.faces.application.StateManager classes
in Jakarta Faces 4.0:
Removed Jakarta/JavaEE StateManager Method |
Replacement Method |
|---|---|
getComponentStateToSave |
jakarta.faces.view.StateManagementStrategy.saveView() |
getTreeStructureToSave |
jakarta.faces.view.StateManagementStrategy.saveView() |
restoreComponentState |
jakarta.faces.view.StateManagementStrategy.restoreView() |
restoreTreeStructure |
jakarta.faces.view.StateManagementStrategy.restoreView() |
See Faces 3.0 StateManager for more information on the Jakarta EE 9 removed methods.
See Faces 4.0 StateManager for more information on the Jakarta EE 10 implementation.
This rule has an automated fix to update the use of these deprecated methods. Copy the custom configuration to your application build file to enable the fix automation.
For more Jakarta 10 migration information, see Differences between Jakarta Faces 4.0 and 3.0.