h:graphicimage not working in c:foreach
- by Muneeswaran Balasubramanian
I have used c:forEach loop for display the list of images using h:graphicImage. But I can't display the images. I have the h:commandLink also in my page. The image have to be displayed at the time of form inititalization. But its not working. But after click the h:commandlink, the images are displayed properly. Before that it shows the image not found text (alt message). I have used h:graphicImage tag like below
<c:forEach items="#{Sample.imageList}" var="images" varstatus="imageStatus">
<h:graphicimage id="image" url="#{images}" alt="Image Not Found"/>
</c:forEach>
What I do wrong in that and how can I achieve that?