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
setActionListeneris deprecated. This has been replaced byaddActionListener(javax.faces.event.ActionListener).Thus, you should use
addActionListenerinstead.xhtml
managedbean
CommandButtonActionListener.java