2 Replies Latest reply on Sep 8, 2008 9:46 AM by lee shaotu

    mediaOutput ajax rendered do not work

    lee shaotu Newbie

      Hi,I've got some problem in using <a4j:mediaOutput> tag.

      click the "change" link,the authcode image refreshs.

      <a4j:outputPanel id="code">
      <a4j:mediaOutput element="img" cacheable="false" session="false"
       createContent="#{authcode.paint}" value="#{mediaData}" mimeType="image/jpeg" />

      The problem is hao to design the "change" link.I've tried these(both are useless):

      <h:outputLink value="#">
      <a4j:support event="onclick" reRender="code"/>

      <a4j:commandLink reRender="code">

      I think the cause maybe the attribute "mediaData" do not change during every requst.
      Please offer me a solution,great thanks!