|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIViewAction
@JSFComponent(name="f:viewAction") public class UIViewAction
Field Summary | |
---|---|
static String |
COMPONENT_FAMILY
|
static String |
COMPONENT_TYPE
|
Fields inherited from class javax.faces.component.UIComponent |
---|
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY |
Constructor Summary | |
---|---|
UIViewAction()
|
Method Summary | |
---|---|
void |
addActionListener(ActionListener listener)
|
void |
broadcast(FacesEvent event)
Invoke any listeners attached to this object which are listening for an event whose type matches the specified event's runtime type. |
void |
decode(FacesContext context)
Check the submitted form parameters for data associated with this component. |
MethodBinding |
getAction()
|
javax.el.MethodExpression |
getActionExpression()
|
MethodBinding |
getActionListener()
|
ActionListener[] |
getActionListeners()
|
String |
getFamily()
|
String |
getPhase()
|
Object |
getValue()
|
boolean |
isImmediate()
|
boolean |
isOnPostback()
|
static boolean |
isProcessingBroadcast(FacesContext context)
|
void |
queueEvent(FacesEvent event)
|
void |
removeActionListener(ActionListener listener)
|
void |
setAction(MethodBinding action)
Deprecated. Use setActionExpression instead. |
void |
setActionExpression(javax.el.MethodExpression actionExpression)
|
void |
setActionListener(MethodBinding actionListener)
Deprecated. |
void |
setImmediate(boolean immediate)
|
void |
setOnPostback(boolean onPostback)
|
void |
setPhase(String phase)
|
void |
setValue(Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
Constructor Detail |
---|
public UIViewAction()
Method Detail |
---|
public void broadcast(FacesEvent event) throws AbortProcessingException
UIComponentBase
This method does not propagate the event up to parent components, ie listeners attached to parent components don't automatically get called.
If any of the listeners throws AbortProcessingException then that exception will prevent any further listener callbacks from occurring, and the exception propagates out of this method without alteration.
ActionEvent events are typically queued by the renderer associated with this component in its decode method; ValueChangeEvent events by the component's validate method. In either case the event's source property references a component. At some later time the UIViewRoot component iterates over its queued events and invokes the broadcast method on each event's source object.
broadcast
in class UIComponentBase
event
- must not be null.
AbortProcessingException
public void decode(FacesContext context)
UIComponentBase
decode
in class UIComponentBase
public void queueEvent(FacesEvent event)
queueEvent
in class UIComponentBase
public MethodBinding getAction()
getAction
in interface ActionSource
public void setAction(MethodBinding action)
setAction
in interface ActionSource
@JSFProperty public boolean isImmediate()
isImmediate
in interface ActionSource
public void setImmediate(boolean immediate)
setImmediate
in interface ActionSource
@JSFProperty public Object getValue()
public void setValue(Object value)
@JSFProperty(stateHolder=true, returnSignature="java.lang.Object", jspName="action", clientEvent="action") public javax.el.MethodExpression getActionExpression()
getActionExpression
in interface ActionSource2
public void setActionExpression(javax.el.MethodExpression actionExpression)
setActionExpression
in interface ActionSource2
@JSFProperty(stateHolder=true, returnSignature="void", methodSignature="javax.faces.event.ActionEvent") public MethodBinding getActionListener()
getActionListener
in interface ActionSource
@JSFProperty(returnSignature="void", methodSignature="javax.faces.event.ActionEvent") public void setActionListener(MethodBinding actionListener)
setActionListener
in interface ActionSource
public void addActionListener(ActionListener listener)
addActionListener
in interface ActionSource
public void removeActionListener(ActionListener listener)
removeActionListener
in interface ActionSource
@JSFListener(event="javax.faces.event.ActionEvent", phases="Invoke Application, Apply Request Values") public ActionListener[] getActionListeners()
getActionListeners
in interface ActionSource
@JSFProperty public String getPhase()
public void setPhase(String phase)
@JSFProperty public boolean isOnPostback()
public void setOnPostback(boolean onPostback)
public static boolean isProcessingBroadcast(FacesContext context)
public String getFamily()
getFamily
in class UIComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |