You can check out the experimental DataTable export API, which is available in the current nightly build. We'll declare this API officially if it stands the test of time. For now, only CSV export is available, but you can write your own exporters for other formats.
Here's the code that you should put in your action handler to make it work.
You can check out the experimental DataTable export API, which is available in the current nightly build. We'll declare this API officially if it stands the test of time. For now, only CSV export is available, but you can write your own exporters for other formats.
Here's the code that you should put in your action handler to make it work: DataTable myTable = Faces. Component("form:myTable", DataTable. Class); myTable.
Export(new CSVTableExporter()); It exports the data for all of the rows and columns as currently displayed by the table (only the current page of a paginated table is exported currently).
Thanks for the answer. It is exciting to know the incoming version of OpenFaces will include CSV exporter. It suits me well if it is CSV and not excel!
However, What should I do? Replace the actual Openfaces jar by the nightly build one (which I prefer not). Otherwise, how should I physically use the exporter API?
For I imported the NBuild as a second libray and this made a JSF implementation conflict. Regards – Mediterran81 Jun 30 at 21:11 I did exactly what you recommended by I get only the Table Headers but no Row data in the exported CSV file. AS if the table was empty which is not the case.Is there something wrong?
I posted a question in the forum! Regard @Dmitry – Mediterran81 Jul 7 at 21:33 solved after your post on OF forum. But still, how can I use the export APi along with of 3.0.
Regards @Dmitry – Mediterran81 Jul 13 at 12:03.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.