1 Reply Latest reply on May 27, 2009 12:11 PM by Nick Belaevski

    mediaOutput and seams documentStore

    nimo stephan Master


      where lies the difference of rich:mediaOutput and SEAM's DocumentStore.

      I want to produce binary data(such as pdf, images, ..) via code and output it to a JSF something:

      With rich:mediaOutput, I do not need to configure the Seam's DocumentStore:

      <rich:mediaOutput value={mybinaryData} ...

      When using rich:mediaOutput, I do not need SEAM's DocumentStore, and vice versa? Am I right? Which is better? Are there any difference?

      Using Seams documentStore, I have to do some settings:

      for example:
      <document:document-store use-extensions="true" error-page="/missingDoc.seam"/>

       <servlet-name>Document Store Servlet</servlet-name>
       <servlet-name>Document Store Servlet</servlet-name>
       <servlet-name>Document Store Servlet</servlet-name>

      There are no equivalent settings in rich:mediaOutput. Which one is better?