title: primefaces inputtext anycharacter except whitespace
body: <p>how I can make for an inputText accept any letter except allow spaces and special characters?</p>
  
  <p>i tried like this, but is not working...</p>
  
  <pre><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:p="http://primefaces.org/ui"
  template="/private/commonHomeTemplate.xhtml"&gt;
  &lt;ui:define name="content"&gt;
  &lt;h:form id="someForm"&gt;
  &lt;p:growl id="msg" showDetail="true" life="3000" autoUpdate="true"/&gt;
  &lt;p:panelGrid style="100%"&gt;
  &lt;p:row&gt;
  &lt;p:column style="350px"&gt;title&lt;/p:column&gt;
  &lt;p:column&gt;
  &lt;h:inputText value="#{someBean.somePropertie}" &gt;
  &lt;f:validateRegex pattern="[a-zA-Z]+"/&gt;
  &lt;/h:inputText&gt;
  &lt;/p:column&gt;
  &lt;/p:row&gt;
  &lt;/p:panelGrid&gt;  
  &lt;/h:form&gt;
  &lt;/ui:define&gt;
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>Thank you</p>