|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIParameter
org.apache.myfaces.custom.scope.UIScope
public class UIScope
Scope control which does basically the same as savestate but bypasses the serialization and utilizes the session directly
| Field Summary | |
|---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
SCOPE_CONTAINER_KEY
|
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
UIScope()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getFamily()
|
void |
resetScope(javax.faces.context.FacesContext context)
reset scope helper which allows to remove the scope from the system within the backend context |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
in the restores state phase we get the binding and replace the one from the system with the one from the scope map |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
save state saves the scope value binding into the holder map |
| Methods inherited from class javax.faces.component.UIParameter |
|---|
getName, getValue, setName, setRendered, setValue |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendererType, setTransient, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SCOPE_CONTAINER_KEY
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
| Constructor Detail |
|---|
public UIScope()
| Method Detail |
|---|
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIParameterpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIParameter
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIParameterpublic void resetScope(javax.faces.context.FacesContext context)
context -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||