[seam-commits] Seam SVN: r8637 - in trunk: examples/excel/view and 4 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Aug 8 09:53:45 EDT 2008


Author: danielc.roth
Date: 2008-08-08 09:53:45 -0400 (Fri, 08 Aug 2008)
New Revision: 8637

Added:
   trunk/src/excel/org/jboss/seam/excel/exporter/
Removed:
   trunk/src/excel/org/jboss/seam/excel/jxl/exporter/
Modified:
   trunk/examples/excel/resources/WEB-INF/components.xml
   trunk/examples/excel/view/home.xhtml
   trunk/src/excel/org/jboss/seam/excel/exporter/ExcelExporter.java
   trunk/src/excel/org/jboss/seam/excel/exporter/StyleParser.java
   trunk/src/excel/org/jboss/seam/excel/ui/UIExcelExport.java
Log:
JBSEAM-3239

Modified: trunk/examples/excel/resources/WEB-INF/components.xml
===================================================================
--- trunk/examples/excel/resources/WEB-INF/components.xml	2008-08-08 13:34:18 UTC (rev 8636)
+++ trunk/examples/excel/resources/WEB-INF/components.xml	2008-08-08 13:53:45 UTC (rev 8637)
@@ -9,7 +9,6 @@
 
 	<core:init debug="true" jndi-pattern="@jndiPattern@" />
 
-	<!-- Just a sample of how you may register own ExcelWorkbooks -->
 	<excel:excelFactory>
 		<property name="implementations">
 			<key>jxl</key><value>org.jboss.seam.excel.jxl.JXLExcelWorkbook</value>

Modified: trunk/examples/excel/view/home.xhtml
===================================================================
--- trunk/examples/excel/view/home.xhtml	2008-08-08 13:34:18 UTC (rev 8636)
+++ trunk/examples/excel/view/home.xhtml	2008-08-08 13:53:45 UTC (rev 8637)
@@ -42,7 +42,7 @@
 					<h:outputText value="#{person.age}"></h:outputText>
 				</rich:column>
 			</rich:dataTable>
-			<h:commandLink value="Export table" action="#{org.jboss.seam.excel.excelExporter.export('excelExport:excelTable')}" />
+			<h:commandLink value="Export table" action="#{org.jboss.seam.excel.exporter.excelExporter.export('excelExport:excelTable')}" />
 
 		</a4j:outputPanel>
 	</h:form>

Copied: trunk/src/excel/org/jboss/seam/excel/exporter (from rev 8636, trunk/src/excel/org/jboss/seam/excel/jxl/exporter)

Modified: trunk/src/excel/org/jboss/seam/excel/exporter/ExcelExporter.java
===================================================================
--- trunk/src/excel/org/jboss/seam/excel/jxl/exporter/ExcelExporter.java	2008-08-08 13:34:18 UTC (rev 8636)
+++ trunk/src/excel/org/jboss/seam/excel/exporter/ExcelExporter.java	2008-08-08 13:53:45 UTC (rev 8637)
@@ -1,4 +1,4 @@
-package org.jboss.seam.excel.jxl.exporter;
+package org.jboss.seam.excel.exporter;
 
 import java.io.IOException;
 import java.util.ArrayList;
@@ -36,7 +36,7 @@
  * @author Nicklas Karlsson (nickarls at gmail.com)
  * 
  */
- at Name("org.jboss.seam.excel.excelExporter")
+ at Name("org.jboss.seam.excel.exporter.excelExporter")
 @Scope(ScopeType.EVENT)
 @BypassInterceptors
 public class ExcelExporter
@@ -55,8 +55,8 @@
    @SuppressWarnings("unchecked")
    public void export(String dataTableId)
    {
-      // FIXME: hardcoded
-      excelWorkbook = ExcelFactory.instance().getExcelWorkbook("jxl");
+      // TODO: support "type" ?
+      excelWorkbook = ExcelFactory.instance().getExcelWorkbook("");
 
       // Gets the datatable
       UIData dataTable = (UIData) FacesContext.getCurrentInstance().getViewRoot().findComponent(dataTableId);

Modified: trunk/src/excel/org/jboss/seam/excel/exporter/StyleParser.java
===================================================================
--- trunk/src/excel/org/jboss/seam/excel/jxl/exporter/StyleParser.java	2008-08-08 13:34:18 UTC (rev 8636)
+++ trunk/src/excel/org/jboss/seam/excel/exporter/StyleParser.java	2008-08-08 13:53:45 UTC (rev 8637)
@@ -1,4 +1,4 @@
-package org.jboss.seam.excel.jxl.exporter;
+package org.jboss.seam.excel.exporter;
 
 import java.util.ArrayList;
 import java.util.HashMap;

Modified: trunk/src/excel/org/jboss/seam/excel/ui/UIExcelExport.java
===================================================================
--- trunk/src/excel/org/jboss/seam/excel/ui/UIExcelExport.java	2008-08-08 13:34:18 UTC (rev 8636)
+++ trunk/src/excel/org/jboss/seam/excel/ui/UIExcelExport.java	2008-08-08 13:53:45 UTC (rev 8637)
@@ -8,7 +8,7 @@
 
 import org.jboss.seam.core.Interpolator;
 import org.jboss.seam.excel.ExcelWorkbookException;
-import org.jboss.seam.excel.jxl.exporter.ExcelExporter;
+import org.jboss.seam.excel.exporter.ExcelExporter;
 
 public class UIExcelExport extends ExcelComponent
 {




More information about the seam-commits mailing list