Class ClientBehaviorRedirectEventComponentWrapper
java.lang.Object
jakarta.faces.component.UIComponent
org.apache.myfaces.view.facelets.tag.composite.ClientBehaviorRedirectEventComponentWrapper
- All Implemented Interfaces:
ClientBehaviorHolder
,PartialStateHolder
,StateHolder
,TransientStateHolder
,ComponentSystemEventListener
,FacesListener
,SystemEventListenerHolder
,FacesWrapper<UIComponent>
,EventListener
public class ClientBehaviorRedirectEventComponentWrapper
extends UIComponent
implements FacesWrapper<UIComponent>, ClientBehaviorHolder
This class has two usages:
1. On ClientBehaviorAttachedObjectTargetImpl to redirect the incoming sourceEvent
to the final targetEvent.
2. On FaceletsViewDeclarationLanguage.retargetAttachedObjects to redirect too, but
this time is to allow chain events for nested composite components.
This class also implements FacesWrapper interface, to make possible to retrieve the
real component if necessary.
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
-
Field Summary
Fields inherited from class jakarta.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionClientBehaviorRedirectEventComponentWrapper
(UIComponent composite, UIComponent delegate, String sourceEvent, String targetEvent, jakarta.el.ValueExpression targets) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClientBehavior
(String eventName, ClientBehavior behavior) protected void
addFacesListener
(FacesListener listener) void
broadcast
(FacesEvent event) void
void
decode
(FacesContext context) void
encodeAll
(FacesContext context) void
encodeBegin
(FacesContext context) void
encodeChildren
(FacesContext context) void
encodeEnd
(FacesContext context) findComponent
(String expr) int
getClientId
(FacesContext context) protected FacesContext
protected FacesListener[]
getFacesListeners
(Class clazz) int
getId()
getListenersForEventClass
(Class<? extends SystemEvent> eventClass) getPassThroughAttributes
(boolean create) protected Renderer
getRenderer
(FacesContext context) boolean
jakarta.el.ValueExpression
jakarta.el.ValueExpression
getValueExpression
(String name) boolean
boolean
invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) boolean
isInView()
boolean
boolean
void
void
processDecodes
(FacesContext context) void
processEvent
(ComponentSystemEvent event) void
processRestoreState
(FacesContext context, Object state) processSaveState
(FacesContext context) void
processUpdates
(FacesContext context) void
processValidators
(FacesContext context) void
queueEvent
(FacesEvent event) protected void
removeFacesListener
(FacesListener listener) void
restoreState
(FacesContext context, Object state) saveState
(FacesContext context) void
void
setInView
(boolean isInView) void
setParent
(UIComponent parent) void
setRendered
(boolean rendered) void
setRendererType
(String rendererType) void
setTransient
(boolean newTransientValue) void
setValueExpression
(String name, jakarta.el.ValueExpression expression) void
subscribeToEvent
(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) void
unsubscribeFromEvent
(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) boolean
visitTree
(VisitContext context, VisitCallback callback) Methods inherited from class jakarta.faces.component.UIComponent
getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getPassThroughAttributes, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, isCompositeComponent, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState
-
Constructor Details
-
ClientBehaviorRedirectEventComponentWrapper
public ClientBehaviorRedirectEventComponentWrapper(UIComponent composite, UIComponent delegate, String sourceEvent, String targetEvent, jakarta.el.ValueExpression targets)
-
-
Method Details
-
getWrapped
- Specified by:
getWrapped
in interfaceFacesWrapper<UIComponent>
-
addClientBehavior
- Specified by:
addClientBehavior
in interfaceClientBehaviorHolder
-
getClientBehaviors
- Specified by:
getClientBehaviors
in interfaceClientBehaviorHolder
-
getDefaultEventName
- Specified by:
getDefaultEventName
in interfaceClientBehaviorHolder
-
getEventNames
- Specified by:
getEventNames
in interfaceClientBehaviorHolder
-
broadcast
- Specified by:
broadcast
in classUIComponent
- Throws:
AbortProcessingException
-
clearInitialState
public void clearInitialState()- Specified by:
clearInitialState
in interfacePartialStateHolder
- Overrides:
clearInitialState
in classUIComponent
-
decode
- Specified by:
decode
in classUIComponent
-
encodeAll
- Overrides:
encodeAll
in classUIComponent
- Throws:
IOException
-
encodeBegin
- Specified by:
encodeBegin
in classUIComponent
- Throws:
IOException
-
encodeChildren
- Specified by:
encodeChildren
in classUIComponent
- Throws:
IOException
-
encodeEnd
- Specified by:
encodeEnd
in classUIComponent
- Throws:
IOException
-
findComponent
- Specified by:
findComponent
in classUIComponent
-
getAttributes
- Specified by:
getAttributes
in classUIComponent
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in classUIComponent
-
getChildren
- Specified by:
getChildren
in classUIComponent
-
getClientId
- Overrides:
getClientId
in classUIComponent
-
getClientId
- Specified by:
getClientId
in classUIComponent
-
getContainerClientId
- Overrides:
getContainerClientId
in classUIComponent
-
getFacet
- Specified by:
getFacet
in classUIComponent
-
getFacetCount
public int getFacetCount()- Overrides:
getFacetCount
in classUIComponent
-
getFacets
- Specified by:
getFacets
in classUIComponent
-
getFacetsAndChildren
- Specified by:
getFacetsAndChildren
in classUIComponent
-
getFamily
- Specified by:
getFamily
in classUIComponent
-
getId
- Specified by:
getId
in classUIComponent
-
getListenersForEventClass
- Specified by:
getListenersForEventClass
in interfaceSystemEventListenerHolder
- Overrides:
getListenersForEventClass
in classUIComponent
-
getNamingContainer
- Overrides:
getNamingContainer
in classUIComponent
-
getParent
- Specified by:
getParent
in classUIComponent
-
getRendererType
- Specified by:
getRendererType
in classUIComponent
-
getRendersChildren
public boolean getRendersChildren()- Specified by:
getRendersChildren
in classUIComponent
-
getResourceBundleMap
- Overrides:
getResourceBundleMap
in classUIComponent
-
getValueExpression
- Overrides:
getValueExpression
in classUIComponent
-
initialStateMarked
public boolean initialStateMarked()- Specified by:
initialStateMarked
in interfacePartialStateHolder
- Overrides:
initialStateMarked
in classUIComponent
-
invokeOnComponent
public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException - Overrides:
invokeOnComponent
in classUIComponent
- Throws:
FacesException
-
isInView
public boolean isInView()- Overrides:
isInView
in classUIComponent
-
isRendered
public boolean isRendered()- Specified by:
isRendered
in classUIComponent
-
isTransient
public boolean isTransient()- Specified by:
isTransient
in interfaceStateHolder
-
markInitialState
public void markInitialState()- Specified by:
markInitialState
in interfacePartialStateHolder
- Overrides:
markInitialState
in classUIComponent
-
processDecodes
- Specified by:
processDecodes
in classUIComponent
-
processEvent
- Specified by:
processEvent
in interfaceComponentSystemEventListener
- Overrides:
processEvent
in classUIComponent
- Throws:
AbortProcessingException
-
processRestoreState
- Specified by:
processRestoreState
in classUIComponent
-
processSaveState
- Specified by:
processSaveState
in classUIComponent
-
processUpdates
- Specified by:
processUpdates
in classUIComponent
-
processValidators
- Specified by:
processValidators
in classUIComponent
-
queueEvent
- Specified by:
queueEvent
in classUIComponent
-
restoreState
- Specified by:
restoreState
in interfaceStateHolder
-
saveState
- Specified by:
saveState
in interfaceStateHolder
-
setId
- Specified by:
setId
in classUIComponent
-
setInView
public void setInView(boolean isInView) - Overrides:
setInView
in classUIComponent
-
setParent
- Specified by:
setParent
in classUIComponent
-
setRendered
public void setRendered(boolean rendered) - Specified by:
setRendered
in classUIComponent
-
setRendererType
- Specified by:
setRendererType
in classUIComponent
-
setTransient
public void setTransient(boolean newTransientValue) - Specified by:
setTransient
in interfaceStateHolder
-
setValueExpression
- Overrides:
setValueExpression
in classUIComponent
-
subscribeToEvent
public void subscribeToEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) - Overrides:
subscribeToEvent
in classUIComponent
-
unsubscribeFromEvent
public void unsubscribeFromEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) - Overrides:
unsubscribeFromEvent
in classUIComponent
-
visitTree
- Overrides:
visitTree
in classUIComponent
-
getFacesContext
- Specified by:
getFacesContext
in classUIComponent
-
addFacesListener
- Specified by:
addFacesListener
in classUIComponent
-
getFacesListeners
- Specified by:
getFacesListeners
in classUIComponent
-
getRenderer
- Specified by:
getRenderer
in classUIComponent
-
removeFacesListener
- Specified by:
removeFacesListener
in classUIComponent
-
getPassThroughAttributes
- Overrides:
getPassThroughAttributes
in classUIComponent
-
getComposite
-
getDelegate
-
getTargets
public jakarta.el.ValueExpression getTargets()
-