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 TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Return theMethodExpression
pointing at the application action to be invoked, if thisUIComponent
is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of theimmediate
property.void
setActionExpression
(MethodExpression action) Deprecated, for removal: This API element is subject to removal in a future version.Set theMethodExpression
pointing at the appication action to be invoked, if thisUIComponent
is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of theimmediate
property.Methods inherited from interface jakarta.faces.component.ActionSource
addActionListener, getActionListeners, isImmediate, removeActionListener, setImmediate
-
Method Details
-
getActionExpression
MethodExpression getActionExpression()Deprecated, for removal: This API element is subject to removal in a future version.Return the
MethodExpression
pointing at the application action to be invoked, if thisUIComponent
is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of theimmediate
property.- Specified by:
getActionExpression
in interfaceActionSource
- Returns:
- the action expression.
-
setActionExpression
Deprecated, for removal: This API element is subject to removal in a future version.Set the
MethodExpression
pointing at the appication action to be invoked, if thisUIComponent
is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of theimmediate
property.Any method referenced by such an expression must be public, with a return type of
String
, and accept no parameters.- Specified by:
setActionExpression
in interfaceActionSource
- Parameters:
action
- The new method expression
-
ActionSource
instead.