In order to use the lightbox, I need a link to the image as generated by <p:graphicImage>.
Ultimately, the HTML should look like this:
<a href="image.jpg" data-lightbox="bilder">
<img src="image.jpg" />
</a>
This is my JSF attempt so far:
<h:outputLink data-lightbox="bilder" value="???">
<p:graphicImage value="#{imageStreamer.image}">
<f:param name="imageId" value="#{gameReader.game.cover.id}"/>
</p:graphicImage>
</h:outputLink>
How do I get the concrete URL of <p:graphicImage> returning StreamedContent so that I can use it in my link?
This have one solution - using servlet here is a servlet which will work in any jsf application
And here is a web page code
Enjoy