[repository:8] DisplayTagEnhancedDemo.
- From: survivant00@kenai.com
- To: commits@sebastiendionne.kenai.com
- Subject: [repository:8] DisplayTagEnhancedDemo.
- Date: Sun, 3 May 2009 23:32:38 +0000 (GMT)
Repository: repository
Revision: 8
Author: survivant00@gmail.com
Date: 2009-05-03 23:22:45 UTC
Link:
http://kenai.com/projects/sebastiendionne/sources/repository/revision/8
Log Message:
-----------
DisplayTagEnhancedDemo. Add new features to DisplayTag. Custom
TableHeader, keep sorted column, i18n export label
Added Paths:
-----------
web-related/DisplayTagEnhancedDemo/.classpath
web-related/DisplayTagEnhancedDemo/.project
web-related/DisplayTagEnhancedDemo/.settings/.jsdtscope
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.jdt.core.prefs
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.jst.common.pro
ject.facet.core.prefs
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.common.com
ponent
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.common.pro
ject.facet.core.xml
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.jsdt.ui.su
perType.container
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.jsdt.ui.su
perType.name
web-related/DisplayTagEnhancedDemo/WebContent/META-INF/MANIFEST.MF
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/conf/struts-confi
g.xml
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-beanu
tils_1.7.0.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-colle
ctions-3.1.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-diges
ter-1.7.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-io-1.
2.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-lang-
2.1.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-loggi
ng_1.2.8.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/displaytag-1.
3-SNAPSHOT-jdk4-sources.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/displaytag-1.
3-SNAPSHOT-jdk4.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/struts-1.2.9.
jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/struts-el-1.2
.9.jar
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/web.xml
web-related/DisplayTagEnhancedDemo/WebContent/css/displaytag.css
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_down.png
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_off.png
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_up.png
web-related/DisplayTagEnhancedDemo/WebContent/img/displaytag.png
web-related/DisplayTagEnhancedDemo/WebContent/img/favicon.ico
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_csv.png
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_excel.png
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_pdf.png
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_rtf.png
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_xml.png
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione.png
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione_ahead.png
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione_back.png
web-related/DisplayTagEnhancedDemo/WebContent/img/valid-xhtml10.png
web-related/DisplayTagEnhancedDemo/WebContent/img/viewsource.png
web-related/DisplayTagEnhancedDemo/WebContent/index.jsp
web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/Ap
plicationResources_en.properties
web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/Ap
plicationResources_fr.properties
web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/Pe
rson.java
Diffs:
-----
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.classpath
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-related/DisplayTagEnhancedDemo/.classpath Sun May 03
19:22:45 2009 -0400
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.
debug.ui.launcher.StandardVMType/jdk"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomc
at.runtimeTarget/Apache Tomcat v6.0"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="output"
path="WebContent/WEB-INF/classes"/>
+</classpath>
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.project
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-related/DisplayTagEnhancedDemo/.project Sun May 03
19:22:45 2009 -0400
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>DisplayTagEnhancedDemo</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+
<name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ </natures>
+</projectDescription>
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.settings/.jsdtscope
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-related/DisplayTagEnhancedDemo/.settings/.jsdtscope Sun May
03 19:22:45 2009 -0400
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.jdt.core.prefs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.jdt.core.pre
fs Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,7 @@
+#Tue Apr 28 09:17:11 EDT 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.jst.common.pro
ject.facet.core.prefs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.jst.common.p
roject.facet.core.prefs Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,4 @@
+#Tue Apr 28 09:17:13 EDT 2009
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\:org.eclips
e.jdt.internal.debug.ui.launcher.StandardVMType\:\:jdk/owners=jst.java\
:6.0
+classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.
jst.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\
v6.0/owners=jst.web\:2.5
+eclipse.preferences.version=1
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.common.com
ponent
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.common.c
omponent Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="DisplayTagDemo">
+ <wb-resource deploy-path="/" source-path="/WebContent"/>
+ <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+ <property name="context-root" value="DisplayTagDemo"/>
+ <property name="java-output-path"/>
+ </wb-module>
+</project-modules>
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.common.pro
ject.facet.core.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.common.p
roject.facet.core.xml Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="jst.java"/>
+ <installed facet="jst.java" version="6.0"/>
+ <installed facet="jst.web" version="2.5"/>
+ <installed facet="wst.jsdt.web" version="1.0"/>
+</faceted-project>
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.jsdt.ui.su
perType.container
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.jsdt.ui.
superType.container Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.jsdt.ui.su
perType.name
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/.settings/org.eclipse.wst.jsdt.ui.
superType.name Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,1 @@
+Window
\ No newline at end of file
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/META-INF/MANIFEST.MF
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/WebContent/META-INF/MANIFEST.MF
Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/conf/struts-confi
g.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/conf/struts-con
fig.xml Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE struts-config PUBLIC
+ "-//Apache Software Foundation//DTD Struts Configuration
1.2//EN"
+
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
+
+<struts-config>
+ <form-beans></form-beans>
+
+ <global-forwards></global-forwards>
+
+ <action-mappings>
+
+ <action path="/language" forward="/index.jsp" />
+
+ </action-mappings>
+
+ <message-resources
parameter="ca.sebastiendionne.displaytag.ApplicationResources" />
+
+</struts-config>
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-beanu
tils_1.7.0.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-beanu
tils_1.7.0.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-colle
ctions-3.1.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-colle
ctions-3.1.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-diges
ter-1.7.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-diges
ter-1.7.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-io-1.
2.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-io-1.
2.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-lang-
2.1.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-lang-
2.1.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-loggi
ng_1.2.8.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/commons-loggi
ng_1.2.8.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/displaytag-1.
3-SNAPSHOT-jdk4-sources.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/displaytag-1.
3-SNAPSHOT-jdk4-sources.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/displaytag-1.
3-SNAPSHOT-jdk4.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/displaytag-1.
3-SNAPSHOT-jdk4.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/struts-1.2.9.
jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/struts-1.2.9.
jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/struts-el-1.2
.9.jar
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/lib/struts-el-1.2
.9.jar has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/web.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-related/DisplayTagEnhancedDemo/WebContent/WEB-INF/web.xml
Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
+ <display-name>DisplayTagDemo</display-name>
+
+
+ <filter>
+ <filter-name>ResponseOverrideFilter</filter-name>
+
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-clas
s>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>ResponseOverrideFilter</filter-name>
+ <url-pattern>*.do</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>ResponseOverrideFilter</filter-name>
+ <url-pattern>*.jsp</url-pattern>
+ </filter-mapping>
+
+ <servlet>
+ <servlet-name>action</servlet-name>
+
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
+ <init-param>
+ <param-name>config</param-name>
+
<param-value>/WEB-INF/conf/struts-config.xml</param-value>
+ </init-param>
+ <load-on-startup>2</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>action</servlet-name>
+ <url-pattern>*.do</url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
\ No newline at end of file
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/css/displaytag.css
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-related/DisplayTagEnhancedDemo/WebContent/css/displaytag.css
Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,151 @@
+h4,h5,h6,p,strong,div,form,acronym,label,table,td,th,span,a,hr,code,pr
e,hr
+ {
+ margin: 0;
+ padding: 0;
+ font-size: 1em;
+ background-repeat: no-repeat;
+ list-style-type: none;
+}
+
+table {
+ border: 1px solid #666;
+ width: 80%;
+ margin: 20px 0 20px 0 !important;
+}
+
+th,td {
+ padding: 2px 4px 2px 4px !important;
+ text-align: left;
+ vertical-align: top;
+}
+
+thead tr {
+ background-color: #fc0;
+}
+
+th.sorted {
+ background-color: orange;
+}
+
+th a,th a:visited {
+ color: black;
+}
+
+th a:hover {
+ text-decoration: underline;
+ color: black;
+}
+
+th.sorted a,th.sortable a {
+ background-position: right;
+ display: block;
+ width: 100%;
+}
+
+th.sortable a {
+ background-image: url(../img/arrow_off.png);
+}
+
+th.order1 a {
+ background-image: url(../img/arrow_down.png);
+}
+
+th.order2 a {
+ background-image: url(../img/arrow_up.png);
+}
+
+tr.odd {
+ background-color: #fff
+}
+
+tr.tableRowEven,tr.even {
+ background-color: #fea
+}
+
+div.exportlinks {
+ background-color: #eee;
+ border: 1px dotted #999;
+ padding: 2px 4px 2px 4px;
+ margin: 2px 0 10px 0;
+ width: 79%;
+}
+
+span.export {
+ padding: 0 4px 1px 20px;
+ display: inline;
+ display: inline-block;
+ cursor: pointer;
+}
+
+span.excel {
+ background-image: url(../img/ico_file_excel.png);
+}
+
+span.csv {
+ background-image: url(../img/ico_file_csv.png);
+}
+
+span.xml {
+ background-image: url(../img/ico_file_xml.png);
+}
+
+span.pdf {
+ background-image: url(../img/ico_file_pdf.png);
+}
+
+span.rtf {
+ background-image: url(../img/ico_file_rtf.png);
+}
+
+span.pagebanner {
+ background-color: #eee;
+ border: 1px dotted #999;
+ padding: 2px 4px 2px 4px;
+ width: 79%;
+ margin-top: 10px;
+ display: block;
+ border-bottom: none;
+}
+
+span.pagelinks {
+ background-color: #eee;
+ border: 1px dotted #999;
+ padding: 2px 4px 2px 4px;
+ width: 79%;
+ display: block;
+ border-top: none;
+ margin-bottom: -5px;
+}
+
+
+.group-1 {
+ font-weight:bold;
+ padding-bottom:10px;
+ border-top:1px solid black;
+}
+.group-2 {
+ font-style:italic;
+ border-top: 1px solid black;
+
+}
+.subtotal-sum, .grandtotal-sum {
+ font-weight:bold;
+ text-align:right;
+}
+.subtotal-header {
+ padding-bottom: 0px;
+ border-top: 1px solid white;
+}
+.subtotal-label, .grandtotal-label {
+ border-top: 1px solid white;
+ font-weight: bold;
+}
+.grouped-table tr.even {
+ background-color: #fff;
+}
+.grouped-table tr.odd {
+ background-color: #fff;
+}
+.grandtotal-row {
+ border-top: 2px solid black;
+}
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_down.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_down.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_off.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_off.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_up.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/arrow_up.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/displaytag.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/displaytag.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/favicon.ico
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/favicon.ico has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_csv.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_csv.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_excel.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_excel.png
has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_pdf.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_pdf.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_rtf.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_rtf.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_xml.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/ico_file_xml.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione_ahead.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione_ahead.png
has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione_back.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/paginazione_back.png
has changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/valid-xhtml10.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/valid-xhtml10.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/img/viewsource.png
Binary file
web-related/DisplayTagEnhancedDemo/WebContent/img/viewsource.png has
changed
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/WebContent/index.jsp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-related/DisplayTagEnhancedDemo/WebContent/index.jsp Sun May
03 19:22:45 2009 -0400
@@ -0,0 +1,66 @@
+<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
+
+ <jsp:directive.page contentType="text/html; charset=UTF-8" />
+ <jsp:directive.page import="ca.sebastiendionne.displaytag.*" />
+ <jsp:directive.page import="java.util.List" />
+ <jsp:directive.page import="java.util.ArrayList" />
+
+ <jsp:scriptlet>
+ <![CDATA[
+ if (request.getSession().getAttribute("testform")==null){
+
+ List<Person> list = new ArrayList<Person>();
+
+ for(int i=0;i<8;i++){
+ list.add(new Person("name" + i, "lastname" + i,
i));
+ }
+
+ request.getSession().setAttribute("personList", list );
+
+ request.getSession().setAttribute("tableKeepStatus",
Boolean.TRUE );
+ }
+
+
+ ]]>
+ </jsp:scriptlet>
+
+
+<html>
+ <head>
+ <link rel="stylesheet" href="./css/displaytag.css"
type="text/css"/>
+ </head>
+ <body>
+
+ <div align="center">
+
+ <a href="index.jsp">Click here and see that the
second table doesn't keep the sort order</a>
+ <display:table name="sessionScope.personList"
export="true" uid="uid" keepStatusProperty="tableKeepStatus"
style="width:500px;">
+ <display:setProperty
name="export.excel.filename" value="searchResults.xls"/>
+ <display:setProperty
name="export.csv.filename" value="searchResults.csv"/>
+
+ <display:tableHeaderTop media="html">
+ <tr>
+ <td colspan="3"
style="">This is pure HTML. Useful when you want some rows that won't
be sorted or when you want some custom headers</td>
+ </tr>
+ <tr>
+ <td
style="background-color:blue"> </td>
+ <td
style="background-color:blue"><input type="checkbox" /></td>
+ <td
style="background-color:blue"> </td>
+ </tr>
+ </display:tableHeaderTop>
+
+ <display:column sortable="true"
property="name" headerClass="sortable"/>
+ <display:column sortable="true"
property="lastname" headerClass="sortable"/>
+ <display:column sortable="true"
property="age" headerClass="sortable"/>
+ </display:table>
+ <br />
+ <display:table name="sessionScope.personList"
export="true" uid="uid2" style="width:500px;">
+ <display:setProperty
name="export.excel.filename" value="searchResults.xls"/>
+ <display:setProperty
name="export.csv.filename" value="searchResults.csv"/>
+ <display:column sortable="true"
property="name" headerClass="sortable"/>
+ <display:column sortable="true"
property="lastname" headerClass="sortable"/>
+ <display:column sortable="true"
property="age" headerClass="sortable"/>
+ </display:table>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/Ap
plicationResources_en.properties
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/
ApplicationResources_en.properties Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,1 @@
+export.links.label=<div class="exportlinks">Export displayed rows :
{0}</div>
\ No newline at end of file
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/Ap
plicationResources_fr.properties
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/
ApplicationResources_fr.properties Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,1 @@
+export.links.label=<div class="exportlinks">Exporter : {0}</div>
\ No newline at end of file
diff -r 9c4d05a8d1cb -r 1aaf8d675bc8
web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/Pe
rson.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++
b/web-related/DisplayTagEnhancedDemo/src/ca/sebastiendionne/displaytag/
Person.java Sun May 03 19:22:45 2009 -0400
@@ -0,0 +1,35 @@
+package ca.sebastiendionne.displaytag;
+
+public class Person {
+
+ public String name;
+ public String lastname;
+ public int age;
+
+ public Person(String name, String lastname, int age){
+ this.name = name;
+ this.lastname = lastname;
+ this.age = age;
+ }
+
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public String getLastname() {
+ return lastname;
+ }
+ public void setLastname(String lastname) {
+ this.lastname = lastname;
+ }
+ public int getAge() {
+ return age;
+ }
+ public void setAge(int age) {
+ this.age = age;
+ }
+
+
+}
|
[repository:8] DisplayTagEnhancedDemo. |
survivant00 | 05/03/2009 |





