title: Ajax call in p:selectManyCheckbox
body: <p>Hi guys is there a way to fire an ajax call in a p:selectManyCheckbox of primefaces once I check one of them? something like this:</p>
  
  <pre><code>&lt;p:selectManyCheckbox  label="Elements" value="#{crearVacacionMB.elementSelected}" layout="grid" columns="1"&gt;
      &lt;f:selectItems  value="#{MB.elements}" /&gt;
      &lt;p:ajax event="check" listener="#{MB.function}"/&gt;
  &lt;/p:selectManyCheckbox&gt;
  </code></pre>
  
  <p>And my MB:</p>
  
  <pre><code>public void function(AjaxBehaviorEvent event){
      System.out.println("I was fired");
  
  }
  </code></pre>