Javatpoint Logo
Javatpoint Logo

RichFaces <a4j:commandLink>

It is similar to the JavaServer Faces ( JSF) <h:commandLink> component except that it includes plugged-in Ajax behavior.

The <a4j:commandLink> requires only the value attribute to be used. We should use this attribute to set text for the link.

Note - The <a4j:commandLink> uses the click event instead of the submit event.


Here, in the following example, we are implementing <a4j:commandLink>component. This example contains the following files.

JSF File

// commandLink.xhtml

Managed Bean



RichFaces A4j commandlink 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