JBoss Rich Faces SVN: r20034 - in modules/tests/metamer/trunk: ftest and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-11-11 03:31:27 -0500 (Thu, 11 Nov 2010)
New Revision: 20034
Modified:
modules/tests/metamer/trunk/ftest/pom.xml
modules/tests/metamer/trunk/pom.xml
Log:
versions reverted back to 4.0.0-SNAPSHOT
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2010-11-11 08:25:06 UTC (rev 20033)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2010-11-11 08:31:27 UTC (rev 20034)
@@ -80,8 +80,8 @@
<properties>
<context.path>/metamer/</context.path>
<deployable.classifier>mojarra</deployable.classifier>
- <deployable.version>4.0.0.20101110-M4</deployable.version>
- <ftest.source.version>4.0.0.20101110-M4</ftest.source.version>
+ <deployable.version>4.0.0-SNAPSHOT</deployable.version>
+ <ftest.source.version>4.0.0-SNAPSHOT</ftest.source.version>
<testng.suite.xml>src/test/resources/testng.xml</testng.suite.xml>
<container.home>target/installs/${container.dir.deflatted}/${container.dir.unflatted}</container.home>
</properties>
Modified: modules/tests/metamer/trunk/pom.xml
===================================================================
--- modules/tests/metamer/trunk/pom.xml 2010-11-11 08:25:06 UTC (rev 20033)
+++ modules/tests/metamer/trunk/pom.xml 2010-11-11 08:31:27 UTC (rev 20034)
@@ -26,7 +26,7 @@
<parent>
<groupId>org.richfaces.examples</groupId>
<artifactId>richfaces-example-parent</artifactId>
- <version>4.0.0.20101110-M4</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.richfaces.tests</groupId>
@@ -124,7 +124,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<richfaces.checkstyle.version>2</richfaces.checkstyle.version>
- <version.richfaces>4.0.0.20101110-M4</version.richfaces>
+ <version.richfaces>4.0.0-SNAPSHOT</version.richfaces>
</properties>
<dependencyManagement>
14 years, 2 months
JBoss Rich Faces SVN: r20033 - in modules/tests/metamer/trunk: application and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-11-11 03:25:06 -0500 (Thu, 11 Nov 2010)
New Revision: 20033
Modified:
modules/tests/metamer/trunk/application/pom.xml
modules/tests/metamer/trunk/ftest-source/pom.xml
modules/tests/metamer/trunk/ftest/pom.xml
modules/tests/metamer/trunk/pom.xml
Log:
[maven-release-plugin] prepare for next development iteration
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2010-11-11 08:24:53 UTC (rev 20032)
+++ modules/tests/metamer/trunk/application/pom.xml 2010-11-11 08:25:06 UTC (rev 20033)
@@ -19,7 +19,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20101110-M4</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2010-11-11 08:24:53 UTC (rev 20032)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2010-11-11 08:25:06 UTC (rev 20033)
@@ -30,14 +30,14 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-ftest</artifactId>
- <version>4.0.0.20101110-M4</version>
+ <version>4.0.0-SNAPSHOT</version>
<name>Metamer: RichFaces Testing Application - Functional Test</name>
<packaging>pom</packaging>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
- <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/tags/meta...</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/tr...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk...</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/trunk/ftest</url>
</scm>
<licenses>
Modified: modules/tests/metamer/trunk/ftest-source/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest-source/pom.xml 2010-11-11 08:24:53 UTC (rev 20032)
+++ modules/tests/metamer/trunk/ftest-source/pom.xml 2010-11-11 08:25:06 UTC (rev 20033)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20101110-M4</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/pom.xml
===================================================================
--- modules/tests/metamer/trunk/pom.xml 2010-11-11 08:24:53 UTC (rev 20032)
+++ modules/tests/metamer/trunk/pom.xml 2010-11-11 08:25:06 UTC (rev 20033)
@@ -31,7 +31,7 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20101110-M4</version>
+ <version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Metamer: RichFaces Testing Application - Project Root</name>
@@ -50,9 +50,9 @@
</licenses>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
- <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/tags/meta...</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/trunk</url>
</scm>
<distributionManagement>
14 years, 2 months
JBoss Rich Faces SVN: r20032 - modules/tests/metamer/tags.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-11-11 03:24:53 -0500 (Thu, 11 Nov 2010)
New Revision: 20032
Added:
modules/tests/metamer/tags/metamer-4.0.0.20101110-M4/
Log:
[maven-scm] copy for tag metamer-4.0.0.20101110-M4
Copied: modules/tests/metamer/tags/metamer-4.0.0.20101110-M4 (from rev 20031, modules/tests/metamer/trunk)
14 years, 2 months
JBoss Rich Faces SVN: r20031 - in modules/tests/metamer/trunk: application and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-11-11 03:24:31 -0500 (Thu, 11 Nov 2010)
New Revision: 20031
Modified:
modules/tests/metamer/trunk/application/pom.xml
modules/tests/metamer/trunk/ftest-source/pom.xml
modules/tests/metamer/trunk/ftest/pom.xml
modules/tests/metamer/trunk/pom.xml
Log:
[maven-release-plugin] prepare release metamer-4.0.0.20101110-M4
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2010-11-11 07:48:32 UTC (rev 20030)
+++ modules/tests/metamer/trunk/application/pom.xml 2010-11-11 08:24:31 UTC (rev 20031)
@@ -19,7 +19,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20101110-M4</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2010-11-11 07:48:32 UTC (rev 20030)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2010-11-11 08:24:31 UTC (rev 20031)
@@ -30,14 +30,14 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-ftest</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20101110-M4</version>
<name>Metamer: RichFaces Testing Application - Functional Test</name>
<packaging>pom</packaging>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/tr...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk...</developerConnection>
- <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/trunk/ftest</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/tags/meta...</url>
</scm>
<licenses>
@@ -80,8 +80,8 @@
<properties>
<context.path>/metamer/</context.path>
<deployable.classifier>mojarra</deployable.classifier>
- <deployable.version>4.0.0-SNAPSHOT</deployable.version>
- <ftest.source.version>4.0.0-SNAPSHOT</ftest.source.version>
+ <deployable.version>4.0.0.20101110-M4</deployable.version>
+ <ftest.source.version>4.0.0.20101110-M4</ftest.source.version>
<testng.suite.xml>src/test/resources/testng.xml</testng.suite.xml>
<container.home>target/installs/${container.dir.deflatted}/${container.dir.unflatted}</container.home>
</properties>
Modified: modules/tests/metamer/trunk/ftest-source/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest-source/pom.xml 2010-11-11 07:48:32 UTC (rev 20030)
+++ modules/tests/metamer/trunk/ftest-source/pom.xml 2010-11-11 08:24:31 UTC (rev 20031)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20101110-M4</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/pom.xml
===================================================================
--- modules/tests/metamer/trunk/pom.xml 2010-11-11 07:48:32 UTC (rev 20030)
+++ modules/tests/metamer/trunk/pom.xml 2010-11-11 08:24:31 UTC (rev 20031)
@@ -26,12 +26,12 @@
<parent>
<groupId>org.richfaces.examples</groupId>
<artifactId>richfaces-example-parent</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20101110-M4</version>
</parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.0.20101110-M4</version>
<packaging>pom</packaging>
<name>Metamer: RichFaces Testing Application - Project Root</name>
@@ -50,9 +50,9 @@
</licenses>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</developerConnection>
- <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/trunk</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/metamer/tags/meta...</url>
</scm>
<distributionManagement>
@@ -124,7 +124,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<richfaces.checkstyle.version>2</richfaces.checkstyle.version>
- <version.richfaces>4.0.0-SNAPSHOT</version.richfaces>
+ <version.richfaces>4.0.0.20101110-M4</version.richfaces>
</properties>
<dependencyManagement>
14 years, 2 months
JBoss Rich Faces SVN: r20030 - in modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer: bean and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-11-11 02:48:32 -0500 (Thu, 11 Nov 2010)
New Revision: 20030
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Extensions.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/Model.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/CompactDisc.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Company.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Country.java
Log:
Made the model and Extensions class Serializable
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Extensions.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Extensions.java 2010-11-11 07:47:46 UTC (rev 20029)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Extensions.java 2010-11-11 07:48:32 UTC (rev 20030)
@@ -21,18 +21,22 @@
*******************************************************************************/
package org.richfaces.tests.metamer;
+import java.io.Serializable;
+
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Representation of CDK extension of a RichFaces component in faces-config.xml.
- *
+ *
* @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
* @version $Revision$
*/
@XmlRootElement(name = "property-extension", namespace = "http://java.sun.com/xml/ns/javaee")
-public class Extensions {
+public class Extensions implements Serializable {
+ private static final long serialVersionUID = 1L;
+
private boolean generate;
private boolean hidden;
private boolean literal;
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/Model.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/Model.java 2010-11-11 07:47:46 UTC (rev 20029)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/Model.java 2010-11-11 07:48:32 UTC (rev 20030)
@@ -22,6 +22,7 @@
package org.richfaces.tests.metamer.bean;
+import java.io.Serializable;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashSet;
@@ -51,8 +52,10 @@
*/
@ManagedBean
@ApplicationScoped
-public class Model {
+public class Model implements Serializable {
+ private static final long serialVersionUID = 1L;
+
private List<Capital> capitalsList;
private List<Employee> employeesList;
private Set<String> jobTitles;
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/CompactDisc.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/CompactDisc.java 2010-11-11 07:47:46 UTC (rev 20029)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/CompactDisc.java 2010-11-11 07:48:32 UTC (rev 20030)
@@ -1,10 +1,14 @@
package org.richfaces.tests.metamer.model.tree;
+import java.io.Serializable;
import java.util.Enumeration;
import javax.swing.tree.TreeNode;
-public class CompactDisc extends NamedNode implements TreeNode {
+public class CompactDisc extends NamedNode implements TreeNode, Serializable {
+
+ private static final long serialVersionUID = 1L;
+
private Company company;
private String artist;
private String title;
@@ -14,7 +18,7 @@
public CompactDisc() {
this.setType("cd");
}
-
+
public CompactDisc(String title, String artist, Company company, float price, int year) {
super();
this.setType("cd");
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Company.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Company.java 2010-11-11 07:47:46 UTC (rev 20029)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Company.java 2010-11-11 07:48:32 UTC (rev 20030)
@@ -1,5 +1,6 @@
package org.richfaces.tests.metamer.model.tree;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
@@ -8,12 +9,15 @@
import com.google.common.collect.Iterators;
-public class Company extends NamedNode implements TreeNode {
+public class Company extends NamedNode implements TreeNode, Serializable {
+
+ private static final long serialVersionUID = 1L;
+
private String name;
private List<CompactDisc> compactDiscs = new ArrayList<CompactDisc>();
-
+
private Country country;
-
+
public Company() {
this.setType("company");
}
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Country.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Country.java 2010-11-11 07:47:46 UTC (rev 20029)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Country.java 2010-11-11 07:48:32 UTC (rev 20030)
@@ -1,5 +1,6 @@
package org.richfaces.tests.metamer.model.tree;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
@@ -8,8 +9,10 @@
import com.google.common.collect.Iterators;
-public class Country extends NamedNode implements TreeNode {
+public class Country extends NamedNode implements TreeNode, Serializable {
+ private static final long serialVersionUID = 1L;
+
private String name;
private List<Company> companies = new ArrayList<Company>();
14 years, 2 months
JBoss Rich Faces SVN: r20029 - modules/tests/metamer/trunk/application.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-11-11 02:47:46 -0500 (Thu, 11 Nov 2010)
New Revision: 20029
Modified:
modules/tests/metamer/trunk/application/pom.xml
Log:
pom.xml - added jee-development maven profile (for Eclipse IDE)
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2010-11-11 07:47:26 UTC (rev 20028)
+++ modules/tests/metamer/trunk/application/pom.xml 2010-11-11 07:47:46 UTC (rev 20029)
@@ -478,6 +478,21 @@
</dependency>
</dependencies>
</profile>
+ <profile>
+ <id>jee-development</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
</project>
14 years, 2 months
JBoss Rich Faces SVN: r20028 - modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-11-11 02:47:26 -0500 (Thu, 11 Nov 2010)
New Revision: 20028
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichAutocompleteBean.java
Log:
RichAutocompleteBean - fix the procedure of retriving capitals by prefix (RF-9724)
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichAutocompleteBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichAutocompleteBean.java 2010-11-11 07:37:37 UTC (rev 20027)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichAutocompleteBean.java 2010-11-11 07:47:26 UTC (rev 20028)
@@ -107,7 +107,7 @@
}
}
} else {
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < capitals.size(); i++) {
result.add(capitals.get(i).getState());
}
}
14 years, 2 months
JBoss Rich Faces SVN: r20027 - modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-11-11 02:37:37 -0500 (Thu, 11 Nov 2010)
New Revision: 20027
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml
Log:
fixed the a4j:repeat matrix sample using Nick's suggestion (RF-9375)
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml 2010-11-11 07:15:57 UTC (rev 20026)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml 2010-11-11 07:37:37 UTC (rev 20027)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" >
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
<!--
JBoss, Home of Professional Open Source
@@ -53,19 +53,19 @@
styleClass="cell #{rowStatus.even ? 'row-even' : 'row-odd'} #{cellStatus.even ? 'cell-even' : 'cell-odd'}">
<h:inputText id="valueInput" value="#{cell.value}" size="3">
<f:convertNumber />
- <a4j:ajax render="form:outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax render="#{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:inputText>
<h:commandLink id="clearLink" action="#{cell.clearValueAction}" value="C">
- <a4j:ajax render="form:a4jRepeatRows:#{rowStatus.index}:a4jRepeatColumns:#{cellStatus.index}:valueInput form:outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
<h:outputText value=" / " />
<h:commandLink id="increaseLink" action="#{cell.increaseValueAction}" value="+">
- <a4j:ajax render="form:a4jRepeatRows:#{rowStatus.index}:a4jRepeatColumns:#{cellStatus.index}:valueInput form:outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
<h:outputText value=" / " />
<h:commandLink id="decreaseLink" action="#{cell.decreaseValueAction}" value="-">
- <a4j:ajax render="form:a4jRepeatRows:#{rowStatus.index}:a4jRepeatColumns:#{cellStatus.index}:valueInput form:outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
</h:panelGroup></td>
</a4j:repeat>
14 years, 2 months
JBoss Rich Faces SVN: r20026 - in modules/docs/trunk/Component_Reference/src/main/docbook/en-US: extras and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-11-11 02:15:57 -0500 (Thu, 11 Nov 2010)
New Revision: 20026
Added:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-Table_filtering-Basic_filtering.png
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-Table_filtering-External_filtering.png
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Tables_and_grids.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample
Log:
Added table filtering section
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml 2010-11-10 22:36:12 UTC (rev 20025)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml 2010-11-11 07:15:57 UTC (rev 20026)
@@ -6,6 +6,50 @@
<para>
This chapter details the basic components that respond to a user action and submit an Ajax request.
</para>
+
+ <section id="sect-Component_Reference-Actions-a4jajax">
+ <title><sgmltag><a4j:ajax></sgmltag></title>
+ <para>
+ The <sgmltag><a4j:ajax></sgmltag> component allows Ajax capability to be added to any non-Ajax component. It is placed as a direct child to the component that requires Ajax support. The <sgmltag><a4j:ajax></sgmltag> component uses the common attributes listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
+ </para>
+ <note>
+ <title>Attaching JavaScript functions</title>
+ <para>
+ When attaching the <sgmltag><a4j:ajax></sgmltag> component to non-Ajax JavaServer Faces command components, such as <sgmltag><h:commandButton></sgmltag> and <sgmltag><h:commandLink></sgmltag>, it is important to set <code>disabledDefault="true"</code>. If this attribute is not set, a non-Ajax request is sent after the Ajax request and the page is refreshed unexpectedly.
+ </para>
+ </note>
+ <example id="exam-Component_Reference-a4jajax-a4jajax_example">
+ <title><sgmltag><a4j:ajax></sgmltag> example</title>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+
+ <section id="sect-Component_Reference-a4jajax-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.Ajax</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxSupport</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.Ajax</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxSupportRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ </section>
+
<section id="sect-Component_Reference-Actions-a4jactionParam">
<title><sgmltag><a4j:actionParam></sgmltag></title>
<para>
@@ -544,49 +588,6 @@
</itemizedlist>
</section>
</section>
-
- <section id="sect-Component_Reference-Actions-a4jajax">
- <title><sgmltag><a4j:ajax></sgmltag></title>
- <para>
- The <sgmltag><a4j:ajax></sgmltag> component allows Ajax capability to be added to any non-Ajax component. It is placed as a direct child to the component that requires Ajax support. The <sgmltag><a4j:ajax></sgmltag> component uses the common attributes listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
- </para>
- <note>
- <title>Attaching JavaScript functions</title>
- <para>
- When attaching the <sgmltag><a4j:ajax></sgmltag> component to non-Ajax JavaServer Faces command components, such as <sgmltag><h:commandButton></sgmltag> and <sgmltag><h:commandLink></sgmltag>, it is important to set <code>disabledDefault="true"</code>. If this attribute is not set, a non-Ajax request is sent after the Ajax request and the page is refreshed unexpectedly.
- </para>
- </note>
- <example id="exam-Component_Reference-a4jajax-a4jajax_example">
- <title><sgmltag><a4j:ajax></sgmltag> example</title>
- <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
- </example>
-
- <section id="sect-Component_Reference-a4jajax-Reference_data">
- <title>Reference data</title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.Ajax</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxSupport</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.Ajax</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxSupportRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
- </section>
- </section>
</chapter>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Tables_and_grids.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Tables_and_grids.xml 2010-11-10 22:36:12 UTC (rev 20025)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Tables_and_grids.xml 2010-11-11 07:15:57 UTC (rev 20026)
@@ -1181,16 +1181,88 @@
<section id="sect-Component_Reference-Tables_and_grids-Table_filtering">
<title>Table filtering</title>
+ <!-- In development notification -->
+ <important>
+ <title>Documentation in development</title>
+ <para>
+ This section is currently under development. Any features it describes may not be available in the current release of RichFaces.
+ </para>
+ </important>
+
+ <!-- TODO: not in M4
<para>
- Under development.
+ Tables entries can be filtered by the user using either the basic method built in to the <sgmltag><rich:column></sgmltag> component, or by defining external filters. Refer to <xref linkend="sect-Component_Reference-Tables_and_grids-richcolumn" /> for details on using the <sgmltag><rich:column></sgmltag> component in tables.
</para>
+ <section id="sect-Component_Reference-Table_filtering-Basic_filtering">
+ <title>Basic filtering</title>
+ <para>
+ The built-in filtering abilities of the <sgmltag><rich:column></sgmltag> component allow the user to enter text as a filtering value. The table displays only those entries that begin with the filter value.
+ </para>
+ <para>
+ Set the <varname>filterValue</varname> attribute to point to the value used to filter the column. This can be either an initial filtering value on the page, or a value binding on the server. The <varname>filterValue</varname> value is then used with the JavaScript <function>startsWith()</function> method to filter the column entries based on the data specified with the <varname>filterBy</varname> attribute. Expressions in the <varname>filterBy</varname> attribute must refer to the variable declared in the table's <varname>var</varname> attribute, which is used to fill the contents of the table.
+ </para>
+ <para>
+ The filter is processed and the table is rendered when the <literal>onblur</literal> event occurs for the column. This can be changed by defining a different event with the <varname>filterEvent</varname> attribute. For example, to implement live updating such that the filter refreshes after every keystroke, set <code>filterEvent="onkeyup"</code>.
+ </para>
+ <example id="exam-Component_Reference-Table_filtering-Basic_filtering">
+ <title>Basic filtering</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <para>
+ The example uses the basic filtering method on both columns in the table.
+ </para>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-Table_filtering-Basic_filtering.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A table of state capitals filtered by states beginning with the letter "<wordasword>n</wordasword>".
+ </para>
+ </textobject>
+ </mediaobject>
+ </example>
+ </section>
+ <section id="sect-Component_Reference-Table_filtering-External_filtering">
+ <title>External filtering</title>
+ <para>
+ If you require more advanced filtering using custom functions or expressions, use the external filtering properties of the <sgmltag><rich:column></sgmltag> component.
+ </para>
+ <para>
+ Use the <varname>filterExpression</varname> attribute to define an expression that can be evaluated as a boolean value. The expression checks if each table entry satisfies the filtering condition when the table is rendered.
+ </para>
+ <para>
+ Use the <varname>filterMethod</varname> attribute to define a method binding. The method needs to accept an object as a parameter and return a boolean value. Similar to the <varname>filterExpression</varname> attribute, the table is rendered only with those entries that satisfy the filtering condition. By defining a custom filtering method, you can implement complex business logic to filter a table.
+ </para>
+ <example id="exam-Component_Reference-Table_filtering-External_filtering">
+ <title>External filtering</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <para>
+ The example uses a filter expression on the first column and a filter method on the second column.
+ </para>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-Table_filtering-External_filtering.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A table of state capitals filtered by states beginning with the letter "<wordasword>a</wordasword>", further filtered to those states in the GMT-5 time zone.
+ </para>
+ </textobject>
+ </mediaobject>
+ </example>
+ </section>
+ -->
</section>
<section id="sect-Component_Reference-Tables_and_grids-Table_sorting">
<title>Table sorting</title>
- <para>
- Under development.
- </para>
+ <!-- In development notification -->
+ <important>
+ <title>Documentation in development</title>
+ <para>
+ This section is currently under development. Any features it describes may not be available in the current release of RichFaces.
+ </para>
+ </important>
</section>
</chapter>
Added: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-Basic_filtering.xml_sample 2010-11-11 07:15:57 UTC (rev 20026)
@@ -0,0 +1,18 @@
+<rich:dataTable value="#{capitalsBean.capitals}" var="cap">
+ <f:facet name="header">
+ <rich:column>
+ <h:outputText value="State Name">
+ </rich:column>
+ <rich:column>
+ <h:outputText value="State Capital">
+ </rich:column>
+ </f:facet>
+ <rich:column filterValue="#{capitalsBean.currentStateFilterValue}"
+ filterBy="#{cap.state}" filterEvent="onkeyup">
+ <h:outputText value="#{cap.state}"/>
+ </rich:column>
+ <rich:column filterValue="#{capitalsBean.currentNameFilterValue}"
+ filterBy="#{cap.name}" filterEvent="onkeyup">
+ <h:outputText value="#{cap.name}"/>
+ </rich:column>
+</rich:dataTable>
Added: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-Table_filtering-External_filtering.xml_sample 2010-11-11 07:15:57 UTC (rev 20026)
@@ -0,0 +1,29 @@
+<rich:dataTable value="#{capitalsBean.capitals}" var="cap" id="table">
+ <f:facet name="header">
+ <rich:column>
+ <h:outputText value="State Name">
+ </rich:column>
+ <rich:column>
+ <h:outputText value="State Time Zone">
+ </rich:column>
+ </f:facet>
+ <rich:column filterMethod="#{filteringBean.filterStates}">
+ <f:facet name="header">
+ <h:inputText value="#{filteringBean.filterValue}" id="input">
+ <a4j:ajax event="onkeyup" render="table"
+ ignoreDupResponses="true" requestDelay="700"/>
+ </h:inputText>
+ </f:facet>
+ <h:outputText value="#{cap.state}"/>
+ </rich:column>
+ <rich:column filterExpression=
+ "#{fn:containsIgnoreCase(cap.timeZone, filteringBean.filterZone)}">
+ <f:facet name="header">
+ <h:selectOneMenu value="#{filteringBean.filterZone}">
+ <f:selectItems value="#{filteringBean.filterZones}" />
+ <a4j:ajax event="onchange" render="table" />
+ </h:selectOneMenu>
+ </f:facet>
+ <h:outputText value="#{cap.timeZone}"/>
+ </rich:column>
+</rich:dataTable>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample 2010-11-10 22:36:12 UTC (rev 20025)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample 2010-11-11 07:15:57 UTC (rev 20026)
@@ -1,6 +1,6 @@
<h:panelGrid columns="2">
<h:inputText id="myinput" value="#{userBean.name}">
- <a4j:ajax event="onkeyup" reRender="outtext" />
+ <a4j:ajax event="onkeyup" render="outtext" />
</h:inputText>
<h:outputText id="outtext" value="#{userBean.name}" />
</h:panelGrid>
Added: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-Table_filtering-Basic_filtering.png
===================================================================
(Binary files differ)
Property changes on: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-Table_filtering-Basic_filtering.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-Table_filtering-External_filtering.png
===================================================================
(Binary files differ)
Property changes on: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-Table_filtering-External_filtering.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
14 years, 2 months