I'm trying to use the most simple form:
Code: Select all
<h:commandLink value="PDF">
<p:dataExporter type="pdf" target="datatable" fileName="cars"/>
</h:commandLink>
Code: Select all
<p:dataTable id="datatable"
var="rio"
value="#{holidaybean.holidayRequestOperationList}"
paginator="true"
rows="10"
selectionMode="single">
Code: Select all
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException
javax.faces.webapp.FacesServlet.service(FacesServlet.java:422)
root cause
java.lang.NullPointerException
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.12 logs.
Apache Tomcat/7.0.12