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>
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.