5.5. <a4j:commandLink>

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

Figure 5.2. <a4j:commandLink>

Note

Link controls are typically used to perform complete form submissions for data storing. As a consequence, the <a4j:commandLink> component has the execute="@form" setting by default. To limit rendering to a different scope, redefine the execute attribute.

5.5.1. Basic usage

The <a4j:commandLink> requires only the value attribute to function. Use the value attribute to specify the text of the link.
The <a4j:commandLink> uses the click event instead of the submit event.

5.5.2. Reference data

  • component-type: org.richfaces.CommandLink
  • component-class: org.richfaces.component.UICommandLink
  • component-family: javax.faces.Command
  • renderer-type: org.richfaces.CommandLinkRenderer