Interface ActionSource2

All Superinterfaces:
ActionSource

@Deprecated(since="4.1", forRemoval=true) public interface ActionSource2 extends ActionSource
Deprecated, for removal: This API element is subject to removal in a future version.
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 Type
    Method
    Description
    jakarta.el.MethodExpression
    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 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.
    void
    setActionExpression(jakarta.el.MethodExpression action)
    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 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.

    Methods inherited from interface ActionSource

    addActionListener, getActionListeners, isImmediate, removeActionListener, setImmediate
    Modifier and Type
    Method
    Description
    void
    Add a new ActionListener to the set of listeners interested in being notified when ActionEvents occur.
    Return the set of registered ActionListeners for this ActionSource instance.
    boolean
    Return a flag indicating that the default ActionListener provided 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.
    void
    Remove an existing ActionListener (if any) from the set of listeners interested in being notified when ActionEvents occur.
    void
    setImmediate(boolean immediate)
    Set the "immediate execution" flag for this UIComponent.
  • Method Details

    • getActionExpression

      jakarta.el.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 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.

      Specified by:
      getActionExpression in interface ActionSource
      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 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.

      Specified by:
      setActionExpression in interface ActionSource
      Parameters:
      action - The new method expression