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

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Aug 8 10:10:57 EDT 2008


Author: danielc.roth
Date: 2008-08-08 10:10:57 -0400 (Fri, 08 Aug 2008)
New Revision: 8638

Added:
   trunk/src/excel/META-INF/components.xml
Modified:
   trunk/examples/excel/src/org/jboss/seam/excel/ExcelTest.java
   trunk/examples/excel/view/home.xhtml
Log:
JBSEAM-3240

Modified: trunk/examples/excel/src/org/jboss/seam/excel/ExcelTest.java
===================================================================
--- trunk/examples/excel/src/org/jboss/seam/excel/ExcelTest.java	2008-08-08 13:53:45 UTC (rev 8637)
+++ trunk/examples/excel/src/org/jboss/seam/excel/ExcelTest.java	2008-08-08 14:10:57 UTC (rev 8638)
@@ -21,7 +21,7 @@
       List<Person> ret = new LinkedList<Person>();
       for (int i = 0; i < 10; i++)
       {
-         ret.add(new Person(i, "Janne_" + i, "Andersson" + i));
+         ret.add(new Person(i, "Janne" , "Andersson " + i));
       }
       return ret;
 

Modified: trunk/examples/excel/view/home.xhtml
===================================================================
--- trunk/examples/excel/view/home.xhtml	2008-08-08 13:53:45 UTC (rev 8637)
+++ trunk/examples/excel/view/home.xhtml	2008-08-08 14:10:57 UTC (rev 8638)
@@ -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.exporter.excelExporter.export('excelExport:excelTable')}" />
+			<h:commandLink value="Export table" action="#{excelExporter.export('excelExport:excelTable')}" />
 
 		</a4j:outputPanel>
 	</h:form>

Added: trunk/src/excel/META-INF/components.xml
===================================================================
--- trunk/src/excel/META-INF/components.xml	                        (rev 0)
+++ trunk/src/excel/META-INF/components.xml	2008-08-08 14:10:57 UTC (rev 8638)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns="http://jboss.com/products/seam/components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
+
+	<import>org.jboss.seam.excel</import>
+
+	<factory name="excelExporter" auto-create="true" scope="stateless" value="#{org.jboss.seam.excel.exporter.excelExporter}" />
+
+</components>




More information about the seam-commits mailing list