Class AjaxBehavior

java.lang.Object
All Implemented Interfaces:
Behavior, ClientBehavior, PartialStateHolder, StateHolder
Direct Known Subclasses:
RetargetedAjaxBehavior

public class AjaxBehavior extends ClientBehaviorBase

An instance of this class is added as a ClientBehavior to a component using the ClientBehaviorHolder.addClientBehavior(java.lang.String, jakarta.faces.component.behavior.ClientBehavior) 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 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.

Since:
2.0