data is an alias for value. Do you have them both ?
I have both:
<rich:paint2D id="paint2D" paint="#{paintBean.paint}" data="#{dataBean}" width="640" height="480" format="jpeg" cacheable="false" bgcolor="white" value="#{dataBean.value}" />
OK.
I have found a work-around: use mediaOutput.
THis has better control of caching, it seems:
<rich:panel header="Media"> <h:selectOneMenu id="masterMenu" value="#{masterBean.selectedOption}"> <a4j:support event="onchange" reRender="chartImage" ajaxSingle="true" /> <f:selectItems value="#{masterBean.options}" /> </h:selectOneMenu> <br /> <a4j:outputPanel id="chartImage"> <a4j:mediaOutput element="img" cacheable="false" session="false" createContent="#{chartGenerator.generate}" mimeType="image/jpeg" value="#{masterBean.selectedOptionLabel}" standby="Please wait...loading chart..." /> </a4j:outputPanel> </rich:panel>
Yes, this is real bug in the "paint2d" component.
I have been created issue in Jboss JIRA - http://jira.jboss.org/jira/browse/RF-1038.
Thanks.
Was this bug ever fixed?