Author: abelevich
Date: 2010-03-09 10:11:26 -0500 (Tue, 09 Mar 2010)
New Revision: 16540
Modified:
root/examples-sandbox/trunk/components/tables/pom.xml
root/examples-sandbox/trunk/components/tables/src/main/java/org/richfaces/demo/utils/EmployeeUtils.java
root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml
Log:
add daatscroller component
Modified: root/examples-sandbox/trunk/components/tables/pom.xml
===================================================================
--- root/examples-sandbox/trunk/components/tables/pom.xml 2010-03-09 14:24:55 UTC (rev
16539)
+++ root/examples-sandbox/trunk/components/tables/pom.xml 2010-03-09 15:11:26 UTC (rev
16540)
@@ -49,16 +49,25 @@
<groupId>org.richfaces.sandbox.ui.components</groupId>
<artifactId>${example.componentName}-ui</artifactId>
</dependency>
- <dependency>
- <groupId>org.richfaces.sandbox.ui.components</groupId>
- <artifactId>${example.componentName}-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.sandbox.ui.components</groupId>
- <artifactId>${example.componentName}-impl</artifactId>
- </dependency>
-
- <dependency>
+ <dependency>
+ <groupId>org.richfaces.sandbox.ui.components</groupId>
+ <artifactId>${example.componentName}-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.sandbox.ui.components</groupId>
+ <artifactId>${example.componentName}-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.sandbox.ui.components</groupId>
+ <artifactId>datascroller-api</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.sandbox.ui.components</groupId>
+ <artifactId>datascroller-ui</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
<groupId>org.jboss.cache</groupId>
<artifactId>jbosscache-core</artifactId>
<version>3.1.0.GA</version>
Modified:
root/examples-sandbox/trunk/components/tables/src/main/java/org/richfaces/demo/utils/EmployeeUtils.java
===================================================================
---
root/examples-sandbox/trunk/components/tables/src/main/java/org/richfaces/demo/utils/EmployeeUtils.java 2010-03-09
14:24:55 UTC (rev 16539)
+++
root/examples-sandbox/trunk/components/tables/src/main/java/org/richfaces/demo/utils/EmployeeUtils.java 2010-03-09
15:11:26 UTC (rev 16540)
@@ -18,7 +18,7 @@
addEmployeeToCollection(employeeList, "2Hideo Kodzima", "Vice
Prezident", "khideo(a)konami.jp", "AMicrosoft",
"419-615-2730", "Tokyo, Japan");
addEmployeeToCollection(employeeList, "3Stan Carpenter", "Lead
Designer", "scarpenter(a)ndogs.com", "AMicrosoft",
"714-647-3380", "Tokyo, Japan");
addEmployeeToCollection(employeeList, "Clement Gaudet", "Chief
Technology Officer", "cgaudet(a)rstar.com", "Rock Star",
"403-444-1100", "Canada");
- /*addEmployeeToCollection(employeeList, "Kazunori Yamauchi",
"CEO", "ykazunori(a)sony.jp", "Sony",
"410-561-4400", "Tokyo, Japan");
+ addEmployeeToCollection(employeeList, "Kazunori Yamauchi",
"CEO", "ykazunori(a)sony.jp", "Sony",
"410-561-4400", "Tokyo, Japan");
addEmployeeToCollection(employeeList, "Willis Aberg", "VP and
CIO", "waberg(a)evjscet.com", "Evj Scet",
"+046-155248000", "Tacoma, WA United States");
addEmployeeToCollection(employeeList, "Nick Acree", "Computer
Technician", "nacree(a)grifcity.com", "City Of Griffin",
"781-229-9599", "Houston, TX United States");
addEmployeeToCollection(employeeList, "RIchard L. Adams",
"Technology", "rladams(a)penergy.com", "Panhandle Energy",
"713-789-1400", "Valencia, CA United States");
@@ -1345,7 +1345,7 @@
addEmployeeToCollection(employeeList, "Derrik Khoo Sin Huat",
"CTO", "aksinhuat(a)aes.com", "The AES Corporation",
"864-233-4064", "Sydney, Australia");
addEmployeeToCollection(employeeList, "Rick Kelsven", "Network
Analyst", "rkelsven(a)rudny.com", "Rudny's Inc",
"208-356-4991", "Bangkok, Thailand");
- */
+
return employeeList;
}
Modified: root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml
===================================================================
--- root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml 2010-03-09
14:24:55 UTC (rev 16539)
+++ root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml 2010-03-09
15:11:26 UTC (rev 16540)
@@ -3,7 +3,9 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:rich="http://richfaces.org/rich">
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:ds="http://richfaces.org/datascroller"
+ >
<f:view contentType="text/html"/>
<h:head>
@@ -13,7 +15,7 @@
<h:body>
<h:form id="form1">
- <rich:dataTable var="record" value="#{dataBean.employeeList}"
rows="20" sortMode="single">
+ <rich:dataTable id="richTable" var="record"
value="#{dataBean.employeeList}" rows="20"
sortMode="single">
<f:facet name="caption">
<h:outputText id="captioFacet1" value="Caption Facet" />
</f:facet>
@@ -77,6 +79,9 @@
</f:facet>
</rich:dataTable>
+
+ <ds:dataScroller id="ds" for="richTable"
maxPages="7"></ds:dataScroller>
+ <br/>
<h:commandButton value="submit" />
</h:form>
</h:body>