Top Description Methods
jakarta.faces.component

public Interface ActionSource2

extends ActionSource
Annotations
@Deprecated
since:4.1
forRemoval:true
Imports
jakarta.el.MethodExpression

Deprecated

for removal since 4.1.

Use ActionSource instead.

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 TypeMethod and Description
public MethodExpression

Returns:

the action expression.
getActionExpression
()

Redeclares as abstract: jakarta.faces.component.ActionSource.getActionExpression.

Return the MethodExpression pointing at the application action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property.

public void
setActionExpression(MethodExpression
The new method expression
action
)

Redeclares as abstract: jakarta.faces.component.ActionSource.setActionExpression.

Set the MethodExpression pointing at the appication action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property.

Inherited from jakarta.faces.component.ActionSource:
addActionListenergetActionListenersisImmediateremoveActionListenersetImmediate

Method Detail

getActionExpressionback to summary
public MethodExpression getActionExpression()

Redeclares as abstract: jakarta.faces.component.ActionSource.getActionExpression.

Return the MethodExpression pointing at the application action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property.

Returns:MethodExpression

the action expression.

setActionExpressionback to summary
public void setActionExpression(MethodExpression action)

Redeclares as abstract: jakarta.faces.component.ActionSource.setActionExpression.

Set the MethodExpression pointing at the appication action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property.

Any method referenced by such an expression must be public, with a return type of String, and accept no parameters.

Parameters
action:MethodExpression

The new method expression