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
dynamic p:graphicimage not working
-
- Posts: 10
- Joined: 27 Apr 2011, 11:19
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
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
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
Here's the solution that saved me: viewtopic.php?f=3&t=4163&p=18672&hilit= ... age#p39751
Mojarra JSF 2.0.3 | PrimeFaces 3.0.M4 | Apache Tomcat/7.0.5
-
- Information
-
Who is online
Users browsing this forum: No registered users and 37 guests