Javatpoint Logo
Javatpoint Logo

RichFaces <a4j:ajax>

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.

JSF File

// ajax-event.xhtml

Managed Bean



RichFaces A4j ajax 1

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA