I am using primefaces binding , I am trying to add actionListener to at the managed bean but I don't know how to do that.
Also when I used
commandButton.setActionListener(MethodBinding b);
this method is deprecated , can anyone help me with this?
I am using primefaces binding , I am trying to add actionListener to at the managed bean but I don't know how to do that.
Also when I used
commandButton.setActionListener(MethodBinding b);
this method is deprecated , can anyone help me with this?
The method
setActionListener
is deprecated. This has been replaced byaddActionListener(javax.faces.event.ActionListener).
Thus, you should use
addActionListener
instead.xhtml
managedbean
CommandButtonActionListener.java