0 Replies Latest reply on Mar 23, 2009 1:20 PM by ZJ DA

    a4j:mediaOutput with object element

    ZJ DA Newbie

      Hi, I try to use a4j:mediaOutput to pre-view objects. However, it does not render object correctly while the html object tag works fine.

      <rich:panel id="previewPanel">
       <object data="#{fileUploadBean.uri}" type="text/html" style="width:500px; height:200px;"/>
       <a4j:mediaOutput element="object" mimeType="text/html"
       createContent="#{fileUploadBean.paint}" value="#{row}"
       style="width:500px; height:200px;"
       uriAttribute="#{fileUploadBean.uri}">
       </a4j:mediaOutput>
      </rich:panel>
      


      Actually, fileUploadBean.paint method is never called and IE display a red cross for the component. I searched this forum but I did not get a clear answer.

      I really want to use a4j:meidaOutput instead of html object tag because I can set element attribute dynamically and use createContent to retrieve data from database.

      Any suggestion will be appreciated.
      -ZJ