Casting Problems While Using ImageSwith ! :=(

UI Components for JSF
Post Reply
agustincba
Posts: 36
Joined: 18 Oct 2010, 09:00

28 Nov 2010, 00:40

Hi to all guys !. Here I am trying to solve this annoying problem...
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>
and this is the error I get...

Code: Select all

An Error Occurred:
com.sun.faces.facelets.component.UIRepeat cannot be cast to org.primefaces.component.graphicimage.GraphicImage
Why is this happenning ?. Hope I can receive help ! :D Thankx

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 40 guests