2 Replies Latest reply on May 7, 2009 9:30 AM by bolsover

    a4j:media createContent not called by a4J:poll

    bolsover

      I'm working with a4j:poll and a4j:mediaOutput in an attempt to produce an image that changes every few seconds.


      <a4j:region>
       <h:form>
       <a4j:poll id="poll" interval="1000" enabled="true"
       reRender="poll,grid" />
       </h:form>
       </a4j:region>
       <rich:panel id="grid" >
       <a4j:mediaOutput element="img" mimeType="image/jpeg" id="media"
       createContent="#{GenericDocumentBean.paint}" value="2"
       style="width:100px; height:100px;" cacheable="false" >
       </a4j:mediaOutput>
       </rich:panel>
      


      The GenericDocumentBean.paint method appears to work as needed when the page is manually refreshed - but is NEVER called in a reRender from the the a4j:poll component.
      I feel sure I'm missing somthing obvoius.
      Any and all suggestions welcome - I need to solve this.