Questions tagged [graphicimage]

graphicImage is a JSF tag that renders an HTML element. Some component suites like Primefaces have another graphicImage implementation to dynamically render images as an HTML element.

104 questions
45
votes
4 answers

Load images from outside of webapps / webcontext / deploy folder using or tag

I need to display images which reside outside of deploy folder in web application using JSF tag or HTML tag. How can I achieve that?
34
votes
6 answers

Display database blob images in inside

I'm using PrimeFaces 3.2 on JBoss 7.1.1. I am trying to display an image which is stored in a BLOB in a MySQL database in . The image is stored in a byte[] and then converted to a StreamedContent as follows: InputStream stream = new…
11
votes
7 answers

WARNING: JSF1091: No mime type could be found for file dynamiccontent

I get the following warning under eclipse : WARNING: JSF1091: No mime type could be found for file dynamiccontent. To resolve this, add a mime-type mapping to the applications web.xml This error is caused when I post a picture below primefaces…
Karim Oukara
  • 2,638
  • 8
  • 38
  • 51
9
votes
3 answers

Display uploaded image in JSF

I have a view scoped bean where I create a person. A person can have a picture. This picture is uploaded the same page the person is created. The picture is not stored in a database or on disk (since the person isn't created yet). The bean has to be…
siebz0r
  • 18,867
  • 14
  • 64
  • 107
9
votes
2 answers

How to use with DefaultStreamedContent in an ui:repeat?

I was trying to display a panel where user can see a list of items category(displayed as images) and on clicking they can view products within the category(images will be displayed) For displaying the item category, i used the ui:repeat nad the…
user1433804
  • 657
  • 5
  • 17
  • 31
8
votes
2 answers

PrimeFaces 6.0 does not cache images on the client side

Given a rendering images in one of the columns.
Tiny
  • 27,221
  • 105
  • 339
  • 599
7
votes
2 answers

How to make p:graphicImage clickable and invoke bean action

I am using like below:

Country Map

Basit
  • 8,426
  • 46
  • 116
  • 196
7
votes
1 answer

Display p:fileupload image in p:graphicImage preview without saving it

I am using PrimeFaces 5.3 to upload a PNG image and I would like to show a preview of it in before saving in database. Here's a MCVE:
Lance Leroy
  • 399
  • 4
  • 7
  • 17
7
votes
2 answers

BLOB images are displayed only on refreshing a page after an update via p:dataTable is made in PrimeFaces

I'm displaying images stored in the form of BLOB in MySQL on a as follows.
Tiny
  • 27,221
  • 105
  • 339
  • 599
5
votes
3 answers

Get concrete URL of returning StreamedContent

In order to use the lightbox, I need a link to the image as generated by . Ultimately, the HTML should look like this: This is my JSF attempt so…
Lukas Eichler
  • 5,689
  • 1
  • 24
  • 43
5
votes
2 answers

How to populate h:graphicImage value with image content from database?

I have got the Image object in my ManagedBean. How can I get it in my JSF page? This seems to be not working: where image is a field variable in the class userProfile. The Image is got from MySql as…
Cacheing
  • 3,431
  • 20
  • 46
  • 65
5
votes
1 answer

How to trigger an ajax event listener on click of p:graphicImage?

I want to do some processing when the user click on the p:graphicsImage inside a ui:repeat How do i do it.
user1433804
  • 657
  • 5
  • 17
  • 31
4
votes
0 answers

Dynamic images with StreamedContent

I have implemented two StreamedContent beans to dynamic load a graphic image, following the solution found here 1) With the first one I display images in a contentFlow (EVERYTHING OK)
Neo
  • 1,337
  • 4
  • 21
  • 50
4
votes
1 answer

How to reference an img in p:graphicImage from the resource folder

I have an image in the following path: resources \_____img \_______sites \_______reddit.png I used this command line to reference it: but in the development console it says: GET…
TonyRomero
  • 182
  • 1
  • 4
  • 14
4
votes
1 answer

o:graphicImage does not change when actual image is deleted or updated in database

I am trying to display a which is stored in a database. I have a . Note: The ID (1) is only for testing. My property looks like: @Lob private byte[] image; and my dao/service is…
alexander
  • 1,191
  • 2
  • 20
  • 40
1
2 3 4 5 6 7