|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.view.facelets.FaceletCompositionContext
org.apache.myfaces.view.facelets.impl.FaceletCompositionContextImpl
public class FaceletCompositionContextImpl
| Field Summary | |
|---|---|
static String |
INIT_PARAM_CACHE_EL_EXPRESSIONS
Indicates if expressions generated by facelets should be cached or not. |
| Fields inherited from class org.apache.myfaces.view.facelets.FaceletCompositionContext |
|---|
FACELET_COMPOSITION_CONTEXT_KEY |
| Constructor Summary | |
|---|---|
FaceletCompositionContextImpl(FaceletFactory factory,
FacesContext facesContext)
|
|
| Method Summary | |
|---|---|
void |
addAttachedObjectHandler(UIComponent compositeComponentParent,
AttachedObjectHandler handler)
Add to the composite component parent this handler, so it will be processed later when ViewDeclarationLanguage.retargetAttachedObjects is called. |
void |
addMethodExpressionTargeted(UIComponent targetedComponent,
String attributeName,
Object backingValue)
Add a method expression as targeted for the provided composite component |
void |
clearMethodExpressionAttribute(UIComponent compositeComponentParent,
String attributeName)
Clear the MethodExpression attribute to call vdl.retargetMethodExpression again |
void |
finalizeForDeletion(UIComponent component)
Used in conjunction with markForDeletion where any UIComponent marked will be removed. |
List<AttachedObjectHandler> |
getAttachedObjectHandlers(UIComponent compositeComponentParent)
Retrieve the list of object handlers attached to a composite component parent. |
UIComponent |
getCompositeComponentFromStack()
Return the composite component being applied on the current facelet. |
ELExpressionCacheMode |
getELExpressionCacheMode()
Indicates if a EL Expression can be or not cached by facelets vdl. |
Iterator<String> |
getEnclosingValidatorIds()
Gets all validationIds on the stack. |
Iterator<String> |
getExcludedValidatorIds()
Gets all validationIds on the stack. |
FaceletFactory |
getFaceletFactory()
|
String |
getFirstValidationGroupFromStack()
Gets the top of the validationGroups stack. |
UniqueIdVendor |
getUniqueIdVendorFromStack()
Return the latest UniqueIdVendor created from stack. |
boolean |
isMarkInitialState()
Check if this build should be marked as initial state. |
boolean |
isMarkInitialStateAndIsRefreshTransientBuildOnPSS()
|
boolean |
isMethodExpressionAttributeApplied(UIComponent compositeComponentParent,
String attributeName)
Check if the MethodExpression attribute has been applied using vdl.retargetMethodExpression |
boolean |
isRefreshingTransientBuild()
Check if this build is being refreshed, adding transient components and adding/removing components under c:if or c:forEach or not. |
boolean |
isRefreshTransientBuildOnPSS()
Check if the current view will be refreshed with partial state saving. |
boolean |
isUsingPSSOnThisView()
Check if we are using partial state saving on this view |
void |
markForDeletion(UIComponent component)
Marks all direct children and Facets with an attribute for deletion. |
void |
markMethodExpressionAttribute(UIComponent compositeComponentParent,
String attributeName)
Mark the MethodExpression attribute as applied using vdl.retargetMethodExpression |
void |
popCompositeComponentToStack()
|
void |
popEnclosingValidatorIdToStack()
Removes top of stack. |
void |
popExcludedValidatorIdToStack()
Removes top of stack. |
void |
popUniqueIdVendorToStack()
|
void |
popValidationGroupsToStack()
Removes top of stack. |
void |
pushCompositeComponentToStack(UIComponent parent)
|
void |
pushEnclosingValidatorIdToStack(String validatorId)
Pushes validatorId to the stack of all enclosing validatorIds. |
void |
pushExcludedValidatorIdToStack(String validatorId)
Pushes validatorId to the stack of excluded validatorIds. |
void |
pushUniqueIdVendorToStack(UniqueIdVendor parent)
|
void |
pushValidationGroupsToStack(String validationGroups)
Pushes validationGroups to the stack. |
void |
release(FacesContext facesContext)
Releases the MyFaceletContext object. |
void |
removeAttachedObjectHandlers(UIComponent compositeComponentParent)
Remove from the composite component parent the list of attached handlers. |
Object |
removeMethodExpressionTargeted(UIComponent targetedComponent,
String attributeName)
Remove a method expression as targeted for the provided composite component |
| Methods inherited from class org.apache.myfaces.view.facelets.FaceletCompositionContext |
|---|
getCurrentInstance, getCurrentInstance, getCurrentInstance, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@JSFWebConfigParam(since="2.0.8",
defaultValue="noCache",
expectedValues="noCache, strict, allowCset, always")
public static final String INIT_PARAM_CACHE_EL_EXPRESSIONS
| Constructor Detail |
|---|
public FaceletCompositionContextImpl(FaceletFactory factory,
FacesContext facesContext)
| Method Detail |
|---|
public FaceletFactory getFaceletFactory()
getFaceletFactory in class FaceletCompositionContextpublic void release(FacesContext facesContext)
FaceletCompositionContext
release in class FaceletCompositionContextpublic UIComponent getCompositeComponentFromStack()
FaceletCompositionContext
getCompositeComponentFromStack in class FaceletCompositionContextpublic void pushCompositeComponentToStack(UIComponent parent)
pushCompositeComponentToStack in class FaceletCompositionContextpublic void popCompositeComponentToStack()
popCompositeComponentToStack in class FaceletCompositionContextpublic UniqueIdVendor getUniqueIdVendorFromStack()
FaceletCompositionContext
getUniqueIdVendorFromStack in class FaceletCompositionContextpublic void popUniqueIdVendorToStack()
popUniqueIdVendorToStack in class FaceletCompositionContextpublic void pushUniqueIdVendorToStack(UniqueIdVendor parent)
pushUniqueIdVendorToStack in class FaceletCompositionContextpublic String getFirstValidationGroupFromStack()
getFirstValidationGroupFromStack in class FaceletCompositionContextpublic void popValidationGroupsToStack()
popValidationGroupsToStack in class FaceletCompositionContextpublic void pushValidationGroupsToStack(String validationGroups)
pushValidationGroupsToStack in class FaceletCompositionContextvalidationGroups - public Iterator<String> getExcludedValidatorIds()
getExcludedValidatorIds in class FaceletCompositionContextpublic void popExcludedValidatorIdToStack()
popExcludedValidatorIdToStack in class FaceletCompositionContextpublic void pushExcludedValidatorIdToStack(String validatorId)
pushExcludedValidatorIdToStack in class FaceletCompositionContextvalidatorId - public Iterator<String> getEnclosingValidatorIds()
getEnclosingValidatorIds in class FaceletCompositionContextpublic void popEnclosingValidatorIdToStack()
popEnclosingValidatorIdToStack in class FaceletCompositionContextpublic void pushEnclosingValidatorIdToStack(String validatorId)
pushEnclosingValidatorIdToStack in class FaceletCompositionContextvalidatorId - public boolean isRefreshingTransientBuild()
FaceletCompositionContext
isRefreshingTransientBuild in class FaceletCompositionContextpublic boolean isMarkInitialState()
FaceletCompositionContext
isMarkInitialState in class FaceletCompositionContextpublic boolean isRefreshTransientBuildOnPSS()
FaceletCompositionContext
isRefreshTransientBuildOnPSS in class FaceletCompositionContextpublic boolean isUsingPSSOnThisView()
FaceletCompositionContext
isUsingPSSOnThisView in class FaceletCompositionContextpublic boolean isMarkInitialStateAndIsRefreshTransientBuildOnPSS()
isMarkInitialStateAndIsRefreshTransientBuildOnPSS in class FaceletCompositionContextpublic ELExpressionCacheMode getELExpressionCacheMode()
FaceletCompositionContext
getELExpressionCacheMode in class FaceletCompositionContext
public void addAttachedObjectHandler(UIComponent compositeComponentParent,
AttachedObjectHandler handler)
FaceletCompositionContext
addAttachedObjectHandler in class FaceletCompositionContextpublic void removeAttachedObjectHandlers(UIComponent compositeComponentParent)
FaceletCompositionContext
removeAttachedObjectHandlers in class FaceletCompositionContextpublic List<AttachedObjectHandler> getAttachedObjectHandlers(UIComponent compositeComponentParent)
FaceletCompositionContext
getAttachedObjectHandlers in class FaceletCompositionContext
public void addMethodExpressionTargeted(UIComponent targetedComponent,
String attributeName,
Object backingValue)
FaceletCompositionContext
addMethodExpressionTargeted in class FaceletCompositionContextbackingValue - A value that could be useful to revert its effects.
public boolean isMethodExpressionAttributeApplied(UIComponent compositeComponentParent,
String attributeName)
FaceletCompositionContext
isMethodExpressionAttributeApplied in class FaceletCompositionContext
public void markMethodExpressionAttribute(UIComponent compositeComponentParent,
String attributeName)
FaceletCompositionContext
markMethodExpressionAttribute in class FaceletCompositionContext
public void clearMethodExpressionAttribute(UIComponent compositeComponentParent,
String attributeName)
FaceletCompositionContext
clearMethodExpressionAttribute in class FaceletCompositionContext
public Object removeMethodExpressionTargeted(UIComponent targetedComponent,
String attributeName)
FaceletCompositionContext
removeMethodExpressionTargeted in class FaceletCompositionContextpublic void markForDeletion(UIComponent component)
FaceletCompositionContext
markForDeletion in class FaceletCompositionContextcomponent - UIComponent to mark#finalizeForDeletion(FaceletCompositionContext, UIComponent)public void finalizeForDeletion(UIComponent component)
FaceletCompositionContext
finalizeForDeletion in class FaceletCompositionContextcomponent - UIComponent to finalize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||