Doubled content of graphicImage

UI Components for JSF
Post Reply
honyk
Posts: 150
Joined: 28 Sep 2010, 11:14

17 May 2011, 00:48

Hello Everyone,

when the following syntax is used:

Code: Select all

<p:graphicImage value="#{renderBean.renderSVG()}"/>
the returned image consist of two consecutive output of the same content. If my renderSVG method is performed outside the WebApp, it produces the correct result.
During debug I enter into the following code in GraphicImageRenderer.java:

Code: Select all

String imageSrc = image.getValue() == null ? "" : getImageSrc(context, image);
and because getValue is not null, it continues here

Code: Select all

Object value = image.getValue();
I think that 'image' object appends the data in every call which gives me this faulty outputs. Is there any workaround?
And I am right or there is any mistake on my side?

Regards,
Jan
PF 3.0-M2 snapshot/Tomcat/FF4

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 38 guests