export (CSV) with a field contains a call to backing bean

UI Components for JSF
Post Reply
tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

29 Mar 2012, 00:39

Awesome export capability.

Found an issue when one of the fields calls a routine on the backing bean.

given code in table column:

Code: Select all

<h:outputText value="#{RRRController.contactDetails(table-localvar)}" escape="false"/>
The page renders fine with no problems, but when you try to export the table:

Code: Select all

<p:dataExporter type="csv" target="VVV-table" fileName="GGGData" />
we get javax.el.PropertyNotFoundException :
Property 'contactDetails' not found on type RRRController


method sig on controller:

Code: Select all

public String contactDetails(YY yY) {
PF 3.2
jsf-impl: 2.1.6.

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

29 Mar 2012, 00:57

For workaround I moved the "pretty print" routine down to the entity and made it seem like a "getter".

Code: Select all

<h:outputText value="#{eachXXX.someentity.anotherentity.prettyPrintContactDetails}" escape="false"/>
new method sig in base entity:

Code: Select all

public String getPrettyPrintContactDetails() {

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests