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.


Example

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

JSF File

// commandLink.xhtml

Managed Bean

// User.java

Output:

RichFaces A4j commandlink 1





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA