title: How to get rid of empty tooltips while displaying error messages on tooltips in PrimeFaces?
body: <p>I display error messages somewhere on <code>&lt;p:tooltip&gt;</code> as follows.</p>
  
  <pre><code>&lt;p:inputText id="text" value="#{bean.text}" required="true"/&gt;
  
  &lt;p:tooltip for="text"&gt;
      &lt;p:message for="text"/&gt;
  &lt;/p:tooltip&gt;
  </code></pre>
  
  <p>Although it displays an error message the given tooltip, an empty/unnecessary tooltip is shown, when there  is no error as can be seen in the following picture - beside the bottom right corner of the text box.</p>
  
  <p><img src="https://i.stack.imgur.com/PuJc0.png" alt="enter image description here"></p>
  
  <p>How to get rid of such empty tooltips? (I tried someway but it did not work)</p>