I have a problem when using images that are not in the project but in the local disk, the p: galleria appears with 4 squares (for the 4 images) but it is blank and shows me the alt even though in the folder if the images are
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
template="/WEB-INF/templates/layoutnormal.xhtml">
<h:form id="form">
<p:galleria id="galeria" value="#{bean.listaImagenes}" var="image" panelWidth="400" panelHeight="313" showCaption="true">
<p:graphicImage name="#{image}" title="#{image}" alt="#{image}" /> </p:galleria>
</h:form>
</ui:composition>
Bean.java
@ManagedBean(name = "bean")
@ViewScoped
public class Bean extends GenericBean implements Serializable {
List<String> listaImagenes = new ArrayList<>();
@PostConstruct
public void init(){
listaImagenes.add("C:/fotos/img/img1.png");
listaImagenes.add("C:/fotos/img/img2.png");
listaImagenes.add("C:/fotos/img/img3.png");
listaImagenes.add("C:/fotos/img/img4.png");
}
}