http://netbeansboy.com/2009/04/20/using-jasper-reports-with-icefaces-and-visual-web/
init()
try {
FacesContext fc = FacesContext.getCurrentInstance();
ExternalContext ec = fc.getExternalContext();
pdfResource = new MyResource(ec, "report.pdf");
} catch (Exception e) {
e.printStackTrace();
}