[seam-commits] Seam SVN: r8639 - trunk/doc/Seam_Reference_Guide/en-US.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Aug 8 10:32:12 EDT 2008
Author: danielc.roth
Date: 2008-08-08 10:32:12 -0400 (Fri, 08 Aug 2008)
New Revision: 8639
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Excel.xml
Log:
Updating excel docs to reflect recent changes.
Modified: trunk/doc/Seam_Reference_Guide/en-US/Excel.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Excel.xml 2008-08-08 14:10:57 UTC (rev 8638)
+++ trunk/doc/Seam_Reference_Guide/en-US/Excel.xml 2008-08-08 14:32:12 UTC (rev 8639)
@@ -41,10 +41,20 @@
<para>
Customizing the module to support other kinds of &excel; spreadsheet
API's has been made very easy. Implement the <literal>ExcelWorkbook
- </literal> interface, set the component name to
- <literal>org.jboss.seam.excel.<myModule></literal> and set the
- UIWorkbook type to <literal>myModule</literal> and your own exporter
- will be used. Default is "jxl", but support for CSV has also been
+ </literal> interface, and register in components.xml.
+ <programlisting role="XML">
+ <![CDATA[
+ <excel:excelFactory>
+ <property name="implementations">
+ <key>myExcelExporter</key>
+ <value>my.excel.exporter.ExcelExport</value>
+ </property>
+ </excel:excelFactory>
+ ]]>
+ </programlisting>
+
+ Then set the UIWorkbook type to <literal>myExcelExporter</literal> and your
+ own exporter will be used. Default is "jxl", but support for CSV has also been
added, using the type "csv".
</para>
@@ -2899,9 +2909,9 @@
</para>
<programlisting role="XML">
<![CDATA[
- <h:commandLink
+ <h:commandLink
value="Export"
- action="#{org.jboss.seam.excel.excelExporter.export('theForm:theDataTable')}"
+ action="#{excelExporter.export('theForm:theDataTable')}"
/>
]]>
</programlisting>
More information about the seam-commits
mailing list