I am trying to use Prime Faces data exporter component:
<p:dataExporter type="xls" target="table_name" fileName="summaries"/>
It would seem that the target attribute needs to point to the id of a data table. On my page I have a composite component which gets included twice. It takes one parameter which tells it where to get its data from. So the composite component renders the same table twice, but with different data.
I want the exporter for both tables. In my composite component I have:
<p:dataTable id="overview"
Of course when this is rendered twice JSF generates the id dynamically e.g.
form:tabView:j_id1693604892_4df53909:overview
Is there any way I can get the Prime Faces data exporter to work in this circumstance ?
Thanks.