Please help p:lightbox not working

UI Components for JSF
Post Reply
salman4u
Posts: 78
Joined: 24 Jan 2010, 10:28

30 Apr 2010, 14:38

Hello,
I have a kind of minor issue with p:lightbox. This is my code :-

Code: Select all

 <h:form prependId="false"  enctype="multipart/form-data">
                                               
<p:lightBox>
                                                        <h:outputLink value="#{HomeBean.blogMainPhotoPath}">
                                                            <h:graphicImage width="200" height="200" value="#{HomeBean.blogMainPhotoPath}"/>
                                                        </h:outputLink>

                                                           <h:outputLink value="#{HomeBean.blogMainPhotoPath}">
                                                            <h:graphicImage width="200" height="200" value="#{HomeBean.blogMainPhotoPath}"/>
                                                        </h:outputLink>

                                                        
                                                    </p:lightBox>
</form>
Both images refer to the same location. I can see image being displayed in h:graphicImage but when i click on image, the circle of the lightbox keeps rotating and rotating but the image is never displayed. :( . Please help somebody. This doesn't sound too difficult. What am i missing?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 51 guests