java - No enum constant org.primefaces.extensions.component.exporter.DefaultExporterFactory.ExporterType.CSV -


I use Praimfeshens extension to export data using the RowExpension your data table I'm because the original primface does not support this kind of structure, I do not want to write a pure iText code for practicality.

HTML:

  & lt; P: commandLink id = "csv" ajax = "false" & gt; & Lt; H: output text value = "csv" /> & Lt; F: setPropertyActionListener value = "wrong" target = "# {panoramicaMB.customExporter}" /> & Lt; Pe: exporter type = "csv" target = "tabela" fileName = "panoramicas" facetBackground = "#AAFFBB" dataset padding = "4" /> & Lt; / P: commandLink & gt;  

The attribute customExporter is a primitive boolean. I changed from isCustomExporter () to getCustomExporter () . Similar results with both names

Part Stack trace:

  java.lang.IllegalArgumentException: an enum constant org.primefaces.extensions.component on java.lang. Exporter.DefaultExporterFactory.ExporterType.CSV Org.primefaces.extensions.component.exporter.DefaultExporterFactory $ ExporterType.valueOf (ExporterProjectorProvider.Enum.valueOf (Enum.java-20138) at org.primefaces.extensions.component.exporter.DefaultExporterFactory.getExporterForType (ExporterFinderProvider.Java: 67) org.primefaces.extensions.component.exporter.DataExporter.processAction (DataExporter.java:174) on javax.faces.event.ActionEvent.processListener (ActionEvent.java:88) .broadcast on javax.faces.component.UIComponentBase on javax.faces.component.UICommand.broadcast (UICommand.java:300) (UIComponentBase.java:813) on javax.faces.component.UIViewRoot.broadcastEvents (UIViewRoot.java:790) on javax.faces.component. UIViewRoot.processApplication on Com.un.faces.lifecycle.InvokeApplicationPhase.execute (UIViewRoot.java:1282) (InvokeApp licationPhase.java:81) com.sun.faces.lifecycle.Phase.doPhase (Phase.java:101) com. sun.faces.lifecycle.LifecycleImpl.execute (.FacesServlet.service on) javax.faces.webapp on LifecycleImpl.java:198 (FacesServlet.java:646) io.undertow.servlet.handlers.FilterHandler io at $ FilterChainImpl.doFilter (FilterHandler.java:130) br.com.shelfpix.filters.filtroDeConexao.doFilter (FiltroDeConexao.java:230) io.undertow.servlet.core at .undertow.servlet.handlers.ServletHandler.handleRequest (ServletHandler.java:85) From the documents of the extension:  

type: "PDF" on the ManagedFilter.doFilter (ManagedFilter.java:56) ... at

. >

," XLSX ".

It seems CSV is not supported.


Comments