Greeting for all,
This is the first time I'm implementing a list of images in an XHTML page, my project is a newsprint, and using the upload approach, recording the path of the image in the database and the images on the desktop, is running perfectly just now I need to be able to list the images in the dataTable, my project has the following characteristics;
It is a JSF2 project using Maven with CDI implementation with JPA.
This was my attempt to implement the list of images, but it did not work, how do I fix it? Is it necessary to create a method in the Bean class to list the images outside the change in the Java Web page?
<p:column headerText="Foto" style="text-align: center; width: 100px">
<p:graphicImage
value="C:/workspace Web/Projetos Profissionais/Fotos para teste/#{noticia.id}.jpg"
cache="false" width="500" height="250" />
</p:column>