Interface ActionSource2
-
- All Superinterfaces:
ActionSource
- All Known Implementing Classes:
HtmlCommandButton,HtmlCommandLink,HtmlCommandScript,UICommand,UIViewAction
public interface ActionSource2 extends ActionSource
ActionSource2 extends
ActionSourceand provides a JavaBeans "action" property. The type of this property is aMethodExpression. This allows theActionSourceconcept to leverage the Jakarta Expression Language API.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodExpressiongetActionExpression()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(MethodExpression action)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 jakarta.faces.component.ActionSource
addActionListener, getActionListeners, isImmediate, removeActionListener, setImmediate
-
-
-
-
Method Detail
-
getActionExpression
MethodExpression getActionExpression()
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.- Returns:
- the action expression.
-
setActionExpression
void setActionExpression(MethodExpression action)
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.- Parameters:
action- The new method expression
-
-