<f:ajax> which is retargeted by <cc:clientBehavior> in AjaxHandler and checked in AjaxBehaviorRenderer.
We should probably introduce AjaxBehaviorWrapper in Faces.next to reduce boilerplate like this.
- https://github.com/jakartaee/faces/issues/1567
- https://github.com/eclipse-ee4j/mojarra/issues/5032
| Modifier and Type | Field and Description |
|---|---|
| private AjaxBehavior | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAjaxBehaviorListener(AjaxBehaviorListener
The listener)AjaxBehaviorListener to be registeredOverrides jakarta.
Add the specified |
| public void | broadcast(BehaviorEvent
The event)BehaviorEvent to be broadcastOverrides jakarta. Implements jakarta.
Broadcast the specified |
| public void | clearInitialState()
Overrides jakarta. Implements jakarta. Clears the initial state flag, causing the behavior to revert from partial to full state saving. |
| public void | decode(FacesContext
FacesContext for the request we are processingUIComponent the component associated with this ClientBehaviorOverrides jakarta. Implements jakarta.
Default implementation of of |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | getDelay()
Overrides jakarta.
Returns the delay value, or |
| public Collection | getExecute()
Overrides jakarta.
Return a non-empty |
| public Set | getHints()
Overrides jakarta. Implements jakarta.
This method returns an unmodifiable |
| public String | getOnerror()
Overrides jakarta.
Return the |
| public String | getOnevent()
Overrides jakarta.
Return the |
| public Collection | getRender()
Overrides jakarta.
Return a non-empty |
| public String | getRendererType()
Overrides jakarta.
Returns the renderer type of the |
| public String | getScript(ClientBehaviorContext behaviorContext)
Overrides jakarta. Implements jakarta.
Default implementation of of |
| public List | |
| public ValueExpression | getValueExpression(String
Name of the property for which to retrieve a name)ValueExpressionOverrides jakarta.
Returns the |
| public int | |
| public boolean | |
| public boolean | isDisabled()
Overrides jakarta. Return the disabled status of this behavior. |
| public boolean | isImmediate()
Overrides jakarta. Return the immediate status of this behavior. |
| public boolean | isImmediateSet()
Overrides jakarta. Tests whether the immediate attribute is specified. |
| public boolean | isResetValues()
Overrides jakarta. Return the resetValues status of this behavior. |
| public boolean | isResetValuesSet()
Overrides jakarta. Tests whether the resetValues attribute is specified. |
| public boolean | isTransient()
Overrides jakarta. Implements jakarta.
Implementation of |
| public void | |
| public void | removeAjaxBehaviorListener(AjaxBehaviorListener
The listener)AjaxBehaviorListener to be removedOverrides jakarta.
Remove the specified |
| public void | restoreState(FacesContext
the Faces context. context, Object the state. state)Overrides jakarta. Implements jakarta.
Implementation of |
| public Object | saveState(FacesContext
the Faces context. context)Overrides jakarta. Implements jakarta.
Implementation of |
| public void | setDelay(String
the ajax delay value delay)Overrides jakarta. If less than delay milliseconds elapses between calls to request() only the most recent one is sent and all other requests are discarded. |
| public void | setDisabled(boolean
the flag to be set. disabled)Overrides jakarta. Sets the disabled status of this behavior. |
| public void | setExecute(Collection<String>
the ids of components to execute execute)Overrides jakarta.
Sets the component identifiers that will be used to identify components that should be processed during the
|
| public void | setImmediate(boolean
the flag to be set. immediate)Overrides jakarta. Sets the immediate status of this behavior. |
| public void | setOnerror(String
the error handling function name onerror)Overrides jakarta. 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)Overrides jakarta. 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)Overrides jakarta.
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)Overrides jakarta. Set the resetValues status of this behavior. |
| public void | setTransient(boolean
boolean pass transientFlag)true if this Object will
not participate in state saving or restoring, otherwise pass false.Overrides jakarta. Implements jakarta.
Implementation of |
| public void | setValueExpression(String
Name of the property for which to set a name, ValueExpression binding)ValueExpressionOverrides jakarta.
Sets the |
| public String |
| retargeted | back to summary |
|---|---|
| private AjaxBehavior retargeted | |
| targetClientIds | back to summary |
|---|---|
| private List<String> targetClientIds | |
| RetargetedAjaxBehavior | back to summary |
|---|---|
| public RetargetedAjaxBehavior(AjaxBehavior retargeted, List<String> targetClientIds) | |
| addAjaxBehaviorListener | back to summary |
|---|---|
| public void addAjaxBehaviorListener(AjaxBehaviorListener listener) Overrides jakarta. Doc from jakarta.
Add the specified
| |
| broadcast | back to summary |
|---|---|
| public void broadcast(BehaviorEvent event) throws AbortProcessingException Overrides jakarta. Implements jakarta. Doc from jakarta.
Broadcast the specified
| |
| clearInitialState | back to summary |
|---|---|
| public void clearInitialState() Overrides jakarta. Implements jakarta. Doc from jakarta. Clears the initial state flag, causing the behavior to revert from partial to full state saving.
| |
| decode | back to summary |
|---|---|
| public void decode(FacesContext context, UIComponent component) Overrides jakarta. Implements jakarta. Doc from jakarta.
Default implementation of of
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getDelay | back to summary |
|---|---|
| public String getDelay() Overrides jakarta. Doc from jakarta.
Returns the delay value, or | |
| getExecute | back to summary |
|---|---|
| public Collection Overrides jakarta. Doc from jakarta.
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. Doc from jakarta.
This method returns an unmodifiable
| |
| getOnerror | back to summary |
|---|---|
| public String getOnerror() Overrides jakarta. Doc from jakarta.
Return the | |
| getOnevent | back to summary |
|---|---|
| public String getOnevent() Overrides jakarta. Doc from jakarta.
Return the | |
| getRender | back to summary |
|---|---|
| public Collection Overrides jakarta. Doc from jakarta.
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 | |
| getScript | back to summary |
|---|---|
| public String getScript(ClientBehaviorContext behaviorContext) Overrides jakarta. Implements jakarta. Doc from jakarta.
Default implementation of of
| |
| getTargetClientIds | back to summary |
|---|---|
| public List | |
| getValueExpression | back to summary |
|---|---|
| public ValueExpression getValueExpression(String name) Overrides jakarta. Doc from jakarta.
Returns the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initialStateMarked | back to summary |
|---|---|
| public boolean initialStateMarked() Overrides jakarta. Implements jakarta. Doc from jakarta.
Implementation of
| |
| isDisabled | back to summary |
|---|---|
| public boolean isDisabled() Overrides jakarta. Doc from jakarta. Return the disabled status of this behavior.
| |
| isImmediate | back to summary |
|---|---|
| public boolean isImmediate() Overrides jakarta. Doc from jakarta. Return the immediate status of this behavior.
| |
| isImmediateSet | back to summary |
|---|---|
| public boolean isImmediateSet() Overrides jakarta. Doc from jakarta.
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() Overrides jakarta. Doc from jakarta. Return the resetValues status of this behavior.
| |
| isResetValuesSet | back to summary |
|---|---|
| public boolean isResetValuesSet() Overrides jakarta. Doc from jakarta. 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.
| |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() Overrides jakarta. Implements jakarta. Doc from jakarta.
Implementation of
| |
| markInitialState | back to summary |
|---|---|
| public void markInitialState() Overrides jakarta. Implements jakarta. Doc from jakarta.
Implementation of
| |
| removeAjaxBehaviorListener | back to summary |
|---|---|
| public void removeAjaxBehaviorListener(AjaxBehaviorListener listener) Overrides jakarta. Doc from jakarta.
Remove the specified
| |
| restoreState | back to summary |
|---|---|
| public void restoreState(FacesContext context, Object state) Overrides jakarta. Implements jakarta. Doc from jakarta.
Implementation of
| |
| 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) Overrides jakarta. Doc from jakarta.
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) Overrides jakarta. Doc from jakarta. Sets the disabled status of this behavior.
| |
| setExecute | back to summary |
|---|---|
| public void setExecute(Collection<String> execute) Overrides jakarta. Doc from jakarta.
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) Overrides jakarta. Doc from jakarta. Sets the immediate status of this behavior.
| |
| setOnerror | back to summary |
|---|---|
| public void setOnerror(String onerror) Overrides jakarta. Doc from jakarta. 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) Overrides jakarta. Doc from jakarta. 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) Overrides jakarta. Doc from jakarta.
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) Overrides jakarta. Doc from jakarta. Set the resetValues status of this behavior.
| |
| setTransient | back to summary |
|---|---|
| public void setTransient(boolean transientFlag) Overrides jakarta. Implements jakarta. Doc from jakarta.
Implementation of
| |
| setValueExpression | back to summary |
|---|---|
| public void setValueExpression(String name, ValueExpression binding) Overrides jakarta. Doc from jakarta.
Sets the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |