title: Multiple actionlisteners in JSF
body: <p>I want to use multiple action listener to set state of two backing beans before further processing</p>
  
  <p><strong>1st way:</strong></p>
  
  <pre><code>&lt;p:commandButton process="@this" &gt;
     &lt;f:attribute name="key" value="#{node.getIdTestGroup()}" /&gt;
     &lt;f:actionListener binding="#{testController.nodeListener}" /&gt;
  &lt;f:actionListener binding="#{testDeviceGroupController.prepareCreate}" /&gt;
  &lt;/p:commandButton&gt;
  </code></pre>
  
  <p>It give an exception:</p>
  
  <p>WARNING: /testGroup/List.xhtml @26,88 binding="#{testController.nodeListener()}": Method nodeListener not found
  javax.el.ELException: /testGroup/List.xhtml @26,88 binding="#{testController.nodeListener()}": Method nodeListener not found</p>
  
  <p><strong>2nd way:</strong></p>
  
  <pre><code>&lt;p:commandButton process="@this" &gt;
      &lt;f:attribute name="key" value="#{node.getIdTestGroup()}" /&gt;
      &lt;f:actionListener binding="#{testController.nodeListener(event)}" /&gt;
      &lt;f:actionListener binding="#{testDeviceGroupController.prepareCreate(event)}" /&gt;
  &lt;/p:commandButton&gt;
  </code></pre>
  
  <p>Event is null on the nodeListener and prepareCreate methods</p>
  
  <p>How to do it correct?</p>