title: How to make one field from two required at least with JSF/Primefaces
body: <p>I'm using primefaces with jsf and i want to make one of two fields required at least. that means that the error message will be displayed if this two fields are empties togheter:
  this is a sample of my code:</p>
  
  <pre><code>&lt;h:outputLabel for="srcNumber" value="Originator MSISDN (EXAMPLE 32495959595)" /&gt;
  &lt;p:inputText id="srcNumber" value="#{cdrMmscRecBean.srcNumber}" label="srcNumber" /&gt;
  &lt;h:outputLabel for="destNumber" value="Destination MSISDN (EXAMPLE 32495959595)" /&gt;
  &lt;p:inputText id="destNumber" value="#{cdrMmscRecBean.destNumber} label="destNumber" /&gt;
  </code></pre>
  
  <p>thanks :)</p>