Description
ExporterActionListener tag allows exporting HtmlDataTable content as an excel or a pdf file.
It is an action listener that can be attached to any action source component like commandButton.
API
author | Cagatay Civici, Hazem Saleh |
tag-class | org.apache.myfaces.custom.exporter.ExporterActionListenerTag |
Usage
<h:commandButton value="export"> <s:exporterActionListener filename="myFile" fileType="<XLS or PDF>" for="<your JSF DataTable ID>" </h:commandButton>