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

// User.java

Output:

RichFaces A4j ajax 1




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA