org.apache.myfaces.commons.exporter.util
Class PDFExporterUtil
java.lang.Object
   org.apache.myfaces.commons.exporter.util.PDFExporterUtil
org.apache.myfaces.commons.exporter.util.PDFExporterUtil
- public class PDFExporterUtil 
- extends java.lang.Object
This class is a utility class for serving PDF exporting.
 
| Method Summary | 
| static void | generatePDF(javax.faces.context.FacesContext facesContext,
            javax.servlet.http.HttpServletResponse response,
            java.lang.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 | 
 
PDFExporterUtil
public PDFExporterUtil()
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,
                               java.lang.String fileName,
                               javax.faces.component.html.HtmlDataTable dataTable)
                        throws java.lang.Exception
- This method is responsible for writing the PDF to the response stream.
 
- 
- Parameters:
- facesContext-
- response-
- fileName-
- dataTable-
- Throws:
- java.lang.Exception
 
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.