title: JSF difference between action, actionlistener, onClick
body: <p>I am using JSF in my project. I am using a context menu from PrimeFaces. I see in <code>p:menuItem</code> we have <code>action</code>, <code>actionListener</code>, <code>onclick</code> methods. So my question is: When do I have to use <code>action</code>, <code>actionListner</code>, <code>onclick</code> and what is the order of execution?</p>