Below is JSF code i have written for Export report in JSF.
<div class="chart_title">
<h:outputText value="Report " />
<h:commandLink styleClass="exportExcel"
onclick="JSF4Actuate.pdf('myForm:productReportId')">=
<f:ajax execute="@form" render="@none" />
</h:commandLink>
</div>
<br />
<div class="scroll_div">
<birt:birtWrapper id="productReportId"
reportDesign="/reports/database_growth_report.rptdesign">
</birt:birtWrapper>
</div>
This is working. But when i load this page. It takes time to generate birt report and then render page. and if i click on "Export PDF", it again call to report.
For improvement in this functionallity, is there any way, so that i can get report only on clicking "Export Pdf" functionality , instead of page load.
I tried with below code, but it didn't work for me.
<div class="chart_title">
<h:outputText value="Database Growth Report 1 " />
<h:commandLink styleClass="exportExcel"
onclick="JSF4Actuate.pdf('/reports/database_growth_report.rptdesign')">=
<f:ajax execute="@form" render="@none" />
</h:commandLink>
</div>