Documentation
Project Documentation
Foundation

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.

Screen Shot

exporterActionListener

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>

		

Syntax

<s:exporterActionListener>

fileType="Attribute to specify whether to export an excel or a pdf file, possible values are {'XLS', 'PDF'}"
for="Id of the JSF dataTable to be exported"
filename="Optional attribute to specify the filename of the exported excel or pdf file"

Additional Information

see exporter.jsp in the Sandbox examples.