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.

      target:
      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" />
      </a4j:outputPanel>
      


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

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


      <a4j:commandLink reRender="code">
      change
      </a4j:commandLink>
      


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