I have an actionListener method in my managed bean which is called by many command buttons.
public void verifyTestDisponibility(ActionEvent actionEvent) {
if (button1 clicked) {
// ...
}
if (button2 clicked) {
// ...
}
}
The part I’m stucking at is identifying the clicked command button. How can I identify it?
You can use it like this
In xhtml page we can use a
<h:commandButton>tag with actionListenerIn your managed bean