org.apache.myfaces.commons.exporter.util
Class PDFExporterUtil

java.lang.Object
  extended by org.apache.myfaces.commons.exporter.util.PDFExporterUtil

public class PDFExporterUtil
extends Object

This class is a utility class for serving PDF exporting.


Constructor Summary
PDFExporterUtil()
           
 
Method Summary
static void generatePDF(javax.faces.context.FacesContext facesContext, javax.servlet.http.HttpServletResponse response, String fileName, javax.faces.component.html.HtmlDataTable dataTable)
          This method is responsible for writing the PDF to the response stream.
static com.lowagie.text.pdf.PdfPTable generatePDFTableModel(javax.faces.context.FacesContext facesContext, javax.faces.component.html.HtmlDataTable dataTable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFExporterUtil

public PDFExporterUtil()
Method Detail

generatePDFTableModel

public static com.lowagie.text.pdf.PdfPTable generatePDFTableModel(javax.faces.context.FacesContext facesContext,
                                                                   javax.faces.component.html.HtmlDataTable dataTable)

generatePDF

public static void generatePDF(javax.faces.context.FacesContext facesContext,
                               javax.servlet.http.HttpServletResponse response,
                               String fileName,
                               javax.faces.component.html.HtmlDataTable dataTable)
                        throws Exception
This method is responsible for writing the PDF to the response stream.

Parameters:
facesContext -
response -
fileName -
dataTable -
Throws:
Exception


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.