[seam-commits] Seam SVN: r8560 - in trunk/examples/excel/view: css and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Sun Aug 3 18:08:35 EDT 2008
Author: danielc.roth
Date: 2008-08-03 18:08:34 -0400 (Sun, 03 Aug 2008)
New Revision: 8560
Added:
trunk/examples/excel/view/css/
trunk/examples/excel/view/css/screen.css
trunk/examples/excel/view/home.xhtml
Modified:
trunk/examples/excel/view/index.html
Log:
Added Excel Export "export by command button"-example.
Added: trunk/examples/excel/view/css/screen.css
===================================================================
--- trunk/examples/excel/view/css/screen.css (rev 0)
+++ trunk/examples/excel/view/css/screen.css 2008-08-03 22:08:34 UTC (rev 8560)
@@ -0,0 +1,22 @@
+body,div,dd,dt,dl,img,ul,ol,li,p,h1,h2,h3,h4,h5,form,hr,fieldset,span {
+ margin: 0;
+ padding: 0;
+ font-face: Verdana, Arial;
+}
+
+html {
+ height: 100%;
+ background-color: #FFFFFF;
+}
+
+span.header {
+ font-size: 22px;
+}
+
+td.left {
+ text-align: left;
+}
+
+td.right {
+ text-align: right;
+}
\ No newline at end of file
Copied: trunk/examples/excel/view/home.xhtml (from rev 8555, trunk/examples/excel/view/index.html)
===================================================================
--- trunk/examples/excel/view/home.xhtml (rev 0)
+++ trunk/examples/excel/view/home.xhtml 2008-08-03 22:08:34 UTC (rev 8560)
@@ -0,0 +1,50 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:e="http://jboss.com/products/seam/excel"
+ xmlns:s="http://jboss.com/products/seam/taglib">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<title>Microsoft® Excel® Export examples</title>
+<link href="css/screen.css" rel="stylesheet" type="text/css" />
+</head>
+<body id="excelHome">
+<f:view>
+
+ <h:outputText value="Microsoft® Excel® Export examples"
+ style="header"></h:outputText>
+ <br />
+ <br />
+
+ <h:outputLink value="jxl.seam">
+ <h:outputText>Export as Excel® spreadsheet</h:outputText>
+ </h:outputLink>
+ <br />
+
+ <h:outputLink value="jxl.seam">
+ <h:outputText>Export as comma separated file</h:outputText>
+ </h:outputLink>
+ <br />
+ <br />
+
+ <h:form id="excelExport">
+ <h:dataTable value="#{excelTest.people}" var="person" id="excelTable"
+ columnClasses="left, right">
+ <h:column>
+ <f:facet name="header">Name</f:facet>
+ <h:outputText value="#{person.name} #{person.lastName}"></h:outputText>
+ </h:column>
+ <h:column>
+ <f:facet name="header">Age</f:facet>
+ <h:outputText value="#{person.age}"></h:outputText>
+ </h:column>
+ </h:dataTable>
+ <h:commandLink value="Export table"
+ action="#{org.jboss.seam.excel.excelExporter.export('excelExport:excelTable')}" />
+ </h:form>
+
+</f:view>
+</body>
+</html>
\ No newline at end of file
Modified: trunk/examples/excel/view/index.html
===================================================================
--- trunk/examples/excel/view/index.html 2008-08-03 21:22:02 UTC (rev 8559)
+++ trunk/examples/excel/view/index.html 2008-08-03 22:08:34 UTC (rev 8560)
@@ -1,16 +1,5 @@
-<html>
-<head>
-<title>Excel example</title>
-</head>
-<body>
-<a href="jxl.seam">Export to excel</a>
-<br />
-
-<a href="csv.seam">Export to csv</a>
-<br />
-
-Here wil be some more examples. Soon.
-<br />
-
-</body>
+<html>
+<head>
+ <meta http-equiv="Refresh" content="0; URL=home.seam">
+</head>
</html>
\ No newline at end of file
More information about the seam-commits
mailing list