PrimeFaces Ajax ActionListener
It is used to call Java method by triggering action. This action can be done either by using commandButton or commandLink. Here, we are creating and example that call a method of ManagedBean and each time the button is clicked the current value is updated with Ajax.
This example includes the following files.
After clicking on the commandButton, it calls the method and increments the counter by 2.