Project Documentation
Foundation

Summary

Tag name: <s:exporterActionListener>
Tag class: org.apache.myfaces.custom.exporter.ExporterActionListenerTag
Export datatable contents to an excel file or a pdf file.

Screen Shot

exporterActionListener

Usage

<h:commandButton value="export">
	
	                <s:exporterActionListener filename="myFile" 
	                                 fileType="<XLS or PDF>" 
	                                 for="<your Tomahawk DataScroller ID>"
	                                 showDisplayedPageOnly="true or false (default: false)"/>
	
	            </h:commandButton>

Instructions

see exporter.jsp in the Sandbox examples.

Attributes

Name Type Required Description
fileType String false "PDF" or "XLS"
filename String false Default name of the generated excel or pdf file, if not specified value of the "for" attribute will be used
for String false Id of the datatable component whose values to be exported