title: Primefaces Calendar <f:ajax> and <p:ajax> issue
body: <p>I am currently facing issue using  with primefaces Calendar control</p>
  
  <p>My requirement is to invoke a java method on change of the Calendar control value either from the input box or using the button and also pass a set of parameters(Java object and the field id) to the java method.</p>
  
  <p>below is the code that I have implemented and it is not working</p>
  
  <pre><code>&lt;p:calendar showOn="button" id="effectiveDt" navigator="true" pattern="MM/dd/yyyy" 
      styleClass="overrideable" value="#{coverage.startDate}"&gt;
      &lt;f:ajax event="change" render="hiddenStartDt" onevent="myEvent" listener="#{certInquiry.ovrrrideListener}"/&gt; 
          &lt;f:attribute name="covg" value="#{coverage}" /&gt;
          &lt;f:attribute name="field" value="StartDate" /&gt;
  &lt;/p:calendar&gt;
  </code></pre>
  
  <p>here <strong>myEvent</strong> is a java script method which will be called after the ajax is completed where i am checking the ajax status is success and performing some action.</p>
  
  <p>method signature of the java method is.</p>
  
  <p>*<em>public void overrideListener(AjaxBehaviorEvent e) *</em> </p>
  
  <p>I tried with all kinds of methos signatures like</p>
  
  <pre><code>public overrideListener(ValueChangeEvent e)
   public overrideListener(ActionEvent e)
   public ovrrrideListener(DateSelectEvent event)
  </code></pre>
  
  <p>nothing was working for me</p>
  
  <p>I have tried using  also even this was not working
  I also tried using valueChangeListener if the method gets called but it was not invoking the method </p>
  
  <p>this is working for  and  fields using the </p>
  
  <pre><code>&lt;h:selectBooleanCheckbox class="overrideable" 
                      value="#{coverage.clIndicator}"&gt;
      &lt;f:ajax event="change" render="hidgenLiabClaimsMdInd" onevent="myEvent" listener="#{certInquiry.overrideListener}"/&gt; 
                      &lt;f:attribute name="covg" value="#{coverage}" /&gt;
                      &lt;f:attribute name="field" value="ClIndicator" /&gt;
  &lt;/h:selectBooleanCheckbox&gt;
  
  &lt;h:inputText id="genLiabEachOccAmt" value="#{coverage.eachOccAmt}"
              class="amt_field overrideable"&gt;
      &lt;f:ajax event="change" render="hidgenLiabEachOccAmt" onevent="myEvent" listener="#{certInquiry.overrideListener}"/&gt; 
              &lt;f:attribute name="covg" value="#{coverage}" /&gt;
              &lt;f:attribute name="field" value="EachOccAmt" /&gt;
  &lt;/h:inputText&gt;
  </code></pre>
  
  <p>Please help me in solving this issue for the Calendar component.</p>