Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
19.13. Datatable exporter
If you prefer to export an existing JSF datatable instead of writing a dedicated XHTML document, you can execute the
org.jboss.seam.excel.excelExporter.export component, passing in the ID of the datatable as an Seam EL parameter. For example, say you have the following datatable:
If you want to view this as a Microsoft Excel spreadsheet, place the following in the form:
<h:commandLink value="Export"
action="#{excelExporter.export('theForm:theDataTable')}" />
<h:commandLink value="Export"
action="#{excelExporter.export('theForm:theDataTable')}" />
You can also execute the exporter with a button, s:link, or other preferred method.
See Section 19.14, “Fonts and layout” for formatting.