Interface ActionSource2
- All Superinterfaces:
ActionSource
ActionSource2 extends ActionSource and provides a JavaBeans
"action" property. The type of this property is a MethodExpression.
This allows the ActionSource concept to leverage the Jakarta Expression Language API.
- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.el.MethodExpressionDeprecated, for removal: This API element is subject to removal in a future version.Return theMethodExpressionpointing at the application action to be invoked, if thisUIComponentis activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of theimmediateproperty.voidsetActionExpression(jakarta.el.MethodExpression action) Deprecated, for removal: This API element is subject to removal in a future version.Set theMethodExpressionpointing at the appication action to be invoked, if thisUIComponentis activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of theimmediateproperty.Methods inherited from interface ActionSource
addActionListener, getActionListeners, isImmediate, removeActionListener, setImmediateModifier and TypeMethodDescriptionvoidaddActionListener(ActionListener listener) Add a newActionListenerto the set of listeners interested in being notified whenActionEvents occur.Return the set of registeredActionListeners for thisActionSourceinstance.booleanReturn a flag indicating that the defaultActionListenerprovided by the Jakarta Faces implementation should be executed immediately (that is, during Apply Request Values phase of the request processing lifecycle), rather than waiting until the Invoke Application phase.voidremoveActionListener(ActionListener listener) Remove an existingActionListener(if any) from the set of listeners interested in being notified whenActionEvents occur.voidsetImmediate(boolean immediate) Set the "immediate execution" flag for thisUIComponent.
-
Method Details
-
getActionExpression
jakarta.el.MethodExpression getActionExpression()Deprecated, for removal: This API element is subject to removal in a future version.Return the
MethodExpressionpointing at the application action to be invoked, if thisUIComponentis activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of theimmediateproperty.- Specified by:
getActionExpressionin interfaceActionSource- Returns:
- the action expression.
-
setActionExpression
void setActionExpression(jakarta.el.MethodExpression action) Deprecated, for removal: This API element is subject to removal in a future version.Set the
MethodExpressionpointing at the appication action to be invoked, if thisUIComponentis activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of theimmediateproperty.Any method referenced by such an expression must be public, with a return type of
String, and accept no parameters.- Specified by:
setActionExpressionin interfaceActionSource- Parameters:
action- The new method expression
-
ActionSourceinstead.