An instance of this class is added as a
ClientBehavior
to a component using the
jakarta.faces.component.behavior.ClientBehaviorHolder#addClientBehavior
contract that components implement.
The presence of this ClientBehavior
will cause the rendering of JavaScript that produces an Ajax
request using the specification public JavaScript API when the component is rendered.
If the component is an instance of jakarta.faces.component.EditableValueHolder
, Where at all possible, the
component must have the UI register the ajax event when the initial value is changed, not when focus is lost on the
component.
Modifier and Type | Field and Description |
---|---|
private static String | |
private static List | |
public static final String | BEHAVIOR_ID
The standard id for this behavior. |
private Map | |
private String | |
private static final String | |
private Boolean | |
private static final String | |
private List | |
private static final String | |
private static String | |
private static List | |
private static final Set | |
private Boolean | |
private static final String | |
private static String | |
private static List | |
private String | |
private static final String | |
private String | |
private static final String | |
private List | |
private static final String | |
private static final String | |
private Boolean | |
private static Pattern | |
private static String | |
private static List |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | addAjaxBehaviorListener(AjaxBehaviorListener
The listener)AjaxBehaviorListener to be registered
Add the specified |
private List | |
private Object | |
private Collection | |
public String | |
public Collection | Returns: the JavaScript function name ofEXECUTE .
Return a non-empty |
public Set | getHints()
Overrides jakarta. Implements jakarta.
This method returns an unmodifiable |
public String | Returns: the JavaScript function name ofONERROR .
Return the |
public String | Returns: the JavaScript function name ofONEVENT .
Return the |
public Collection | Returns: the ids of components to render.
Return a non-empty |
public String | getRendererType()
Overrides jakarta.
Returns the renderer type of the |
public ValueExpression | Returns: theValueExpression .Name of the property for which to retrieve a name)ValueExpression
Returns the |
public boolean | Returns: the disabled status of this behavior.Return the disabled status of this behavior. |
public boolean | |
public boolean | Returns: the flag whether the immediate attribute is specified.Tests whether the immediate attribute is specified. |
public boolean | |
public boolean | Returns: the flag whether the resetValues attribute is specified.Tests whether the resetValues attribute is specified. |
public void | removeAjaxBehaviorListener(AjaxBehaviorListener
The listener)AjaxBehaviorListener to be removed
Remove the specified |
private static Map | |
private static List | |
public void | restoreState(FacesContext
the Faces context. context, Object the state. state)Overrides jakarta. Implements jakarta.
Implementation of |
private static Object | |
private static Object | |
public Object | saveState(FacesContext
the Faces context. context)Overrides jakarta. Implements jakarta.
Implementation of |
public void | |
public void | |
public void | setExecute(Collection<String>
the ids of components to execute execute)
Sets the component identifiers that will be used to identify components that should be processed during the
|
public void | |
private void | |
public void | setOnerror(String
the error handling function name onerror)Sets the JavaScript function name that will be used to identify the client callback function that should be run in the event of an error. |
public void | setOnevent(String
the event handling function name onevent)Sets the JavaScript function name that will be used to identify the client callback function that should be run in response to event activity. |
public void | setRender(Collection<String>
the ids of components to render render)
Sets the component identifiers that will be used to identify components that should be processed during the
|
public void | setResetValues(boolean
the resetValues status. resetValues)Set the resetValues status of this behavior. |
public void | setValueExpression(String
Name of the property for which to set a name, ValueExpression binding)ValueExpression
Sets the |
private static List | |
private static List |
ALL | back to summary |
---|---|
private static String ALL |
ALL_LIST | back to summary |
---|---|
private static List<String> ALL_LIST |
BEHAVIOR_ID | back to summary |
---|---|
public static final String BEHAVIOR_ID The standard id for this behavior. |
bindings | back to summary |
---|---|
private Map<String, ValueExpression> bindings |
delay | back to summary |
---|---|
private String delay |
DELAY | back to summary |
---|---|
private static final String DELAY |
disabled | back to summary |
---|---|
private Boolean disabled |
DISABLED | back to summary |
---|---|
private static final String DISABLED |
execute | back to summary |
---|---|
private List<String> execute |
EXECUTE | back to summary |
---|---|
private static final String EXECUTE |
FORM | back to summary |
---|---|
private static String FORM |
FORM_LIST | back to summary |
---|---|
private static List<String> FORM_LIST |
HINTS | back to summary |
---|---|
private static final Set<ClientBehaviorHint> HINTS |
immediate | back to summary |
---|---|
private Boolean immediate |
IMMEDIATE | back to summary |
---|---|
private static final String IMMEDIATE |
NONE | back to summary |
---|---|
private static String NONE |
NONE_LIST | back to summary |
---|---|
private static List<String> NONE_LIST |
onerror | back to summary |
---|---|
private String onerror |
ONERROR | back to summary |
---|---|
private static final String ONERROR |
onevent | back to summary |
---|---|
private String onevent |
ONEVENT | back to summary |
---|---|
private static final String ONEVENT |
render | back to summary |
---|---|
private List<String> render |
RENDER | back to summary |
---|---|
private static final String RENDER |
RESET_VALUES | back to summary |
---|---|
private static final String RESET_VALUES |
resetValues | back to summary |
---|---|
private Boolean resetValues |
SPLIT_PATTERN | back to summary |
---|---|
private static Pattern SPLIT_PATTERN |
THIS | back to summary |
---|---|
private static String THIS |
THIS_LIST | back to summary |
---|---|
private static List<String> THIS_LIST |
AjaxBehavior | back to summary |
---|---|
public AjaxBehavior() Default constructor that just creates this instance. |
addAjaxBehaviorListener | back to summary |
---|---|
public void addAjaxBehaviorListener(AjaxBehaviorListener listener)
Add the specified
|
copyToList | back to summary |
---|---|
private List |
eval | back to summary |
---|---|
private Object eval(String propertyName, Object value) |
getCollectionValue | back to summary |
---|---|
private Collection
|
getDelay | back to summary |
---|---|
public String getDelay()
Returns the delay value, or
|
getExecute | back to summary |
---|---|
public Collection
Return a non-empty
Note that the returned collection may be unmodifiable. Modifications should be performed by calling
|
getHints | back to summary |
---|---|
public Set Overrides jakarta. Implements jakarta.
This method returns an unmodifiable
|
getOnerror | back to summary |
---|---|
public String getOnerror()
Return the
|
getOnevent | back to summary |
---|---|
public String getOnevent()
Return the
|
getRender | back to summary |
---|---|
public Collection
Return a non-empty
Note that the returned collection may be unmodifiable. Modifications should be performed by calling
|
getRendererType | back to summary |
---|---|
public String getRendererType() Overrides jakarta. Doc from jakarta.
Returns the renderer type of the |
getValueExpression | back to summary |
---|---|
public ValueExpression getValueExpression(String name)
Returns the
|
isDisabled | back to summary |
---|---|
public boolean isDisabled() Return the disabled status of this behavior.
|
isImmediate | back to summary |
---|---|
public boolean isImmediate() Return the immediate status of this behavior.
|
isImmediateSet | back to summary |
---|---|
public boolean isImmediateSet()
Tests whether the immediate attribute is specified. Returns true if the immediate attribute is specified, either as a
locally set property or as a value expression. This information allows an associated client behavior renderer to fall
back on the parent component's immediate status when immediate is not explicitly specified on the
|
isResetValues | back to summary |
---|---|
public boolean isResetValues() Return the resetValues status of this behavior.
|
isResetValuesSet | back to summary |
---|---|
public boolean isResetValuesSet() Tests whether the resetValues attribute is specified. Returns true if the resetValues attribute is specified, either as a locally set property or as a value expression.
|
removeAjaxBehaviorListener | back to summary |
---|---|
public void removeAjaxBehaviorListener(AjaxBehaviorListener listener)
Remove the specified
|
restoreBindings | back to summary |
---|---|
private static Map |
restoreList | back to summary |
---|---|
private static List |
restoreState | back to summary |
---|---|
public void restoreState(FacesContext context, Object state) Overrides jakarta. Implements jakarta. Doc from jakarta.
Implementation of
|
saveBindings | back to summary |
---|---|
private static Object saveBindings(FacesContext context, Map<String, ValueExpression> bindings) |
saveList | back to summary |
---|---|
private static Object saveList(List<String> list) |
saveState | back to summary |
---|---|
public Object saveState(FacesContext context) Overrides jakarta. Implements jakarta. Doc from jakarta.
Implementation of
|
setDelay | back to summary |
---|---|
public void setDelay(String delay)
If less than delay milliseconds elapses between calls to request() only the most recent one is sent
and all other requests are discarded. The default value of this option is 300. If the value of delay is the
literal string
|
setDisabled | back to summary |
---|---|
public void setDisabled(boolean disabled) Sets the disabled status of this behavior.
|
setExecute | back to summary |
---|---|
public void setExecute(Collection<String> execute)
Sets the component identifiers that will be used to identify components that should be processed during the
|
setImmediate | back to summary |
---|---|
public void setImmediate(boolean immediate) Sets the immediate status of this behavior.
|
setLiteralValue | back to summary |
---|---|
private void setLiteralValue(String propertyName, ValueExpression expression) |
setOnerror | back to summary |
---|---|
public void setOnerror(String onerror) Sets the JavaScript function name that will be used to identify the client callback function that should be run in the event of an error.
|
setOnevent | back to summary |
---|---|
public void setOnevent(String onevent) Sets the JavaScript function name that will be used to identify the client callback function that should be run in response to event activity.
|
setRender | back to summary |
---|---|
public void setRender(Collection<String> render)
Sets the component identifiers that will be used to identify components that should be processed during the
|
setResetValues | back to summary |
---|---|
public void setResetValues(boolean resetValues) Set the resetValues status of this behavior.
|
setValueExpression | back to summary |
---|---|
public void setValueExpression(String name, ValueExpression binding)
Sets the
|
toList | back to summary |
---|---|
private static List |
toSingletonList | back to summary |
---|---|
private static List |