You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/04/19 11:39:57 UTC
svn commit: r935495 - in /myfaces/tobago/branches/tobago-1.0.x/example: ./
data/ data/src/main/java/org/apache/myfaces/tobago/example/data/ test/
test/src/main/java/org/apache/myfaces/tobago/example/test/
test/src/main/webapp/WEB-INF/ test/src/main/web...
Author: lofwyr
Date: Mon Apr 19 09:39:57 2010
New Revision: 935495
URL: http://svn.apache.org/viewvc?rev=935495&view=rev
Log:
Example: large sheet
Added:
myfaces/tobago/branches/tobago-1.0.x/example/data/
- copied from r931054, myfaces/tobago/trunk/example/data/
myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SheetController.java
- copied unchanged from r931054, myfaces/tobago/trunk/example/test/src/main/java/org/apache/myfaces/tobago/example/test/SheetController.java
myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/
myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml
Modified:
myfaces/tobago/branches/tobago-1.0.x/example/data/pom.xml
myfaces/tobago/branches/tobago-1.0.x/example/data/src/main/java/org/apache/myfaces/tobago/example/data/LocaleEntry.java
myfaces/tobago/branches/tobago-1.0.x/example/pom.xml
myfaces/tobago/branches/tobago-1.0.x/example/test/pom.xml
myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/WEB-INF/faces-config.xml
Modified: myfaces/tobago/branches/tobago-1.0.x/example/data/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/data/pom.xml?rev=935495&r1=931054&r2=935495&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/data/pom.xml (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/data/pom.xml Mon Apr 19 09:39:57 2010
@@ -20,16 +20,23 @@
<parent>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago-example</artifactId>
- <version>1.5.0-alpha-2-SNAPSHOT</version>
+ <version>1.0.26-SNAPSHOT</version>
</parent>
<artifactId>tobago-example-data</artifactId>
<packaging>jar</packaging>
<name>Data for Examples</name>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/data</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/data</developerConnection>
- <url>http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/data</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/tobago/branches/tobago-1.0.x/example/data</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/tobago/branches/tobago-1.0.x/example/data</developerConnection>
+ <url>http://svn.apache.org/viewcvs.cgi/myfaces/tobago/branches/tobago-1.0.x/example/data</url>
</scm>
+
+ <dependencies>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ </dependency>
+ </dependencies>
</project>
Modified: myfaces/tobago/branches/tobago-1.0.x/example/data/src/main/java/org/apache/myfaces/tobago/example/data/LocaleEntry.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/data/src/main/java/org/apache/myfaces/tobago/example/data/LocaleEntry.java?rev=935495&r1=931054&r2=935495&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/data/src/main/java/org/apache/myfaces/tobago/example/data/LocaleEntry.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/data/src/main/java/org/apache/myfaces/tobago/example/data/LocaleEntry.java Mon Apr 19 09:39:57 2010
@@ -17,6 +17,8 @@ package org.apache.myfaces.tobago.exampl
* limitations under the License.
*/
+import org.apache.commons.lang.StringUtils;
+
import java.util.Locale;
public class LocaleEntry {
@@ -33,6 +35,10 @@ public class LocaleEntry {
language = locale.getDisplayLanguage(displayLocale);
}
+ public boolean isDisabled() {
+ return StringUtils.isBlank(country);
+ }
+
public Locale getLocale() {
return locale;
}
Modified: myfaces/tobago/branches/tobago-1.0.x/example/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/pom.xml?rev=935495&r1=935494&r2=935495&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/pom.xml (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/pom.xml Mon Apr 19 09:39:57 2010
@@ -80,6 +80,7 @@
<modules>
<module>addressbook</module>
<module>blank</module>
+ <module>data</module>
<module>demo</module>
<module>nonfacesrequest</module>
<module>experimental</module>
@@ -91,6 +92,7 @@
<modules>
<module>addressbook</module>
<module>blank</module>
+ <module>data</module>
<module>demo</module>
<module>nonfacesrequest</module>
<module>portlet</module>
Modified: myfaces/tobago/branches/tobago-1.0.x/example/test/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/test/pom.xml?rev=935495&r1=935494&r2=935495&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/test/pom.xml (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/test/pom.xml Mon Apr 19 09:39:57 2010
@@ -109,6 +109,11 @@
</scm>
<dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.tobago</groupId>
+ <artifactId>tobago-example-data</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<!--dependency>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago-theme-example</artifactId>
Modified: myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/WEB-INF/faces-config.xml?rev=935495&r1=935494&r2=935495&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/WEB-INF/faces-config.xml Mon Apr 19 09:39:57 2010
@@ -35,6 +35,12 @@
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>sheet</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.tobago.example.test.SheetController</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
<lifecycle>
<phase-listener>
org.apache.myfaces.tobago.example.test.DebugModePhaseListener
Added: myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml?rev=935495&view=auto
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml (added)
+++ myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/sheet/sheet-large.xhtml Mon Apr 19 09:39:57 2010
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<f:view
+ xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:tcs="http://myfaces.apache.org/tobago/sandbox"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <tc:page width="600px" height="600px">
+
+<!--
+ <tcs:simpleSheet value="#{sheet.localeList}" id="sheet" columns="fixed;*;*;*;*" var="entry" rows="1000"
+-->
+ <tc:sheet value="#{sheet.localeList}" id="sheet" columns="fixed;*;*;*;*" var="entry" rows="1000"
+ showRowRange="left" showPageRange="right" showDirectLinks="center">
+ <tc:columnSelector disabled="#{entry.disabled}"/>
+ <tc:column label="Locale" id="l" sortable="true">
+ <tc:out value="#{entry.locale}"/>
+ </tc:column>
+ <tc:column label="Display Locale" id="d" sortable="true">
+ <tc:out value="#{entry.displayLocale}"/>
+ </tc:column>
+ <tc:column label="Country" id="c" sortable="true">
+ <tc:out value="#{entry.country}"/>
+ </tc:column>
+ <tc:column label="Language" id="a" sortable="true">
+ <tc:out value="#{entry.language}"/>
+ </tc:column>
+ </tc:sheet>
+<!--
+ </tcs:simpleSheet>
+-->
+
+ <tc:script file="script/test-utils.js"/>
+ <!--todo-->
+ <!--<tc:script onload="checkLayout('page:todo', 0, 0, 600, 14);"/>-->
+
+ </tc:page>
+</f:view>