Problems with <p:dataexporter>

UI Components for JSF
Post Reply
Devos
Posts: 8
Joined: 22 Apr 2011, 09:32

03 May 2011, 14:47

Hi,

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>
with a datatable that generates perfectly and has the following outline:

Code: Select all

<p:dataTable id="datatable"
                    var="rio"
                    value="#{holidaybean.holidayRequestOperationList}"
                    paginator="true"
                    rows="10"
                    selectionMode="single">
I get the following error:

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
Does anybody know what I'm doing wrong?

Devos
Posts: 8
Joined: 22 Apr 2011, 09:32

04 May 2011, 16:57

Nobody? I really need this

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 63 guests