In a JSF 2.2 web page, I display an image with h:graphicImage
but also need a way to refer to the same image in a <a href="..." />
link.
<a class="thumbnail" href="???/image.png" >
<h:graphicImage name="image.png" />
</a>
The image resource is included at
WEB-INF
\-web.xml
resources
\-image.png
index.html
The run-time path rendered by h:graphicImage
will look like
/javax.faces.resource/image.png.html;jsessionid=xxx
How can I get this resource path path for the image to build a <a href="???/image.png">
element which links to this image?