title: Primefaces KeyFilter: Not working after calling "ajax update" on h:inputText
body: <p>Prime faces p:keyFilter stops working when an ajax update happens on h:inputText. Please have a look at the following example.</p>
  
  <p><strong>Expected Behavior:</strong>
  p:keyFilter should allow only alphabets and numbers in inputText at any point of time.</p>
  
  <p><strong>Steps to reproduce:</strong></p>
  
  <p>1) Go directly to "Project Key" field and try entering special characters.. it will not allow.. the filter works this time.</p>
  
  <p>2) Now go to "Project Name" field and then click on "Project Key". This time try entering special characters. It allows to enter. The filter does not work now.</p>
  
  <p><strong>Sample xhtml:</strong></p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"&gt;
      &lt;h:head&gt;
  
      &lt;meta charset="utf-8" /&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&gt; 
  
  &lt;/h:head&gt;   
      &lt;h:form&gt;
          &lt;h:outputText value="Project Name:"&gt;&lt;/h:outputText&gt;
          &lt;h:inputText id="projectName" value="#{testBean.projectName}" &gt;
              &lt;p:ajax event="blur" listener="#{testBean.updateKey()}" update="projectKey" process="@form"&gt;&lt;/p:ajax&gt;
          &lt;/h:inputText&gt;
          &lt;br/&gt;
          &lt;h:outputText value="Project Key:"&gt;&lt;/h:outputText&gt;
          &lt;h:inputText id="projectKey" value="#{testBean.projectKey}"  label="Project Key" size="29" maxlength="10"&gt;
          &lt;/h:inputText&gt;
          &lt;p:keyFilter for="projectKey" mask="alphanum" /&gt;
      &lt;/h:form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Sample Managed Bean:</strong></p>
  
  <pre><code>import javax.faces.bean.ManagedBean;
  import javax.persistence.Entity;
  
  @ManagedBean(name="testBean")
  @Entity
  public class Test {
  
      private String projectName;
      private String projectKey;
  
      public String getProjectName() {
          return projectName;
      }
  
      public void setProjectName(String projectName) {
          this.projectName = projectName;
      }
  
      public String getProjectKey() {
          return projectKey;
      }
  
      public void setProjectKey(String projectKey) {
          this.projectKey = projectKey;
      }
  
      public void updateKey()
      {
          if(projectName.equals("Shivani"))
          {
              projectKey = "SK";
          }
      }
  }
  </code></pre>