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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA