title: Difference between bean method with AjaxBehaviorEvent and bean method without AjaxBehaviorEvent?
body: <p>I have my XHTML like this </p>
  
  <pre><code>&lt;h:form id="form"&gt;
      &lt;h:panelGrid columns="3"&gt;
          &lt;h:outputText value="Keyup: " /&gt;
          &lt;p:inputText id="counter"&gt;
              &lt;p:ajax event="keyup" update="out"
                  listener="#{counterBean.increment}" /&gt;
          &lt;/p:inputText&gt;
          &lt;h:outputText id="out" value="#{counterBean.count}" /&gt;
      &lt;/h:panelGrid&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p><strong>Case I : ajax listener method with <code>AjaxBehaviorEvent</code></strong></p>
  
  <pre><code>public void increment(AjaxBehaviorEvent event) {
          count++;
      }
  </code></pre>
  
  <p><strong>Case II : without <code>AjaxBehaviorEvent</code></strong> </p>
  
  <pre><code> public void increment() {
         count++;
  }
  </code></pre>
  
  <p>In both the cases listener will be invoked and does the counter job to increase count on <code>keyup</code>. So, When exactly I need to use <code>AjaxBehaviorEvent</code> and when I don't need to use?</p>