How to reference an img in p:graphicImage from the resource folder
<p>I have an image in the following path:</p>

<pre><code>resources
\_____img
 \_______sites
  \_______reddit.png
</code></pre>

<p>I used this command line to reference it:</p>

<pre><code>&lt;p:graphicImage library="img" name="/sites/reddit.png"/&gt;
</code></pre>

<p>but in the development console it says:</p>

<pre><code>GET http://localhost:8080/RES_NOT_FOUND 404 ()
</code></pre>

<p>and the image is not rendered.</p>

<p>What's wrong?</p>