[seam-commits] Seam SVN: r8795 - trunk/examples/excel/view.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Aug 25 06:30:32 EDT 2008


Author: nickarls
Date: 2008-08-25 06:30:32 -0400 (Mon, 25 Aug 2008)
New Revision: 8795

Modified:
   trunk/examples/excel/view/csv.xhtml
   trunk/examples/excel/view/home.xhtml
   trunk/examples/excel/view/jxl.xhtml
Log:
Fixes to excel example as reported by JB in 3306 and 3307. Cleared with PM.

Modified: trunk/examples/excel/view/csv.xhtml
===================================================================
--- trunk/examples/excel/view/csv.xhtml	2008-08-24 10:56:24 UTC (rev 8794)
+++ trunk/examples/excel/view/csv.xhtml	2008-08-25 10:30:32 UTC (rev 8795)
@@ -3,7 +3,7 @@
 	<e:worksheet name="People" value="#{excelTest.people}" var="person">
 		<e:column>
 			<f:facet name="header">
-				<e:cell value="Name" />
+				<e:cell value="First name" />
 			</f:facet>
 			<e:cell value="#{person.name}" forceType="text" />
 		</e:column>

Modified: trunk/examples/excel/view/home.xhtml
===================================================================
--- trunk/examples/excel/view/home.xhtml	2008-08-24 10:56:24 UTC (rev 8794)
+++ trunk/examples/excel/view/home.xhtml	2008-08-25 10:30:32 UTC (rev 8795)
@@ -25,7 +25,7 @@
 			</h:outputLink>
 			<br />
 
-			<h:outputLink value="jxl.seam">
+			<h:outputLink value="csv.seam">
 				<h:outputText>Export as comma separated file</h:outputText>
 			</h:outputLink>
 			<br />
@@ -41,11 +41,21 @@
 					<rich:dataTable value="#{excelTest.result}" var="person"
 						id="excelTable" columnClasses="left, right">
 						<rich:column>
-							<f:facet name="header">Name</f:facet>
-							<h:outputText value="#{person.name} #{person.lastName}"/>
+							<f:facet name="header">
+								<h:outputText value="First name"/>
+							</f:facet>
+							<h:outputText value="#{person.name}"/>
 						</rich:column>
 						<rich:column>
-							<f:facet name="header">Age</f:facet>
+							<f:facet name="header">
+								<h:outputText value="Last name"/>
+							</f:facet>
+							<h:outputText value="#{person.lastName}"/>
+						</rich:column>
+						<rich:column>
+							<f:facet name="header">
+								<h:outputText value="Age"/>
+							</f:facet>
 							<h:outputText value="#{person.age}"/>
 						</rich:column>
 					</rich:dataTable>

Modified: trunk/examples/excel/view/jxl.xhtml
===================================================================
--- trunk/examples/excel/view/jxl.xhtml	2008-08-24 10:56:24 UTC (rev 8794)
+++ trunk/examples/excel/view/jxl.xhtml	2008-08-25 10:30:32 UTC (rev 8795)
@@ -12,7 +12,7 @@
 	<e:worksheet name="People" value="#{excelTest.people}" var="person">
 		<e:column>
 			<f:facet name="header">
-				<e:cell value="Name" />
+				<e:cell value="First name" />
 			</f:facet>
 			<e:cell value="#{person.name}" forceType="text" />
 		</e:column>




More information about the seam-commits mailing list