5 Replies Latest reply on Oct 18, 2007 8:44 AM by Alexander Belov

    How to rerender a4j:mediaOutput?

    Alexander Belov Novice

      Can anybody advice how can I reRender a4j:mediaOuptut?

      I have the following:

      <h:selectOneListbox size="1" id="currentFilters" value="#{graphSessionBean.communicationFilterName}">
       <f:selectItems value="#{graphBean.filters}"/>
       <a4j:support event="onchange" reRender="outputImage" limitToList="true" ajaxSingle="true" ignoreDupResponses="true"/>
       <a4j:support event="onkeyup" reRender="outputImage" limitToList="true" ajaxSingle="true" ignoreDupResponses="true"/>
      </h:selectOneListbox>
      
      <a4j:outputPanel id="outputImage">
      <a4j:mediaOutput createContent="#{graphBean.paint}" value="#{graphSessionBean.currentGraphAttributes}" mimeType="image/jpeg" id="output" element="img" cacheable="false" session="false"/>
      
      When I change value of h:selectOneListbox, I want to reRender a4j:mediaOutput. Value of a4j:mediaOutput is the same, but #{graphBean.paint} is not called and in responce I have the same image.
      </a4j:outputPanel>