Thanks Matthias.
I know the dirty solution of feeding the http response, but actually I was looking for something more component-oriented (e.g. cleaner). Btw, from some simple tests, it seems that just rendering an <object> instead of an <a> would work fine even for a pdf. I think I will start playing with ajax4jsf, their docs mention a multimedia rendering component.

-- Renzo



Matthias Wessendorf wrote:
I wouldn't expect to render a PDF.
Media players work, yes.

Search this mailing list for pdf creation. Was already discussed.

Thx,
Matthias

On 4/5/07, Renzo Tomaselli <[EMAIL PROTECTED]> wrote:
Hi, I tried to render a pdf file through tr:media. No success, although
no errors.
This works:

<tr:media source="/seattle.wmv">

this does not:

<tr:media source="/logo-simple.pdf"> even while adding
contentType="application/pdf"

Both are rendered inside an <a> element though, while I expected using
<object> or <embed>.
Can anybody explain me the difference between those cases ?
Thanks -- Renzo




Reply via email to