I am using h:graphicImage to display images using the name
attribute. Now, in order to successfully implement PrettyPhoto (JQuery implementation), I need the resulting path to the image (/javax.faces.resource/pictures/file.png.xhtml
) as result in my <a href />
too.
As you can see in from a snippet of PrettyPhoto's documentation, I will need the path to my image as the path for my <a href />
(there's actually a difference due to the fact of using thumbnails):
<a href="images/fullscreen/2.jpg" rel="prettyPhoto" title="This is the description">
<img src="images/thumbnails/t_2.jpg" width="60" height="60" alt="This is the title" />
</a>
Is there any way to extract the resourceName (as it is named for h:graphicImage
) for my h:outputLink
?