2 Replies Latest reply on Oct 29, 2007 10:19 PM by ericjava

    ajax4jsf mediaOutput in Seam?

      I'm trying to use mediaOutput in Seam: (1.2.1):

      <a:mediaOutput element="image" cacheable="false" session="true"
       createContent="#{chartGenerator.paint}"
       uriAttribute="src"
       value="#{chartParameters}" mimeType="image/png" />


      The chartGenerator.paint method never gets called; the whole thing is ignored. In fact if I change the name "paint" to something else that isn't even a method on that class, it doesn't throw any exceptions or do anything.

      I searched around the documentation and couldn't find references on this.

      I realize that using object serialization to pass in a value is very un-Seam (unseamly?).

      What's the right way to do this? I could set up a Servlet to generate the image but that's even more unseamly.