h:graphicimage not working in c:foreach
Posted
by
Muneeswaran Balasubramanian
on Stack Overflow
See other posts from Stack Overflow
or by Muneeswaran Balasubramanian
Published on 2011-01-17T12:22:26Z
Indexed on
2011/01/17
12:53 UTC
Read the original article
Hit count: 228
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?
© Stack Overflow or respective owner