3 Replies Latest reply on May 19, 2008 11:37 AM by lschoop

    a4j:mediaOutput and Ajax problem in Firefox

    lschoop

      Dear Richfaces users

      I experience an update issue in Firefox when using a4j:mediaOutput in conjunction with the reRender attribute of a4j components. In my case I use a a4j:push component to rerender a server-side generated image.

      It works fine in IE, but in Firefox the re-rendering of the mediaOutput component fails. Other components are updated without problems.

      Here is the code:

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
       <ui:define name="routingOverview">
       <a4j:form eventsQueue="graphUpdateQueue" ajaxSubmit="true">
       <a4j:region id="routingGraphUpdate">
       <a4j:push reRender="routingGraph, lastUpdate" interval="2000"
       eventProducer="#{routingOverview.setAjaxListener}" />
       </a4j:region>
       </a4j:form>
       <h:outputLabel for="lastUpdate" value="Last Update:" />
       <h:outputText id="lastUpdate" value="#{routingOverview.lastUpdate}">
       <f:convertDateTime pattern="dd.MM. HH:mm:ss" timeZone="#{configuration.serverTimezone}" />
       </h:outputText>
       <a4j:outputPanel id="routingGraph">
       <a4j:mediaOutput element="img" session="true" cacheable="false"
       createContent="#{routingOverview.renderRoutingGraph}"
       mimeType="image/png" style="border:0px" />
       </a4j:outputPanel>
       </ui:define>
      </ui:composition>
      


      I experience this issue in both Richfaces 3.1.4 GA and 3.1.5 GA. I guess it's a caching problem...

      Any help is appreciated! Thanks in advance.

      Regards, Lorin