Jump to content
We've recently updated our Privacy Statement, available here ×

edilmaralves

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by edilmaralves

  1. Hi, My webapp is JSF2.2 running into PayaraServer4. I use this code to generate a PDF file from my JSF page: byte[] bytes = JasperRunManager.runReportToPdf(reportFile.getPath(), parameters, new JRBeanCollectionDataSource(list));response.setContentType("application/pdf");response.setContentLength(bytes.length);ServletOutputStream ouputStream = response.getOutputStream();ouputStream.write(bytes, 0, bytes.length);ouputStream.flush();ouputStream.close();[/code]but links dont work, into Firefox or Chrome builtin viewers or external program viewers if I save the PDF as a file. This is the jasper code: <textField pattern="" isBlankWhenNull="true" hyperlinkType="Reference" hyperlinkTarget="Blank"> <reportElement key="textField-12" style="FonteGeral" positionType="Float" mode="Opaque" x="2" y="1" width="40" height="9" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="9dc88c77-3ac9-4dec-99d7-bfc392d18f75"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None"> <font fontName="Times New Roman" size="7"/> <paragraph lineSpacing="Single"/> </textElement> <textFieldExpression><![CDATA[$F{numConhec}]]></textFieldExpression> <anchorNameExpression><![CDATA["Test Site"]]></anchorNameExpression> <hyperlinkReferenceExpression> <![CDATA["https://www.intersite.com.br"]]> </hyperlinkReferenceExpression></textField>[/code]
  2. Hi, Is it possible in JasperStudio/JasperReports 6.5.1 to create a hyperlink that calls a JSF method? I would like to select Type = Remote Page, but it is not a fixed URL address, it is a call to a Managed Bean/CDI Controller JSF method, that runs some line codes and after returns the .xhtml page.
×
×
  • Create New...