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

    a4j:mediaOutput and Ajax problem in Firefox

    Lorin Schoop Newbie

      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"
       <ui:define name="routingOverview">
       <a4j:form eventsQueue="graphUpdateQueue" ajaxSubmit="true">
       <a4j:region id="routingGraphUpdate">
       <a4j:push reRender="routingGraph, lastUpdate" interval="2000"
       eventProducer="#{routingOverview.setAjaxListener}" />
       <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}" />
       <a4j:outputPanel id="routingGraph">
       <a4j:mediaOutput element="img" session="true" cacheable="false"
       mimeType="image/png" style="border:0px" />

      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