title: Validate input as required only if certain command button is pressed
body: <p>I have specific use case for JSF validation. For example I have an <code>inputText</code> field:</p>
  
  <pre><code>&lt;p:inputText id="input" required="#{myBean.required}" value="#{myBean.value}" maxlength="20" disabled="#{myBean.disabled}"&gt;
    &lt;p:ajax event="blur" process="@this" update="name" listener="#{myBean.listener}"/&gt;
  &lt;/p:inputText&gt;
  </code></pre>
  
  <p>Value of input is number (in some cases it can also be a string, because this is part of composite component, but problem is better described if we assume this is a number). This input is part of the form, at the end of form I have submit button:</p>
  
  <pre><code>&lt;p:commandButton value="Save" actionListener="#{myBean.save}"/&gt;
  </code></pre>
  
  <p>What are my requests:</p>
  
  <ol>
  <li>When submit button is pressed all validation should be processed and this is OK, this works fine.</li>
  <li>When blur event is fired on input field if field is not empty a number validation should be processed, and this is also OK. At the end I update field with id <code>name</code> with some value.</li>
  <li>Now I have a problem. My third request is when input is empty validation on input should not be processed. This is special case in which I will clear field with id <code>name</code>. This is also case when i remove text which is already entered in input, remove focus from component (press TAB for example) and in that case AJAX request should also be processed and name input will also be cleared.</li>
  </ol>
  
  <p>How I can disable validation of this input field in case when it is empty, and just for this ajax event?</p>