Javatpoint Logo
Javatpoint Logo

RichFaces <a4j:param>

It combines the functionalities of the JavaServer Faces ( JSF) components <f:param> and <f:actionListener>. It can be used with non-Ajax components in addition to Ajax components. It includes components such as the <h:link> and <h:button> components.

The <a4j:param> requires the following attributes.

  • The value attribute is the initial value of the parameter.
  • The assignTo attribute defines the bean property. The property is updated if the parent command component performs an action event during the Process Request phase.


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

JSF File

// ajax-param.xhtml

Managed Bean



RichFaces A4j param 1

A new parameter is set after clicking the button.

RichFaces A4j param 2

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA