title: How does JSF process action listener?
body: <p>I'm curious how JSF know that I click the button, with some action and it is even possible to call an action listener with a parameter. I can imagine the server notice the state and EL and call the methods.</p>
  
  <p>Example 1:</p>
  
  <pre><code>&lt;form&gt;
     &lt;p:commandButton actionListener="{bean.do_something(bean.info)}" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Example 2:</p>
  
  <pre><code>&lt;form&gt;
       &lt;h:datatable values=... var="myvar"&gt;
          &lt;h:column&gt;
             &lt;p:commandButton actionListener="{bean.do_something(myvar.info)}" /&gt;
          &lt;/h:column&gt;
       &lt;/h:datatable&gt;
  &lt;/form&gt;
  </code></pre>