public class DefaultFaceletsStateManagementStrategy extends StateManagementStrategy
| Modifier and Type | Class and Description | 
|---|---|
| static class  | DefaultFaceletsStateManagementStrategy.AddComponentCallback | 
| static class  | DefaultFaceletsStateManagementStrategy.PostAddPreRemoveFromViewListener | 
| static class  | DefaultFaceletsStateManagementStrategy.RemoveComponentCallback | 
| static class  | DefaultFaceletsStateManagementStrategy.TreeStructComponent | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | CHECK_ID_PRODUCTION_MODEDefine how duplicate ids are checked when ProjectStage is Production, by default (auto) it only check ids of
 components that does not encapsulate markup (like facelets UILeaf). | 
| static String | CLIENTIDS_ADDED | 
| static String | CLIENTIDS_REMOVED | 
| static String | COMPONENT_ADDED_AFTER_BUILD_VIEWKey used on component attribute map to indicate if a component was added
 after build view, so itself and all descendants should not use partial
 state saving. | 
| Constructor and Description | 
|---|
| DefaultFaceletsStateManagementStrategy() | 
| DefaultFaceletsStateManagementStrategy(FacesContext context) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | ensureClearInitialState(UIComponent c) | 
| protected String | getCheckIdProductionMode(FacesContext facesContext) | 
| protected RenderKitFactory | getRenderKitFactory() | 
| protected VisitContextFactory | getVisitContextFactory() | 
| void | handleDynamicAddedRemovedComponents(FacesContext context,
                                   UIViewRoot view,
                                   Map<String,Object> states) | 
| UIViewRoot | restoreView(FacesContext context,
           String viewId,
           String renderKitId) | 
| Object | saveView(FacesContext context) | 
| void | suscribeListeners(UIViewRoot uiViewRoot) | 
public static final String CLIENTIDS_ADDED
public static final String CLIENTIDS_REMOVED
public static final String COMPONENT_ADDED_AFTER_BUILD_VIEW
@JSFWebConfigParam(since="2.0.12, 2.1.6",
                   defaultValue="auto",
                   expectedValues="true, auto, false",
                   group="state",
                   tags="performance")
public static final String CHECK_ID_PRODUCTION_MODE
According to specification, identifiers must be unique within the scope of the nearest ancestor to the component that is a naming container.
public DefaultFaceletsStateManagementStrategy()
public DefaultFaceletsStateManagementStrategy(FacesContext context)
public UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId)
restoreView in class StateManagementStrategypublic void handleDynamicAddedRemovedComponents(FacesContext context, UIViewRoot view, Map<String,Object> states)
public Object saveView(FacesContext context)
saveView in class StateManagementStrategyprotected void ensureClearInitialState(UIComponent c)
public void suscribeListeners(UIViewRoot uiViewRoot)
protected RenderKitFactory getRenderKitFactory()
protected VisitContextFactory getVisitContextFactory()
protected String getCheckIdProductionMode(FacesContext facesContext)
Copyright © 2025 The Apache Software Foundation. All rights reserved.