title: Validation for non-required field
body: <p>I have these lines of code to validate for an e-mail address:</p>
  
  <pre><code>&lt;h:outputText value="#{labels.eMail}: " /&gt;
  &lt;p:inputText size="30" maxlength="50" validatorMessage="Please provide a valid e-mail address" value="#{personelView.eMail}"&gt;
    &lt;f:validateRegex pattern=".+@.+\.[a-zA-Z]+" /&gt;
  &lt;/p:inputText&gt;
  </code></pre>
  
  <p>When I leave the e-mail address field empty and submit the form it gives validation error. Why JSf is doing this? Isn't it supposed to just validate e-mail field with the above code? I even tried adding:</p>
  
  <pre><code>required="false" 
  </code></pre>
  
  <p>still no good. Does anyone have any idea about this case?</p>