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

    a4j:media createContent not called by a4J:poll

    David Bolsover Newbie

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

       <a4j:poll id="poll" interval="1000" enabled="true"
       reRender="poll,grid" />
       <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" >

      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.