@JSFComponent(name="f:viewAction") public class UIViewAction extends UIComponentBase implements ActionSource2
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Constructor and Description |
---|
UIViewAction() |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener listener) |
void |
broadcast(FacesEvent event)
Invoke any listeners attached to this object which are listening for an event whose type matches the specified
event's runtime type.
|
void |
decode(FacesContext context)
Check the submitted form parameters for data associated with this component.
|
MethodBinding |
getAction()
Deprecated.
|
jakarta.el.MethodExpression |
getActionExpression() |
MethodBinding |
getActionListener()
Deprecated.
|
ActionListener[] |
getActionListeners() |
String |
getFamily() |
String |
getPhase() |
boolean |
isImmediate() |
boolean |
isOnPostback() |
static boolean |
isProcessingBroadcast(FacesContext context) |
boolean |
isRendered()
A boolean value that indicates whether this component should be rendered.
|
void |
removeActionListener(ActionListener listener) |
void |
setAction(MethodBinding action)
Deprecated.
Use setActionExpression instead.
|
void |
setActionExpression(jakarta.el.MethodExpression actionExpression) |
void |
setActionListener(MethodBinding actionListener)
Deprecated.
|
void |
setImmediate(boolean immediate) |
void |
setOnPostback(boolean onPostback) |
void |
setPhase(String phase) |
void |
setRendered(boolean condition) |
addClientBehavior, addFacesListener, clearInitialState, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendererType, setTransient, setValueBinding, visitTree
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
public boolean isRendered()
UIComponentBase
isRendered
in class UIComponentBase
public void setRendered(boolean condition)
setRendered
in class UIComponentBase
public void broadcast(FacesEvent event) throws AbortProcessingException
UIComponentBase
This method does not propagate the event up to parent components, ie listeners attached to parent components don't automatically get called.
If any of the listeners throws AbortProcessingException then that exception will prevent any further listener callbacks from occurring, and the exception propagates out of this method without alteration.
ActionEvent events are typically queued by the renderer associated with this component in its decode method; ValueChangeEvent events by the component's validate method. In either case the event's source property references a component. At some later time the UIViewRoot component iterates over its queued events and invokes the broadcast method on each event's source object.
broadcast
in class UIComponentBase
event
- must not be null.AbortProcessingException
public void decode(FacesContext context)
UIComponentBase
decode
in class UIComponentBase
@Deprecated public MethodBinding getAction()
getAction
in interface ActionSource
@Deprecated public void setAction(MethodBinding action)
setAction
in interface ActionSource
@JSFProperty public boolean isImmediate()
isImmediate
in interface ActionSource
public void setImmediate(boolean immediate)
setImmediate
in interface ActionSource
@JSFProperty(stateHolder=true, returnSignature="java.lang.Object", jspName="action", clientEvent="action") public jakarta.el.MethodExpression getActionExpression()
getActionExpression
in interface ActionSource2
public void setActionExpression(jakarta.el.MethodExpression actionExpression)
setActionExpression
in interface ActionSource2
@Deprecated @JSFProperty(stateHolder=true, returnSignature="void", methodSignature="jakarta.faces.event.ActionEvent") public MethodBinding getActionListener()
getActionListener
in interface ActionSource
@Deprecated @JSFProperty(returnSignature="void", methodSignature="jakarta.faces.event.ActionEvent") public void setActionListener(MethodBinding actionListener)
setActionListener
in interface ActionSource
public void addActionListener(ActionListener listener)
addActionListener
in interface ActionSource
public void removeActionListener(ActionListener listener)
removeActionListener
in interface ActionSource
@JSFListener(event="jakarta.faces.event.ActionEvent", phases="Invoke Application, Apply Request Values") public ActionListener[] getActionListeners()
getActionListeners
in interface ActionSource
@JSFProperty public String getPhase()
public void setPhase(String phase)
@JSFProperty public boolean isOnPostback()
public void setOnPostback(boolean onPostback)
public static boolean isProcessingBroadcast(FacesContext context)
public String getFamily()
getFamily
in class UIComponent
Copyright © 2021 The Apache Software Foundation. All rights reserved.