Code: Select all
<p:lightBox transition="fade" width="300">
<ui:repeat value="#{mb.list}" var="p">
<p:graphicImage value="#{p.path_to_image"/>
</ui:repeat>
</p:lightbox>
Code: Select all
<p:imageSwitch id="imgSwitch" effect="FadeIn" widgetVar="scrollout" slideshowAuto="false">
<ui:repeat value="#{mb.list}" var="p">
<p:graphicImage value="#{p.path_to_image"/>
</ui:repeat>
</p:imageSwitch>
PS: I used <c:forEach> and ran, but must be with <ui:repeat>. Thx.