السلام عليكم ورحمة الله وبركاته
بعد قرائتي للصفحتان التاليتان
http://jasperreportjsf.sourceforge.net/web/getting_started.html
http://jasperreportjsf.sourceforge.net/web/rendering_reports.html
حاولت تطبيق ما فهمته ولكن لم تنجح محاولتي فما هو الخطأ فيها .
المحاولة :
1 - أضفت لل html tag
xmlns:jr="http://jasperreportjsf.sf.net/tld/jasperreports-jsf-1_0.tld"
2 - أضفت لل body
<jr:report path="/reports/report1.jasper" format="pdf" />
3 - أضفت
jasperreports-jsf-1.0-beta-3.jar
لمجلد library
4 - أضفت المجلد reports في المجلد web pages
وعند تنفيذ المشروع يتم تحميل ملف بدون امتداد وعند محاولة فتحه بال adobe reader لايفتح .
الصفحة index.xhtml
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:jr="http://jasperreportjsf.sf.net/tld/jasperreports-jsf-1_0.tld"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<jr:report path="/reports/report1.jasper" format="pdf" />
</h:body>
</html>
<?xml version='1.0' encoding='UTF-8' ?>
مرفق المشروع بهيئة net beans والمكتبة المستخدمة

