-
1. Re: help a4j:mediaOutput
nbelaevski Dec 7, 2010 6:10 PM (in response to godoy)Hi Leandro,
1) Add a4j:mediaOutput as reRender target for poll
2) Set cacheable="false" for media output
3) Place nested f:param with random value and arbitrary name inside media output (this is to generate new URI each time it is requested)
-
2. Re: help a4j:mediaOutput
godoy Dec 8, 2010 8:00 AM (in response to nbelaevski)I tried but could not so he does not call the method of generation of the graph again, it updates the modalPanel but does not generate a new image
<a4j:poll interval="30000" reRender="formChart:chartRegion"
/>
<a4j:outputPanel ajaxRendered="true" id="chartRegion">
<a4j:mediaOutput createContent="#{bean.getImageFromTempoLineChart}"
mimeType="image/png" element="img" cacheable="false" session="false"
standby="Carregando gráfico..." id="chart1"
rendered="#{bean.chartType eq 'TEMPO_LOCALIDADE'}"
createContentExpression="#{bean.getImageFromVolumeLineChart}">
<f:param name="x" value="#{bean.randomUrl}"/>
</a4j:mediaOutput>