I recently included a <p:galleria> in my JSF page as shown in PrimeFaces showcase. The code is executing without any errors, but it doesn't displaying any images. I think this is due to the incorrect path format for the images. How is this caused and how can I solve it?
index.xhtml
<p:galleria value="#{compa.images}" var="image" panelWidth="1570" panelHeight="250" showCaption="true"> <p:graphicImage value="resource/images/#{image}" name="COMPANY CREATION"/> </p:galleria> compa.java
public void init() { images = new ArrayList<String>(); for(int i=1;i<=10;i++) { images.add("resource/images" + i + ".jpg"); } } The images path in IDE is ps\build\web\resource\images.