How to serve a pdf in a JSF application
574648Jan 4 2008 — edited Jan 4 2008Hi all,
I'l like to know what would be the easiest way to serve a pdf file to the client, considering that we're working in a JSF application.
We am doing this with Servlets at the moment but it is quite a hassle to get the FacesContext from within those servlets.
So, is there any straightforward, simple solution to this?
In fact the same thing applies for XML or any other content type. I don't really know how to start with it.
Thanks,
Steven