title: JSF 2 ajax behavior event listener not firing on a Date
body: <p>I am having a problem with an ajax behavior event not being fired immediately as text is typed in a field. </p>
  
  <p>If the field is a String no problem, but I am using a Date.</p>
  
  <p>xhtml:</p>
  
  <pre><code>&lt;h:outputLabel value="Date of Birth:" /&gt;
  &lt;h:inputText id="searchDOB" value="#{search.dob}" required="true"&gt;
    &lt;f:ajax event="keyup" listener="#{search.addHyphensToDOB}" render=":output" /&gt;
    &lt;f:convertDateTime pattern="dd-MMM-yyyy" /&gt;
  </code></pre>
  
  <p>
     </p>
  
  <p>bean:</p>
  
  <pre><code>Date dob;
  
  public void addHyphensToDOB(AjaxBehaviorEvent abe) {
    System.out.println("addHyphen");
  }
  </code></pre>
  
  <p>The event is only fired after typing the following:</p>
  
  <blockquote>
    <p>22-JAN-</p>
  </blockquote>
  
  <p>And fires on any number after the second hyphen, but not before.</p>
  
  <p>One solution could be to change the Date type to a String, then format without using converter, but I would like to keep the Date type.</p>
  
  <p>Any suggestions, thanks.</p>
  
  <p>Eclipse 3.7, tomcat 7, jsf2.1, </p>