It allows Ajax capability to a non-Ajax component. The non-Ajax component must implement the ClientBehaviorHolder interface for all the event attributes that support behavior rendering.
We must use event attribute to the standard JSF event that triggers the behavior. If the event attribute is not defined, the behavior is triggered on the event that normally provides interaction behavior for the parent component.
RichFaces <a4j:ajax> Example
Here, in the following example, we are implementing <a4j:ajax> component. This example contains the following files.