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
2
votes
1 answer

primefaces 4.0 p:graphicImage firefox bug

Here is my problem with firefox using primefaces 4.0 communication version: p:graphicImage I have a list of model, whenever I click 1 item, I would like to get 1 image respectively In xhtml file
Thien Dinh
  • 373
  • 1
  • 6
  • 15
2
votes
1 answer

JSF - graphicImage - replace broken image

I am wondering, is there a way to replace broken image with some other one in JSF when using grapicImage? I found a solution in JavaScript: However graphicImage…
Kuba Spatny
  • 26,618
  • 9
  • 40
  • 63
2
votes
1 answer

Change exported value of p:graphicImage in p:dataExporter

I have the following problem: I get false / true values from my database in form of „0“ and „1“ strings. Because I want to be nice :-) to my users, the output in my datatable shouldn't be zeros and ones. So I use a graphic which represents the…
98percentmonkey
  • 545
  • 7
  • 18
2
votes
1 answer

Webflow's flow scope and making primefaces graphicImage work

I am using a spring bean with flow scope which has a primesfaces's StreamedContent field and the image does not show up. Any ideas on how to make this work with flow scope? It works fine when it is a managed bean with request scope and also when it…
Julie
  • 179
  • 2
  • 13
2
votes
1 answer

Show an InputStream as dynamic image in JSF

How can we embed and show an InputStream as dynamic image in JSF 2.0 with OmniFaces?
ngadde
  • 49
  • 2
  • 4
1
vote
1 answer

java.lang.NullPointerException at org.primefaces.component.graphicimage.GraphicImageRenderer.encodeEnd(GraphicImageRenderer.java:43)

I have an InputStream received from an API request to show in a p:graphicImage like that selectedItem is an HashMap and I checked the dashboardImage field is not null, however the…
1
vote
1 answer

BLOB from MySQL not properly displayed

I am quite unexperienced when it comes to web development, so I am sorry to have uploaded so much possibly unnecessary code, but i guessed better too much than too little information.. I want to display a BLOB i got from a connected MySQL Database. …
TinkerBell
  • 11
  • 1
1
vote
2 answers

Displaying the same image several times with multiple p:graphicImage without multiple HTTP requests

I'm using p:graphicImage tag in my XHTML page to displaying the same image in small an large : #{msgs.ATTR_PICTURE}
1
vote
1 answer

How to remove borders from loading gif on a dark background?

I'm trying to create a dialog with a loading gif without any borders or background for my web application. I'm using PrimeFaces for JSF. I can't delete the shadow on the border. Here image and code:
Walter Bianchi
  • 79
  • 1
  • 11
1
vote
1 answer

Using a relative path as the value in a h:graphicImage tag

I'm using the h:graphicImage tag in HTML to load an image in a directory different from my current directory. For example, say my working directory is: /Users/nameOfUser/NetBeansProjects/MyProject/web and the image is located in directory:…
1
vote
1 answer

Prevent o:graphicImage from throwing an exception, when parameters being passed to a target getter method get mismatched in number, order and type

Using to display images with three parameters namely id, width and height as follows. The bean getting…
Tiny
  • 27,221
  • 105
  • 339
  • 599
1
vote
1 answer

Open file browse panel of p:fileUpload on click of an image

Is there any way to fire the basic button (the one that shows a panel to select a file) on click of an image?
1
vote
0 answers

p:graphicImage doesnt change the value

I have been trying to show some images depending on a String parameter. I´m using java, Jboss, JSF and primefaces. The images are here: ...Desktop\wildfly-10.0.0\bin\img\ and I use the route: To save images when I load new restaurants to the…
1
vote
1 answer

Prevent JSF encoding of & as & in image url

I'm getting an image url from my database and need to display it in an tag. The problem I have is that JSF is encoding &'s as & and the image url is not found. Here's an example. The correct image url: https://
Eddy
  • 3,533
  • 13
  • 59
  • 89
1
vote
1 answer

Using f:param inside o:graphicImage

The following used to work with p:graphicImage but not with o:graphicImage. Problem: data_id is always null. xhtml:
sinclair
  • 2,812
  • 4
  • 24
  • 53