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.
Questions tagged [graphicimage]
104 questions
4
votes
2 answers
How to render conditionally depending on if the resource exists
How can I render a only if the resource URL is valid?
Basically, I would like to render my graphicImage only if #{resource['images/image.png']} actually exists. How can I…

unpix
- 853
- 2
- 15
- 31
3
votes
1 answer
not working in jsf
I recently included a in my JSF page as shown in PrimeFaces showcase.
The code is executing without any errors, but it doesn't displaying any images. I think this is due to the incorrect path format for the images. How is this caused…

user007
- 29
- 1
- 1
- 8
3
votes
1 answer
Primefaces: dynamic content refresh issue
I have a webapp where I select some content to be deleted. A modal pops-up displaying a preview of the image/flash selected. I hit a button and everything works fine. But, when I select another content to be deleted, the modal pops-up and, for a…

CountD
- 669
- 2
- 11
- 34
3
votes
1 answer
primefaces Display Image from Database
I am trying to display Customer Image (Stored in CustomerMaster.customerPhoto in BLOB object). I am using imageBuilder Bean (RequestScoped) to construct image based on contents stored in CustomerMaster which is available in Customer…

Shirish Bathe
- 627
- 9
- 22
2
votes
2 answers
Primefaces p:graphicImage dynamicContent failed to load 404
Displaying p:graphicImage dynamic content keeps me busy already quite a few days now. Can anyone help me please, I would appreciate that very much.
I have a straigtforward approach of p:graphicImage as StreamedContent of imgage.jpg loaded into a…

Erik DdW
- 91
- 1
- 5
2
votes
0 answers
Why do some HTTP requests for Primefaces return 0 bytes while others work?
In a PrimeFaces web application, I replaced the previous image loading strategy (which was temporarily saving the image files to the webapps/ directory of Tomcat and referencing them through
, which worked) by using .…

Matthias Ronge
- 9,403
- 7
- 47
- 63
2
votes
2 answers
Is there a way to make a graphicimage in Primefaces execute the "value" method only on demand?
I want to show a custom gallery with several thumbnails. When clicking on one of these, an overlaypanel is shown, containing a graphicimage with the image in higher quality. Since the high quality images are aroung 5MB each, I just want to load them…

user3907491
- 275
- 1
- 3
- 8
2
votes
1 answer
How to create a thumbnail link to OmniFaces graphicImage method
I was wondering if and how it is possible to display an as thumbnail inside a . To be more precise, I wanted to achieve something like this:

Jonas Bausch
- 185
- 3
- 12
2
votes
0 answers
Open original image when a thumb image is clicked
Displaying images using as follows.

Tiny
- 27,221
- 105
- 339
- 599
2
votes
1 answer
Alternative for p:graphicImage which can show images from byte[] and control browser cache
There seems to be a bug with p:graphicimage when using the update-functionality. Loading one image through value="#{myController.myStreamedContent}" works, but when changing myController.myStreamedContent followed by updating p:graphicimage, the…

Socrates
- 8,724
- 25
- 66
- 113
2
votes
1 answer
Display a BLOB image using p:graphicImage in a tagfile
Displaying a BLOB image using as follows.
Where CategoryBean has been defined as follows.
@Named
@ApplicationScoped
public class…

Tiny
- 27,221
- 105
- 339
- 599
2
votes
1 answer
throws javax.el.PropertyNotFoundException on #{bean.foo().bar()}, but #{bean.fooAndBar()} works
Here's the backing bean, which sends a message to an object in the model to get the value.
@Model
public class ManageUsersBean {
public ImageField getProfilePicField() {
return getSelectedMaskedEntity().getProfilePicField();
}
…

Patrick Garner
- 3,201
- 6
- 39
- 58
2
votes
1 answer
o:graphicImage throws java.lang.IllegalArgumentException: argument type mismatch
I can´t display images from my database, they are stored as bytea and I am mapping them like this:
@Entity
@Table(name = "photograph", schema = "public")
public class Photograph{
private PhotographId id;
@ManyToOne(fetch = FetchType.EAGER)
…

Danny P
- 93
- 2
- 13
2
votes
1 answer
How can I supply style selector to SVG (byte[]) when I use OmniFaces graphicImage tag?
Follow-up to How to embed SVG graphics properly in JSF application using OmniFaces
I'm using the OmniFaces 2.1 snapshot in order to output SVG files from byte[] arrays. I need to suffix #a on SVG URL's in order to activate a CSS style inside the…

matsa
- 346
- 5
- 16
2
votes
1 answer
Primefaces graphicImage always showing the same picture
I'm using primeFaces to display the coverimage of a series in it's detailView. My problem is, that it is always showing the same picture, except if I refresh my cache (Strg+F5 in Chrome).
My code to display the picture is the following

Kirinkunhime
- 105
- 1
- 2
- 8