126
PrimeFaces Ajax Listener
This attribute is used to call Java method by using an Ajax request. It is an attribute of <a:ajax> component.
Here, we are creating an example that calls a method from ManagedBean. It includes the following files and code.
JSF File
// ajax-listener.xhtml
Managed Bean
// ListenerBean.java
Output:
It will call Java method that converts input value into uppercase.
Next TopicPrimeFaces Ajax ActionListener