dynamic p:graphicimage not working

UI Components for JSF
Post Reply
venkideshmukh
Posts: 10
Joined: 27 Apr 2011, 11:19

29 Jun 2011, 16:35

Hi,
I am trying to render p:graphicimage from DB. my code is as follows:

<p:graphicImage value="#{applications.image}"/>

here image is instance of org.primefaces.model.StreamedContent. but no image is being rendered.
this is valid image still nothing is rendered on screen.

Can anybody tell me what may be the issue?

regards,
Venky

venkideshmukh
Posts: 10
Joined: 27 Apr 2011, 11:19

30 Jun 2011, 12:07

Problem is resolved. I used f:param to pass Id to getImage() method of the bean. using this Id, i fetch the image from DB and render it on screen

bhakav
Posts: 22
Joined: 17 Oct 2010, 22:50

11 Aug 2011, 01:47

Can you please put the code .

I am trying to display images from database in datagrid but it is not working

<p:dataGrid var="add" value="#{DisplayAddB.addList}" columns="3" rows="12" paginator="true">

<p:graphicImage value="#{add.image}" alt="noimage">

</p:graphicImage>
</p:dataGrid>


Thanks

Pontin
Posts: 5
Joined: 27 Oct 2011, 14:28
Location: Brasil

27 Oct 2011, 14:32

Here's the solution that saved me: viewtopic.php?f=3&t=4163&p=18672&hilit= ... age#p39751
:idea:
Mojarra JSF 2.0.3 | PrimeFaces 3.0.M4 | Apache Tomcat/7.0.5

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests