|
Préférences
Moteurs de recherche
|
||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.faces.component
|
Method Summary | |
---|---|
MethodExpression |
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. |
void |
setActionExpression(MethodExpression action)
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 javax.faces.component.ActionSource |
---|
addActionListener, getAction, getActionListener, getActionListeners, isImmediate, removeActionListener, setAction, setActionListener, setImmediate |
Method Detail |
---|
MethodExpression 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.
Note that it's possible that the returned
MethodExpression
is just a wrapper around a
MethodBinding
instance whith was set by a call to
ActionSource.setAction(javax.faces.el.MethodBinding)
. This makes it possible for the
default ActionListener
to continue to work properly with
older components.
void setActionExpression(MethodExpression action)
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.
action
- The new method expression