Interface ActionSource2
-
- All Superinterfaces:
ActionSource
- All Known Implementing Classes:
HtmlCommandButton,HtmlCommandLink,UICommand,UIViewAction
public interface ActionSource2 extends ActionSource
ActionSource2 extends
ActionSourceand provides a JavaBeans property analogous to the "action" property onActionSource. The difference is the type of this property is aMethodExpressionrather than aMethodBinding. This allows theActionSourceconcept to leverage the new Unified EL API.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.el.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(javax.el.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 javax.faces.component.ActionSource
addActionListener, getAction, getActionListener, getActionListeners, isImmediate, removeActionListener, setAction, setActionListener, setImmediate
-
-
-
-
Method Detail
-
getActionExpression
javax.el.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.Note that it's possible that the returned
MethodExpressionis just a wrapper around aMethodBindinginstance whith was set by a call toActionSource.setAction(javax.faces.el.MethodBinding). This makes it possible for the defaultActionListenerto continue to work properly with older components.
-
setActionExpression
void setActionExpression(javax.el.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
-
-