title: Hide graphicImage if image does not exist
body: <p>I have a graphicImage that takes its value from a servlet (called "picture" - it dynamically serves images stored on the server).</p>
  
  <p>I would like to hide graphicImage when servlet returns null (no image was found).
  I tried using FacesContext.getCurrentInstance().getExternalContext().getResource() but it returns null even for correct URLs.</p>
  
  <pre><code> &lt;h:graphicImage value="/picture?name=#{myBean.name}" /&gt;
  </code></pre>