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_MODE
Define 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_VIEW
Key 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.
|
static String |
SAVE_STATE_WITH_VISIT_TREE_ON_PSS
If this param is set to true (by default), when pss algorithm is executed to save state, a visit tree
traversal is done, instead a plain traversal like previous versions (2.0.7/2.1.1 and earlier) of MyFaces Core.
|
Constructor and Description |
---|
DefaultFaceletsStateManagementStrategy() |
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) |
boolean |
isSaveStateWithVisitTreeOnPSS(FacesContext facesContext) |
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.8, 2.1.2", defaultValue="true", expectedValues="true, false", group="state", tags="performance") public static final String SAVE_STATE_WITH_VISIT_TREE_ON_PSS
@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 UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId)
restoreView
in class StateManagementStrategy
public void handleDynamicAddedRemovedComponents(FacesContext context, UIViewRoot view, Map<String,Object> states)
public Object saveView(FacesContext context)
saveView
in class StateManagementStrategy
public boolean isSaveStateWithVisitTreeOnPSS(FacesContext facesContext)
protected void ensureClearInitialState(UIComponent c)
public void suscribeListeners(UIViewRoot uiViewRoot)
protected RenderKitFactory getRenderKitFactory()
protected VisitContextFactory getVisitContextFactory()
protected String getCheckIdProductionMode(FacesContext facesContext)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.