I'm new to Clay, and just slightly less new to JSF.  I'm experimenting with a 
JSF custom component that renders an eclipse BIRT report. I'm using Clay HTML 
views in a webapp that among other things needs to render various reports.  I'm 
not using any JSP, so didn't bother with a JSP tag for this component.

BIRT reports can either be rendered as embedded HTML, or as a PDF.  I think I 
understand how everything works rendering HTML. My question is with rendering a 
report to PDF - the content is no longer HTML and the response content type has 
to be application/pdf.  So my custom component based on UIComponentBase that 
works fine with embeded HTML won't work for PDF.  If an attribute on this 
component indicates a PDF rendering is desired, what's a good strategy for 
implementing this?  One thought that comes to mind is rendering javascript back 
in the HTML response, that would pop up a separate window, and have that served 
by a separate URL handled outside of Clay/JSF.  Are there better alternatives 
for handling this? I know very little about custom RenderKits or other options, 
and would appreciate it if anyone is interested in pointing me in other 
directions.

Thanks in advance for any tips...

Reply via email to