Monday, May 8, 2017

Correct path in PrimeFaces to view images

there are sometimes when we want to display images using for instance

<p:graphicImage name="/images/excel.png" />

and most of the time when we upload the images they are not rendered, so it is because you've got to move all the images to the next path  "\WebContent\resources\images"

if the folder resources and images are not created then you've got to do it and paste all theimages on int and it starts working without any trouble any longer
and the path to call the images is "/images/name_of_the_pictuare.jpg/png"