I have an input , where when a name is typed in the ex: João Da Silva field, > Regex . In this case, this field must be case sensitive. Now when I put space it does not save.
Follow the code:
<p:outputLabel value="Nome" for="nome" />
<p:inputText id="nome" value="#{cadastroClienteBean.cliente.nome}" size="40" maxlength="50" required="true">
<f:validateRegex pattern="[a-zA-Z]+" />
</p:inputText>