Home » RichFaces a4j:Ajax

RichFaces a4j:Ajax

by Online Tutorials Library

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


RichFaces A4j ajax 1

You may also like