I need to be able to isolate 2 places in my JSF page to send to the PrimeFaces Printer component. Unfortunately I can not find an example of how to do this anywhere including the PrimeFaces documentation. Surely this command is more flexible than just taking in one target?
Using PrimeFaces 6.2
I tried this:
<p:commandButton value="Print in a PRINTER FREINDLY format">
<p:printer target="area1" />
<p:printer target="area2" />
</p:commandButton>
<p:outputPanel id="area1">
...
</p:outputPanel>
...bunch of code between these two output panels...
<p:outputPanel id="area2">
...
</p:outputPanel>
no error shows up however only the target that is put first shows up in the print page.
Doing this:
<p:printer target="area1 area2" />
results in a error.
Can someone please advise on how I can have multiple targets for the printer command in PrimeFaces?