I'm having some issue trying to combinate p:carousel and p:lightBox components. Occurs that, when I click on any image, the lightbox is showed and I can navigate between images (next and prev functions). When I'm on last image and I click on next, the current page is loaded into lightbox, not the first image.
The code is the follows:
Code: Select all
<p:lightBox currentTemplate="Foto {current} de {total}">
<p:carousel value="#{detalhesImovelBean.imovel.fotos}" var="image" rows="6">
<h:outputLink value="#{image.filePath}" title="#{image.description}">
<h:graphicImage value="#{image.filePathP}" style="width:119px;height:91px;" />
</h:outputLink>
</p:carousel>
</p:lightBox>
My envoirment is:
Primefaces 3.0M3
Tomcat 7.0.20
Thanks