Hi people,
I need your help to sort out a issue.
I´m trying to change the classes that creates Excel and PDF. These classes that creates those files needs to be changed from org.apache.poi.hssf.usermodel.HSSFXXXX to org.apache.poi.xssf.streaming.SXSSFXXXX
Because the SXSSF supports to write in file every 100 lines until end of dataTable. I need to implement it because sometimes the users needs to download huge xlsx file.
I need to override the export classes like when we override resource bundle messages.
If it is possible. I would like to override the primefaces classes in order to use it as main classes like getting the classes from the .jar of primefaces.
So if I do it I don´t need to change the <h:commandLink> I just call it as normal like that:
<h:commandLink>
<p:graphicImage name="/demo/images/excel.png" width="24"/>
<p:dataExporter type="xls" target="tbl" fileName="cars" />
</h:commandLink>
Thank you very much !
How to override org.primefaces.extensions.component.exporter.ExporterFactoryProvider ?
Hmm I am not quite sure what you are asking. The only thing you can customize is this example:
https://www.primefaces.org/showcase-ext ... tTable.jsf
However if you want to replace core functionality I think you will just have to write your own Exporter code based on the PF code.
https://www.primefaces.org/showcase-ext ... tTable.jsf
However if you want to replace core functionality I think you will just have to write your own Exporter code based on the PF code.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 409
- Joined: 28 Dec 2011, 17:44
I followed the instructions found for primefaces extension exporter. All i have to do was adding a org.primefaces.extensions.component.exporter.ExporterFactory file under META-INF/services and add the FQN of my own ExporterFactory, creating my own exporter instances.
Primefaces 8.0.7 (PF Extensions 8.0)
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest