I have stored some images under the webroot\resources\fileUpload\product_image\thumb
directory so that these images can be displayed on <p:graphicImage>
as follows.
<p:graphicImage library="fileUpload"
name="product_image/thumb/13850470212653732655006325945389_4921.jpg"
alt="Whatever the product name is."/>
If the image name i.e 13850470212653732655006325945389_4921.jpg
is not given then, the image should not be displayed but it displays an image from the given URL.
<p:graphicImage library="fileUpload"
name="product_image/thumb/"
alt="Whatever the product name is."/>
The image URL on the web browser appears as follows.
/webroot/javax.faces.resource/product_image/thumb/.jsf?ln=fileUpload&v=13850470212653732655006325945389_4921
How does it pick up an image?