Jfreechart and imagemaps on p:graphicimage rerendering

UI Components for JSF
Post Reply
jadsonb
Posts: 32
Joined: 01 Jul 2010, 22:03

27 Jul 2010, 15:56

Hi,

Dunno if here is the right place, but lets try.
i have a chart, and i dont want to do a submit to the form, only rerendering the chart+imagemaps.

actually i am using the p:graphicimage + an h:outputtext for the chart+imagemap, and a a4j:commandbutton to do the rerender.

Code: Select all

<div id="rec">
//...
//...
<p:graphicImage id="aaPic" value="#{backingBeanPizza.chartImage}"  usemap="#imgMap" cache="false">
</p:graphicImage>
<h:outputText id="outMap" escape="false" value="#{backingBeanPizza.mapCode}" ></h:outputText>
</div>

Code: Select all

	    <a4j:commandButton style="height:20px;" id="submit" value="Render" reRender="rec,aaPic,outMap" >
		</a4j:commandButton>	
its working fine, no submit etc etc, execpt for the imagemap...

when i first execute the code: it render the chart and create the imagemap, but when i try the second time, dunno why, it create the chart only ( i mean, the chart appear fine, but the imagemap is the one of the first chart, not the one of the second chart.)

in the log, i saw that he actually creates the imagemap for the second, but dunno why it dont appear.

thanks in advance.
PrimeFaces 3.0.M2, Mojarra 2.1.2, Tomcat 6.0.26/7.0.8, Eclipse, IE 8

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests