Primefaces dataExporter and nested dataTable

后端 未结 2 1667
Happy的楠姐
Happy的楠姐 2021-01-06 13:30

I\'m using a dataTable inside another dataTable. When I try to export (in any format) using the dataExporter i got something like: \"

2条回答
  •  一生所求
    2021-01-06 14:20

    This is limitation of dataExporter you have to make your own exporter to do this. I think it is best to try to override method exportValue from Export class (which is superclass of all custom export classes). Here, if value is not instance of HtmlCommandLink or ValueHolder just toString() is used, so that is why you see this is printed. Additionally you will have to make your action listener which will instantiate your custom classes for exporting.

提交回复
热议问题