title: how can i set <p:inputText> field to accept Numbers and special characters in jsf
body: <p>I am working with Java Server Faces and Primefaces. One of my requirement is, do not allow only numbers in input text field(that means allow characters and special symbols).
  I can only allow the number by</p>
  
  <pre><code>&lt;p:inputText value="#{doctorindBean.age}" id="age" tabindex="2" maxlength="30"&gt;
      &lt;pe:keyFilter mask="num"&gt;&lt;/pe:keyFilter&gt;
  &lt;/p:inputText&gt;
  </code></pre>
  
  <p>Only characters by</p>
  
  <pre><code>&lt;p:inputText value="#{doctorindBean.doclastname}" id="lastname" tabindex="2" maxlength="30"&gt;
          &lt;pe:keyFilter mask="alpha"&gt;&lt;/pe:keyFilter&gt;
      &lt;/p:inputText&gt;
  </code></pre>
  
  <p>When I use 2nd one(i.e characters only), I can't use special characters.</p>
  
  <p>But my scenario is to allow characters and special symbols. How can I do this?<br>
  Is there any other way to do this?</p>