public class ComponentControlBehavior extends ClientBehavior
The <rich:componentControl> behavior allows JavaScript API functions to be called on target components. The functions are called after defined events are triggered on the component to with the <rich:componentControl> behavior is attached. Initialization variants and activation events can be customized, and parameters can be passed to the target component.
Modifier and Type | Field and Description |
---|---|
static String |
BEHAVIOR_ID |
Constructor and Description |
---|
ComponentControlBehavior() |
Modifier and Type | Method and Description |
---|---|
List<javax.faces.component.UIComponent> |
getChildren() |
String |
getEvent()
Name of JavaScript event property (click, change, etc.) of parent component that triggers the behavior.
|
String |
getOnbeforeoperation()
Javascript invoked just before the operation will be invoked on target component.
|
String |
getOperation()
The function of JavaScript API that will be invoked on the target components (selected with target or selector
attributes).
|
String |
getRendererType() |
String |
getSelector()
jQuery selector (CSS selector with jQuery extensions) which finds target component which will be the operation fired on.
|
String |
getTarget()
Comma-separated list of component IDs of components which will be the operation fired on.
|
void |
setEvent(String event) |
void |
setLiteralAttribute(String name,
Object value) |
void |
setOnbeforeoperation(String onbeforeoperation) |
void |
setOperation(String operation) |
void |
setSelector(String selector) |
void |
setTarget(String target) |
compare, getFacesContext, getStateHelper, getValueExpression, restoreState, saveState, setLiteralValue, setValueExpression
decode, getHints, getRenderer, getScript
addBehaviorListener, broadcast, clearInitialState, initialStateMarked, isTransient, markInitialState, removeBehaviorListener, setTransient
public static final String BEHAVIOR_ID
public List<javax.faces.component.UIComponent> getChildren()
public String getEvent()
public void setEvent(String event)
public String getTarget()
public void setTarget(String target)
public String getSelector()
public void setSelector(String selector)
public String getOperation()
public void setOperation(String operation)
public String getOnbeforeoperation()
public void setOnbeforeoperation(String onbeforeoperation)
public String getRendererType()
getRendererType
in class javax.faces.component.behavior.ClientBehaviorBase
public void setLiteralAttribute(String name, Object value)
setLiteralAttribute
in class ClientBehavior
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.