myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "ExporterActionListener" by HazemSaleh
Date Sat, 07 Jun 2008 23:07:28 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by HazemSaleh:
http://wiki.apache.org/myfaces/ExporterActionListener

------------------------------------------------------------------------------
  
      <s:exporterActionListener filename="myFile" 
  	    		      fileType="<XLS or PDF>" 
- 			      for="<yourTableID>">;
+ 			      for="<your Tomahawk Scroller ID>"
+                               showDisplayedPageOnly="true or false (default: false)">;
  
  </h:commandButton>
  }}}
+ [[BR]]
+ Here are the exporterActionListener attributes :
  
+ * fileType: An attribute to specify whether to export an excel or a pdf file, possible values
are {'XLS', 'PDF'}.
+ 
+ * for: An id of the datatable to be exported.
+ 
+ * filename: An optional attribute to specify the filename of the exported excel or pdf file.
+ 
+ * showDisplayedPageOnly: An attribute determines whether to generate only the current displayed
dataTable page to the file.
+ 
+ [[BR]]
  The underlying excel exporting engine used is (Apache POI) while the pdf one is (iText).
Attribute (for) is the id of the datatable whose value to be exported, (fileType) is an attribute
to specify whether to export an excel or a pdf file , possible values are {'XLS', 'PDF'} ,
and (filename) is an optional attribute to specify the filename of the exported excel or pdf
file.
  

Mime
View raw message