Here is the code of my xhtml file:
Code: Select all
<h:form>
<p:dialog width="250" height="150" widgetVar="dlgImages" header="Fotos" modal="true" hideEffect="puff" closable="true">
<p:imageSwitch effect="uncover">
<ui:repeat value="#{imageSwitchBean.images}" var="image">
<p:graphicImage value="/ker/#{image}" />
</ui:repeat>
</p:imageSwitch>
</p:dialog>
<p:commandButton value="Mostrar" onclick="dlgImages.show()"/>
</h:form>
Code: Select all
An Error Occurred:
com.sun.faces.facelets.component.UIRepeat cannot be cast to org.primefaces.component.graphicimage.GraphicImage