So it would be
Code: Select all
<pe:export skipComponents="org.primefaces.component.menu.Menu,org.primefaces.component.panel.Panel" ...
Code: Select all
if (skipComponents.contains(component.getClass().getName())
return "";
Code: Select all
<pe:export skipComponents="org.primefaces.component.menu.Menu,org.primefaces.component.panel.Panel" ...
Code: Select all
if (skipComponents.contains(component.getClass().getName())
return "";
donesudheer wrote:Please create an issue for this in extensions issue tracker.We will analyse and fix this issue.
Thanks.We will check it.Marx wrote:donesudheer wrote:Please create an issue for this in extensions issue tracker.We will analyse and fix this issue.
https://github.com/primefaces-extension ... issues/191
I follow this steps but when i try to export with CostumExporter I get ERROR: org.primefaces.extensions.component.exporter.ExporterFactory: Provider costum.CostumExporterFactory not a subtype.sudheer wrote:see my response belowrodmc wrote:sudheer i really need help here
this is what ive done by now:
1) under resources i created META-INF/services
2) inside services i created an empty text file called "Bean.ExporterFactory" (Bean is the package where my CustomExporterFactory is)
3) inside the file i added this line "Bean.CustomExporterFactory"
4) i created a java class (under my Bean package) called "CustomExporterFactory".
5) i made copy/paste of "DefaultExporterFactory" from here: https://github.com/primefaces-extension ... vider.java into my "CustomExporterFactory" class i created in step 4. (of course i changed the class name to "CustomExporterFactory"..
6) i created a java class called "PDFCustomExporter" under my "Bean" package, inside of it i made copy/paste of this: https://github.com/primefaces-extension ... orter.java
7) under META-INF/services i created a file called "Bean.PDFExporter" and inside of it i wrote Bean.PDFCustomExporter
8) now what? are all this steps ok by now? or im missing some steps ? i really have searched in this forum but everything regarding to the custom pdf exporter is so confusing and unclear that i dont know what to do.. i saw your other post about this but i did not understood anything.. i did all this trying to follow that post..
now how can i call my PDFCustomExporter from the view?? if i write pe:exporter.PDFCustomExporter it is not recognized and i did not understood very well the service loader stuff (yes i saw tha page explaining it, but i still dont get how to use it in this case)
pd. i also tried calling the files: org.primefaces.extensions.component.exporter.ExporterFactory and "Bean.CustomExporterFactory" inside the file
the other file org.primefaces.extensions.component.exporter.PDFExporter and inside "Bean.PDFCustomExporter".. but nothing..
please please help!!
1) correct
2) wrong.file name should be "org.primefaces.extensions.component.exporter.ExporterFactory"
3)correct
4)correct
5)correct.And change the name of PDFExporter to PDFCustomExporter
6)correct
7)wrong.This step is not needed and shouldn't do that
Now your application will call your own custom export instead default export.I will add the showcase example soon (and becasue of work load I didn't get the time to do that).If you still facing issues then you can reach my account sudheer.jonna@gmail.com.
Users browsing this forum: No registered users and 5 guests