|
||||||||||
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 |
---|
Fields inherited from class org.apache.myfaces.view.facelets.FaceletCompositionContext |
---|
FACELET_COMPOSITION_CONTEXT_KEY |
Constructor Summary | |
---|---|
FaceletCompositionContextImpl(FaceletFactory factory,
javax.faces.context.FacesContext facesContext)
|
Method Summary | |
---|---|
void |
addAttachedObjectHandler(javax.faces.component.UIComponent compositeComponentParent,
javax.faces.view.AttachedObjectHandler handler)
Add to the composite component parent this handler, so it will be processed later when ViewDeclarationLanguage.retargetAttachedObjects is called. |
void |
addMethodExpressionTargeted(javax.faces.component.UIComponent targetedComponent,
java.lang.String attributeName,
java.lang.Object backingValue)
Add a method expression as targeted for the provided composite component |
void |
clearMethodExpressionAttribute(javax.faces.component.UIComponent compositeComponentParent,
java.lang.String attributeName)
Clear the MethodExpression attribute to call vdl.retargetMethodExpression again |
void |
finalizeForDeletion(javax.faces.component.UIComponent component)
Used in conjunction with markForDeletion where any UIComponent marked will be removed. |
java.util.List<javax.faces.view.AttachedObjectHandler> |
getAttachedObjectHandlers(javax.faces.component.UIComponent compositeComponentParent)
Retrieve the list of object handlers attached to a composite component parent. |
javax.faces.component.UIComponent |
getCompositeComponentFromStack()
Return the composite component being applied on the current facelet. |
java.util.Iterator<java.lang.String> |
getEnclosingValidatorIds()
Gets all validationIds on the stack. |
java.util.Iterator<java.lang.String> |
getExcludedValidatorIds()
Gets all validationIds on the stack. |
FaceletFactory |
getFaceletFactory()
|
java.lang.String |
getFirstValidationGroupFromStack()
Gets the top of the validationGroups stack. |
javax.faces.component.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(javax.faces.component.UIComponent compositeComponentParent,
java.lang.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(javax.faces.component.UIComponent component)
Marks all direct children and Facets with an attribute for deletion. |
void |
markMethodExpressionAttribute(javax.faces.component.UIComponent compositeComponentParent,
java.lang.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(javax.faces.component.UIComponent parent)
|
void |
pushEnclosingValidatorIdToStack(java.lang.String validatorId)
Pushes validatorId to the stack of all enclosing validatorIds. |
void |
pushExcludedValidatorIdToStack(java.lang.String validatorId)
Pushes validatorId to the stack of excluded validatorIds. |
void |
pushUniqueIdVendorToStack(javax.faces.component.UniqueIdVendor parent)
|
void |
pushValidationGroupsToStack(java.lang.String validationGroups)
Pushes validationGroups to the stack. |
void |
release(javax.faces.context.FacesContext facesContext)
Releases the MyFaceletContext object. |
void |
removeAttachedObjectHandlers(javax.faces.component.UIComponent compositeComponentParent)
Remove from the composite component parent the list of attached handlers. |
java.lang.Object |
removeMethodExpressionTargeted(javax.faces.component.UIComponent targetedComponent,
java.lang.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 |
Constructor Detail |
---|
public FaceletCompositionContextImpl(FaceletFactory factory, javax.faces.context.FacesContext facesContext)
Method Detail |
---|
public FaceletFactory getFaceletFactory()
getFaceletFactory
in class FaceletCompositionContext
public void release(javax.faces.context.FacesContext facesContext)
FaceletCompositionContext
release
in class FaceletCompositionContext
public javax.faces.component.UIComponent getCompositeComponentFromStack()
FaceletCompositionContext
getCompositeComponentFromStack
in class FaceletCompositionContext
public void pushCompositeComponentToStack(javax.faces.component.UIComponent parent)
pushCompositeComponentToStack
in class FaceletCompositionContext
public void popCompositeComponentToStack()
popCompositeComponentToStack
in class FaceletCompositionContext
public javax.faces.component.UniqueIdVendor getUniqueIdVendorFromStack()
FaceletCompositionContext
getUniqueIdVendorFromStack
in class FaceletCompositionContext
public void popUniqueIdVendorToStack()
popUniqueIdVendorToStack
in class FaceletCompositionContext
public void pushUniqueIdVendorToStack(javax.faces.component.UniqueIdVendor parent)
pushUniqueIdVendorToStack
in class FaceletCompositionContext
public java.lang.String getFirstValidationGroupFromStack()
getFirstValidationGroupFromStack
in class FaceletCompositionContext
public void popValidationGroupsToStack()
popValidationGroupsToStack
in class FaceletCompositionContext
public void pushValidationGroupsToStack(java.lang.String validationGroups)
pushValidationGroupsToStack
in class FaceletCompositionContext
validationGroups
- public java.util.Iterator<java.lang.String> getExcludedValidatorIds()
getExcludedValidatorIds
in class FaceletCompositionContext
public void popExcludedValidatorIdToStack()
popExcludedValidatorIdToStack
in class FaceletCompositionContext
public void pushExcludedValidatorIdToStack(java.lang.String validatorId)
pushExcludedValidatorIdToStack
in class FaceletCompositionContext
validatorId
- public java.util.Iterator<java.lang.String> getEnclosingValidatorIds()
getEnclosingValidatorIds
in class FaceletCompositionContext
public void popEnclosingValidatorIdToStack()
popEnclosingValidatorIdToStack
in class FaceletCompositionContext
public void pushEnclosingValidatorIdToStack(java.lang.String validatorId)
pushEnclosingValidatorIdToStack
in class FaceletCompositionContext
validatorId
- public boolean isRefreshingTransientBuild()
FaceletCompositionContext
isRefreshingTransientBuild
in class FaceletCompositionContext
public boolean isMarkInitialState()
FaceletCompositionContext
isMarkInitialState
in class FaceletCompositionContext
public boolean isRefreshTransientBuildOnPSS()
FaceletCompositionContext
isRefreshTransientBuildOnPSS
in class FaceletCompositionContext
public boolean isUsingPSSOnThisView()
FaceletCompositionContext
isUsingPSSOnThisView
in class FaceletCompositionContext
public boolean isMarkInitialStateAndIsRefreshTransientBuildOnPSS()
isMarkInitialStateAndIsRefreshTransientBuildOnPSS
in class FaceletCompositionContext
public void addAttachedObjectHandler(javax.faces.component.UIComponent compositeComponentParent, javax.faces.view.AttachedObjectHandler handler)
FaceletCompositionContext
addAttachedObjectHandler
in class FaceletCompositionContext
public void removeAttachedObjectHandlers(javax.faces.component.UIComponent compositeComponentParent)
FaceletCompositionContext
removeAttachedObjectHandlers
in class FaceletCompositionContext
public java.util.List<javax.faces.view.AttachedObjectHandler> getAttachedObjectHandlers(javax.faces.component.UIComponent compositeComponentParent)
FaceletCompositionContext
getAttachedObjectHandlers
in class FaceletCompositionContext
public void addMethodExpressionTargeted(javax.faces.component.UIComponent targetedComponent, java.lang.String attributeName, java.lang.Object backingValue)
FaceletCompositionContext
addMethodExpressionTargeted
in class FaceletCompositionContext
backingValue
- A value that could be useful to revert its effects.public boolean isMethodExpressionAttributeApplied(javax.faces.component.UIComponent compositeComponentParent, java.lang.String attributeName)
FaceletCompositionContext
isMethodExpressionAttributeApplied
in class FaceletCompositionContext
public void markMethodExpressionAttribute(javax.faces.component.UIComponent compositeComponentParent, java.lang.String attributeName)
FaceletCompositionContext
markMethodExpressionAttribute
in class FaceletCompositionContext
public void clearMethodExpressionAttribute(javax.faces.component.UIComponent compositeComponentParent, java.lang.String attributeName)
FaceletCompositionContext
clearMethodExpressionAttribute
in class FaceletCompositionContext
public java.lang.Object removeMethodExpressionTargeted(javax.faces.component.UIComponent targetedComponent, java.lang.String attributeName)
FaceletCompositionContext
removeMethodExpressionTargeted
in class FaceletCompositionContext
public void markForDeletion(javax.faces.component.UIComponent component)
FaceletCompositionContext
markForDeletion
in class FaceletCompositionContext
component
- UIComponent to mark#finalizeForDeletion(FaceletCompositionContext, UIComponent)
public void finalizeForDeletion(javax.faces.component.UIComponent component)
FaceletCompositionContext
finalizeForDeletion
in class FaceletCompositionContext
component
- UIComponent to finalize
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |