[richfaces-svn-commits] JBoss Rich Faces SVN: r18704 - in trunk/examples/richfaces-showcase: src/main/java/org/richfaces/demo/function and 15 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Aug 17 08:14:50 EDT 2010


Author: ilya_shaikovsky
Date: 2010-08-17 08:14:49 -0400 (Tue, 17 Aug 2010)
New Revision: 18704

Added:
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/exTableSelection.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/samples/exTableSelectionSample.xhtml
Modified:
   trunk/examples/richfaces-showcase/pom.xml
   trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/function/FunctionBean.java
   trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/simpleTable.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableFiltering.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableSorting.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/samples/jsFunction-sample.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/push/push.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/samples/region-sample.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/simpleGrid.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/subTableToggleControl/subTableToggleControl.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/samples/simple-sample.xhtml
   trunk/examples/richfaces-showcase/src/main/webapp/templates/includes/source-view.xhtml
Log:
https://jira.jboss.org/browse/RF-9086
https://jira.jboss.org/browse/RF-9047

Modified: trunk/examples/richfaces-showcase/pom.xml
===================================================================
--- trunk/examples/richfaces-showcase/pom.xml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/pom.xml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -1,263 +1,295 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
->
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
-    <modelVersion>4.0.0</modelVersion>
+	<modelVersion>4.0.0</modelVersion>
 
-    <parent>
-        <groupId>org.richfaces</groupId>
-        <artifactId>richfaces-parent</artifactId>
-        <version>10-SNAPSHOT</version>
-    </parent>
+	<parent>
+		<groupId>org.richfaces</groupId>
+		<artifactId>richfaces-parent</artifactId>
+		<version>10-SNAPSHOT</version>
+	</parent>
 
-    <groupId>org.richfaces.examples</groupId>
-    <artifactId>richfaces-showcase</artifactId>
-    <version>4.0.0-SNAPSHOT</version>
-    <packaging>war</packaging>
-    <name>Richfaces Examples: Richfaces Showcase Application</name>
+	<groupId>org.richfaces.examples</groupId>
+	<artifactId>richfaces-showcase</artifactId>
+	<version>4.0.0-SNAPSHOT</version>
+	<packaging>war</packaging>
+	<name>Richfaces Examples: Richfaces Showcase Application</name>
 
-    <properties>
-        <!-- FIXME these should be through the richfaces-parent -->
-        <snapshotRepository>dav:https://repository.jboss.org/nexus/content/repositories/snapshots/</snapshotRepository>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+	<properties>
+		<!-- FIXME these should be through the richfaces-parent -->
+		<snapshotRepository>dav:https://repository.jboss.org/nexus/content/repositories/snapshots/</snapshotRepository>
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 
-        <jetty.port>8080</jetty.port>
-        <richfaces.checkstyle.version>1</richfaces.checkstyle.version>
-        <org.richfaces.bom.version>4.0.0-SNAPSHOT</org.richfaces.bom.version>
-    </properties>
+		<jetty.port>8080</jetty.port>
+		<richfaces.checkstyle.version>1</richfaces.checkstyle.version>
+		<org.richfaces.bom.version>4.0.0-SNAPSHOT</org.richfaces.bom.version>
+	</properties>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.richfaces</groupId>
-                <artifactId>richfaces-bom</artifactId>
-                <version>${org.richfaces.bom.version}</version>
-                <scope>import</scope>
-                <type>pom</type>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
+	<dependencyManagement>
+		<dependencies>
+			<dependency>
+				<groupId>org.richfaces</groupId>
+				<artifactId>richfaces-bom</artifactId>
+				<version>${org.richfaces.bom.version}</version>
+				<scope>import</scope>
+				<type>pom</type>
+			</dependency>
+		</dependencies>
+	</dependencyManagement>
 
-    <dependencies>
-        <dependency>
-            <groupId>org.richfaces.ui</groupId>
-            <artifactId>richfaces-components-api</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.richfaces.ui</groupId>
-            <artifactId>richfaces-components-ui</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.faces</groupId>
-            <artifactId>jsf-api</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.faces</groupId>
-            <artifactId>jsf-impl</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>javax.el</groupId>
-            <artifactId>el-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>jstl</artifactId>
-        </dependency>
+	<dependencies>
+		<dependency>
+			<groupId>org.richfaces.ui</groupId>
+			<artifactId>richfaces-components-api</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.richfaces.ui</groupId>
+			<artifactId>richfaces-components-ui</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>com.sun.faces</groupId>
+			<artifactId>jsf-api</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>com.sun.faces</groupId>
+			<artifactId>jsf-impl</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>javax.servlet</groupId>
+			<artifactId>servlet-api</artifactId>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>javax.servlet.jsp</groupId>
+			<artifactId>jsp-api</artifactId>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>javax.el</groupId>
+			<artifactId>el-api</artifactId>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>javax.servlet</groupId>
+			<artifactId>jstl</artifactId>
+		</dependency>
 
-        <dependency>
-            <groupId>net.sf.ehcache</groupId>
-            <artifactId>ehcache</artifactId>
-        </dependency>
+		<dependency>
+			<groupId>net.sf.ehcache</groupId>
+			<artifactId>ehcache</artifactId>
+		</dependency>
 
-        <!--
-            simple logger binding: only messages of level INFO and
-            higher are printed
-        -->
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <version>1.5.8</version>
-        </dependency>
+		<!--
+			simple logger binding: only messages of level INFO and higher are
+			printed
+		-->
+		<dependency>
+			<groupId>org.slf4j</groupId>
+			<artifactId>slf4j-log4j12</artifactId>
+			<version>1.5.8</version>
+		</dependency>
 
-        <!-- Log4J dependency used in examples -->
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-            <version>1.2.14</version>
-        </dependency>
-    </dependencies>
+		<!-- Log4J dependency used in examples -->
+		<dependency>
+			<groupId>log4j</groupId>
+			<artifactId>log4j</artifactId>
+			<version>1.2.14</version>
+		</dependency>
+	</dependencies>
 
-    <build>
-        <finalName>richfaces-showcase</finalName>
+	<build>
+		<finalName>richfaces-showcase</finalName>
 
-        <plugins>
-            <plugin>
-                <artifactId>maven-checkstyle-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <artifactId>maven-compiler-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.mortbay.jetty</groupId>
-                <artifactId>maven-jetty-plugin</artifactId>
-                <version>6.1.18</version>
-                <configuration>
-                    <scanIntervalSeconds>10</scanIntervalSeconds>
-                    <connectors>
-                        <connector
-                            implementation="org.mortbay.jetty.nio.SelectChannelConnector"
-                        >
-                            <port>${jetty.port}</port>
-                            <maxIdleTime>60000</maxIdleTime>
-                        </connector>
-                    </connectors>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
+		<plugins>
+			<plugin>
+				<artifactId>maven-checkstyle-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<artifactId>maven-compiler-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<groupId>org.mortbay.jetty</groupId>
+				<artifactId>maven-jetty-plugin</artifactId>
+				<version>6.1.18</version>
+				<configuration>
+					<scanIntervalSeconds>10</scanIntervalSeconds>
+					<connectors>
+						<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+							<port>${jetty.port}</port>
+							<maxIdleTime>60000</maxIdleTime>
+						</connector>
+					</connectors>
+					<webResources>
+						<resource>
+							<directory>${basedir}/src/main/java</directory>
+							<targetPath>/WEB-INF/src</targetPath>
+						</resource>
+					</webResources>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-war-plugin</artifactId>
+				<configuration>
+					<webResources>
+						<resource>
+							<directory>${basedir}/src/main/java</directory>
+							<targetPath>/WEB-INF/src</targetPath>
+						</resource>
+					</webResources>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
 
-    <profiles>
-        <profile>
-            <id>jdk5</id>
-            <activation>
-                <jdk>1.5</jdk>
-            </activation>
-            <dependencies>
-                <dependency>
-                    <groupId>javax.xml.bind</groupId>
-                    <artifactId>jaxb-api</artifactId>
-                    <version>2.2</version>
-                </dependency>
-            </dependencies>
-        </profile>
-        <profile>
-            <id>release</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <artifactId>maven-war-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>jee6</id>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>war</goal>
-                                </goals>
-                                <configuration>
-                                    <webappDirectory>${project.build.directory}/${project.build.finalName}-jee6</webappDirectory>
-                                    <classifier>jee6</classifier>
-                                    <packagingExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/jta-*,WEB-INF/lib/jstl-*</packagingExcludes>
-                                    <warSourceExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/jta-*,WEB-INF/lib/jstl-*</warSourceExcludes>
-                                </configuration>
-                            </execution>
-                        </executions>
-                        <configuration>
-                            <classifier>tomcat6</classifier>
-                        </configuration>
-                    </plugin>
+	<profiles>
+		<profile>
+			<id>jdk5</id>
+			<activation>
+				<jdk>1.5</jdk>
+			</activation>
+			<dependencies>
+				<dependency>
+					<groupId>javax.xml.bind</groupId>
+					<artifactId>jaxb-api</artifactId>
+					<version>2.2</version>
+				</dependency>
+			</dependencies>
+		</profile>
+		<profile>
+			<id>release</id>
+			<build>
+				<plugins>
+					<plugin>
+						<artifactId>maven-war-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>jee6</id>
+								<phase>package</phase>
+								<goals>
+									<goal>war</goal>
+								</goals>
+								<configuration>
+									<webappDirectory>${project.build.directory}/${project.build.finalName}-jee6</webappDirectory>
+									<classifier>jee6</classifier>
+									<packagingExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/jta-*,WEB-INF/lib/jstl-*</packagingExcludes>
+									<warSourceExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/jta-*,WEB-INF/lib/jstl-*</warSourceExcludes>
+									<webResources>
+										<resource>
+											<directory>${basedir}/src/main/java</directory>
+											<targetPath>/WEB-INF/src</targetPath>
+										</resource>
+									</webResources>
+								</configuration>
+							</execution>
+						</executions>
+						<configuration>
+							<classifier>tomcat6</classifier>
+							<webResources>
+								<resource>
+									<directory>${basedir}/src/main/java</directory>
+									<targetPath>/WEB-INF/src</targetPath>
+								</resource>
+							</webResources>
+						</configuration>
+					</plugin>
 
-                    <plugin>
-                        <artifactId>maven-assembly-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>group-sources</id>
-                                <goals>
-                                    <goal>single</goal>
-                                </goals>
-                                <phase>package</phase>
-                                <configuration>
-                                    <finalName>sources</finalName>
-                                    <descriptor>assembler.xml</descriptor>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                    <plugin>
-                        <artifactId>maven-jar-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <goals>
-                                    <goal>jar</goal>
-                                </goals>
-                                <phase>package</phase>
-                                <configuration>
-                                    <classesDirectory>${basedir}/target/sources/sources</classesDirectory>
-                                    <classifier>sources</classifier>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-        <profile>
-            <id>jee6</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <artifactId>maven-war-plugin</artifactId>
-                        <configuration>
-                            <webappDirectory>${project.build.directory}/${project.build.finalName}-jee6</webappDirectory>
-                        </configuration>
-                    </plugin>
-                </plugins>
-            </build>
+					<plugin>
+						<artifactId>maven-assembly-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>group-sources</id>
+								<goals>
+									<goal>single</goal>
+								</goals>
+								<phase>package</phase>
+								<configuration>
+									<finalName>sources</finalName>
+									<descriptor>assembler.xml</descriptor>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
+						<artifactId>maven-jar-plugin</artifactId>
+						<executions>
+							<execution>
+								<goals>
+									<goal>jar</goal>
+								</goals>
+								<phase>package</phase>
+								<configuration>
+									<classesDirectory>${basedir}/target/sources/sources</classesDirectory>
+									<classifier>sources</classifier>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+		<profile>
+			<id>jee6</id>
+			<build>
+				<plugins>
+					<plugin>
+						<artifactId>maven-war-plugin</artifactId>
+						<configuration>
+							<webappDirectory>${project.build.directory}/${project.build.finalName}-jee6</webappDirectory>
+							<webResources>
+								<resource>
+									<directory>${basedir}/src/main/java</directory>
+									<targetPath>/WEB-INF/src</targetPath>
+								</resource>
+							</webResources>
+						</configuration>
+					</plugin>
+				</plugins>
+			</build>
 
-            <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>
-                <dependency>
-                    <groupId>javax.transaction</groupId>
-                    <artifactId>jta</artifactId>
-                    <version>1.1</version>
-                    <scope>provided</scope>
-                </dependency>
-                <dependency>
-                    <groupId>javax.servlet</groupId>
-                    <artifactId>jstl</artifactId>
-                    <scope>provided</scope>
-                </dependency>
-            </dependencies>
-        </profile>
-    </profiles>
+			<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>
+				<dependency>
+					<groupId>javax.transaction</groupId>
+					<artifactId>jta</artifactId>
+					<version>1.1</version>
+					<scope>provided</scope>
+				</dependency>
+				<dependency>
+					<groupId>javax.servlet</groupId>
+					<artifactId>jstl</artifactId>
+					<scope>provided</scope>
+				</dependency>
+			</dependencies>
+		</profile>
+	</profiles>
 
-    <repositories>
-        <!-- FIXME - This should be set globally in parent -->
-        <repository>
-            <id>maven-repository2.dev.java.net</id>
-            <name>Java.net Repository for Maven 2</name>
-            <url>http://download.java.net/maven/2</url>
-            <snapshots>
-                <enabled>true</enabled>
-            </snapshots>
-        </repository>
-    </repositories>
+	<repositories>
+		<!-- FIXME - This should be set globally in parent -->
+		<repository>
+			<id>maven-repository2.dev.java.net</id>
+			<name>Java.net Repository for Maven 2</name>
+			<url>http://download.java.net/maven/2</url>
+			<snapshots>
+				<enabled>true</enabled>
+			</snapshots>
+		</repository>
+	</repositories>
 
-    <scm>
-        <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/trunk/examples/richfaces-showcase</connection>
-        <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/trunk/examples/richfaces-showcase</developerConnection>
-        <url>http://fisheye.jboss.org/browse/richfaces</url>
-    </scm>
+	<scm>
+		<connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/trunk/examples/richfaces-showcase</connection>
+		<developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/trunk/examples/richfaces-showcase</developerConnection>
+		<url>http://fisheye.jboss.org/browse/richfaces</url>
+	</scm>
 </project>

Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/function/FunctionBean.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/function/FunctionBean.java	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/function/FunctionBean.java	2010-08-17 12:14:49 UTC (rev 18704)
@@ -2,17 +2,12 @@
 
 import javax.faces.bean.ManagedBean;
 import javax.faces.bean.RequestScoped;
-import javax.faces.context.FacesContext;
 
 @ManagedBean(name = "functionBean")
 @RequestScoped
 public class FunctionBean {
     private String text;
 
-    public void processHover() {
-        setText(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("name"));
-    }
-
     public String getText() {
         return text;
     }

Modified: trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -310,7 +310,7 @@
 					<sample>
 						<id>simple</id>
 						<name>Simple Toggle Panel</name>
-					</sample>
+					</sample>					
 				</samples>
 			</demo>
 			<demo>

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -16,6 +16,13 @@
 		<ui:param name="openLabel" value="View Source" />
 		<ui:param name="hideLabel" value="Hide Source" />
 	</ui:include>
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/common/SelectsBean.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View Bean Source" />
+		<ui:param name="hideLabel" value="Hide Bean Source" />
+	</ui:include>
+	
 </ui:composition>
 
 </html>
\ No newline at end of file

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/simpleTable.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/simpleTable.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/simpleTable.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -14,5 +14,29 @@
 		<ui:param name="openLabel" value="View Source" />
 		<ui:param name="hideLabel" value="Hide Source" />
 	</ui:include>
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/tables/ReportBean.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View ReportBean Source" />
+		<ui:param name="hideLabel" value="Hide ReportBean Source" />
+	</ui:include>	
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/tables/model/expenses/ExpenseReport.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View ExpenseReport Source" />
+		<ui:param name="hideLabel" value="Hide ExpenseReport Source" />
+	</ui:include>		
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/tables/model/expenses/ExpenseReportRecord.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View ExpenseReportRecord Source" />
+		<ui:param name="hideLabel" value="Hide ExpenseReportRecord Source" />
+	</ui:include>		
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/tables/model/expenses/ExpenseReportRecordItem.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View ExpenseReportRecordItem Source" />
+		<ui:param name="hideLabel" value="Hide ExpenseReportRecordItem Source" />
+	</ui:include>		
 </ui:composition>
 </html>
\ No newline at end of file

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableFiltering.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableFiltering.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableFiltering.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -12,5 +12,11 @@
 		<ui:param name="openLabel" value="View Source" />
 		<ui:param name="hideLabel" value="Hide Source" />
 	</ui:include>
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/tables/CarsFilteringBean.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View CarsFilteringBean Source" />
+		<ui:param name="hideLabel" value="Hide CarsFilteringBean Source" />
+	</ui:include>	
 </ui:composition>
 </html>
\ No newline at end of file

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableSorting.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableSorting.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableSorting.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -20,5 +20,11 @@
 		<ui:param name="openLabel" value="View Source" />
 		<ui:param name="hideLabel" value="Hide Source" />
 	</ui:include>
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/tables/CapitalsSortingBean.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View CapitalsSortingBean Source" />
+		<ui:param name="hideLabel" value="Hide CapitalsSortingBean Source" />
+	</ui:include>	
 </ui:composition>
 </html>
\ No newline at end of file

Added: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/exTableSelection.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/exTableSelection.xhtml	                        (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/exTableSelection.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -0,0 +1,26 @@
+<!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">
+
+<ui:composition>
+	<p>ExtendedDataTable component provides next set of features:</p>
+	<ul>
+		<li>Horizontal/Vertical scrolling</li>
+		<li>Ajax lazy loading on vertical scroll</li>
+		<li>Support "frozen" columns which are not scrolled on using
+		horizontal scroll</li>
+	</ul>
+	<ui:include src="#{demoNavigator.sampleIncludeURI}" />
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />
+		<ui:param name="sourceType" value="xhtml" />
+		<ui:param name="openLabel" value="View Source" />
+		<ui:param name="hideLabel" value="Hide Source" />
+	</ui:include>
+	<p>In order to turn on Ajax loading - just specify clientRows
+	attribute with number of rows to be loaded on the client</p>
+</ui:composition>
+
+</html>
\ No newline at end of file

Added: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/samples/exTableSelectionSample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/samples/exTableSelectionSample.xhtml	                        (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/samples/exTableSelectionSample.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -0,0 +1,59 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition 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:rich="http://richfaces.org/rich">
+	<h:form>
+		<rich:extendedDataTable value="#{carsBean.allInventoryItems}"
+			var="car" id="table" frozenColumns="2"
+			style="height:300px; width:500px;">
+			<f:facet name="header">
+				<h:outputText value="Cars marketplace" />
+			</f:facet>
+			<rich:column>
+				<f:facet name="header">
+					<h:outputText value="vendor" />
+				</f:facet>
+				<h:outputText value="#{car.vendor}" />
+			</rich:column>
+			<rich:column>
+				<f:facet name="header">
+					<h:outputText value="Model" />
+				</f:facet>
+				<h:outputText value="#{car.model}" />
+			</rich:column>
+			<rich:column>
+				<f:facet name="header">
+					<h:outputText value="Price" />
+				</f:facet>
+				<h:outputText value="#{car.price}" />
+			</rich:column>
+			<rich:column>
+				<f:facet name="header">
+					<h:outputText value="Mileage" />
+				</f:facet>
+				<h:outputText value="#{car.mileage}" />
+			</rich:column>
+			<rich:column>
+				<f:facet name="header">
+					<h:outputText value="VIN Code" />
+				</f:facet>
+				<h:outputText value="#{car.vin}" />
+			</rich:column>
+			<rich:column>
+				<f:facet name="header">
+					<h:outputText value="Items stock" />
+				</f:facet>
+				<h:outputText value="#{car.stock}" />
+			</rich:column>
+			<rich:column>
+				<f:facet name="header">
+					<h:outputText value="Days Live" />
+				</f:facet>
+				<h:outputText value="#{car.daysLive}" />
+			</rich:column>
+		</rich:extendedDataTable>
+	</h:form>
+</ui:composition>
\ No newline at end of file

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -12,7 +12,8 @@
 		<li>Support "frozen" columns which are not scrolled on using
 		horizontal scroll</li>
 	</ul>
-
+	<p>The component not requires special model usage but supports all the standard ones and all the
+	models which rich:dataTable supports.</p>
 	<ui:include src="#{demoNavigator.sampleIncludeURI}" />
 	<ui:include src="/templates/includes/source-view.xhtml">
 		<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/samples/jsFunction-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/samples/jsFunction-sample.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/samples/jsFunction-sample.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -22,9 +22,8 @@
 		</tbody>
 	</table>
 	<h:form>
-		<a4j:jsFunction name="updateName" render="showname"
-			action="#{functionBean.processHover}">
-			<f:param name="name" />
+		<a4j:jsFunction name="updateName" render="showname">
+			<a4j:param name="name" assignTo="#{functionBean.text}"/>
 		</a4j:jsFunction>
 	</h:form>
 </ui:composition>
\ No newline at end of file

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -15,6 +15,12 @@
 		<ui:param name="openLabel" value="View Source" />
 		<ui:param name="hideLabel" value="Hide Source" />
 	</ui:include>
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/resources/rich/messages.xhtml" />
+		<ui:param name="sourceType" value="xhtml" />
+		<ui:param name="openLabel" value="View Messages Composite Component" />
+		<ui:param name="hideLabel" value="Hide Messages Composite Component" />
+	</ui:include>	
 </ui:composition>
 
 </html>
\ No newline at end of file

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -25,7 +25,12 @@
 		<ui:param name="openLabel" value="View Source" />
 		<ui:param name="hideLabel" value="Hide Source" />
 	</ui:include>
-
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/poll/PollBean.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View Bean Source" />
+		<ui:param name="hideLabel" value="Hide Bean Source" />
+	</ui:include>
 	<rich:panel>
 		<b>NOTE:</b>polling is automatically disabled in this demo after one minute of working.
 	</rich:panel>

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/push/push.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/push/push.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/push/push.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -22,6 +22,12 @@
 		<ui:param name="openLabel" value="View Source" />
 		<ui:param name="hideLabel" value="Hide Source" />
 	</ui:include>
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/push/ChoicesBean.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View Bean Source" />
+		<ui:param name="hideLabel" value="Hide Bean Source" />
+	</ui:include>	
 </ui:composition>
 
 </html>
\ No newline at end of file

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -17,9 +17,10 @@
 	a4j:region</b> component and has no execute definitions - them uses<b>
 	execute="@region"</b></p>
 	<p>Look to the simple example below. There are two similar user
-	info panels. But the ajax behaviors inside the first panel uses execute
-	declarations and pointed to panelGrid id. And the second panel inputs
-	just wrapped to region without any additional execute definitions.</p>
+	info panels. But the <b><u>button inside the first panel will not works</u> </b>as not uses execute
+	declarations and by default execut equals to @this. Separate definition needed to start working properly.
+	And the <b>second panel inputs
+	just wrapped to region with the commandButton and works</b> without any additional execute definitions.</p>
 	<ui:include src="#{demoNavigator.sampleIncludeURI}" />
 	<ui:include src="/templates/includes/source-view.xhtml">
 		<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/samples/region-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/samples/region-sample.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/samples/region-sample.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -15,16 +15,11 @@
 			</f:facet>
 				<h:panelGrid columns="2" id="userInfoPanel1">
 					<h:outputText value="User Name: " />
-					<h:inputText value="#{regionBean.user1.name}">
-						<a4j:ajax render="echopanel1" event="keyup"
-							execute="userInfoPanel1" />
-					</h:inputText>
+					<h:inputText value="#{regionBean.user1.name}"/>
 					<h:outputText value="User email: " />
-					<h:inputText value="#{regionBean.user1.email}">
-						<a4j:ajax render="echopanel1" event="keyup"
-							execute="userInfoPanel1" />
-					</h:inputText>
+					<h:inputText value="#{regionBean.user1.email}"/>
 				</h:panelGrid>
+				<a4j:commandButton render="echopanel1" value="submit"/>
 			</h:panelGrid>
 			<h:panelGrid columns="2" id="echopanel1">
 				<f:facet name="header">
@@ -46,14 +41,11 @@
 				<a4j:region>
 					<h:panelGrid columns="2">
 						<h:outputText value="User Name: " />
-						<h:inputText value="#{regionBean.user2.name}">
-							<a4j:ajax render="echopanel2" event="keyup" />
-						</h:inputText>
+						<h:inputText value="#{regionBean.user2.name}"/>
 						<h:outputText value="User email: " />
-						<h:inputText value="#{regionBean.user2.email}">
-							<a4j:ajax render="echopanel2" event="keyup" />
-						</h:inputText>
+						<h:inputText value="#{regionBean.user2.email}"/>
 					</h:panelGrid>
+					<a4j:commandButton render="echopanel2" value="submit"/>
 				</a4j:region>
 			</h:panelGrid>
 			<h:panelGrid columns="2" id="echopanel2">

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/simpleGrid.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/simpleGrid.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/simpleGrid.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -15,5 +15,11 @@
 		<ui:param name="openLabel" value="View Source" />
 		<ui:param name="hideLabel" value="Hide Source" />
 	</ui:include>
+	<ui:include src="/templates/includes/source-view.xhtml">
+		<ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/tables/CapitalsBean.java" />
+		<ui:param name="sourceType" value="java" />
+		<ui:param name="openLabel" value="View Bean Source" />
+		<ui:param name="hideLabel" value="Hide Bean Source" />
+	</ui:include>	
 </ui:composition>
 </html>
\ No newline at end of file

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/subTableToggleControl/subTableToggleControl.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/subTableToggleControl/subTableToggleControl.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/subTableToggleControl/subTableToggleControl.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -8,7 +8,7 @@
 	<p>This sample shows simple master-detail table implemented using<b>
 	rich:dataTable</b> and<b> rich:subtable</b> components</p>
 	<p>There is one feature which is completely new for 4.x - subtables
-	now could be collapsed/expanded by using new component <b>rich:tableToggleControl</b></p>
+	now could be collapsed/expanded by using new component <b>rich:subTableToggleControl</b></p>
 	<p>Switching customization:</p>
 	<ul>
 		<li>subTable's could be collapsed/expanded in different modes

Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/samples/simple-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/samples/simple-sample.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/samples/simple-sample.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -20,12 +20,12 @@
 </style>
 	<h:form>
 		<rich:togglePanel id="panel1" activeItem="item1" render="tabs">
-			<rich:togglePanelItem name="item1" styleClass="rf-tgp-i">
+			<rich:togglePanelItem name="item1">
 				<p>This toggle panel switches in Ajax mode. So only one active
 				item loaded to the client.</p>
 				<p>For now you are at Panel 1</p>
 			</rich:togglePanelItem>
-			<rich:togglePanelItem name="item2" styleClass="rf-tgp-i">
+			<rich:togglePanelItem name="item2">
 				<p>After the second link click - panel changed active item to
 				the second one according to name specified in the
 				togglePanelBehavior</p>

Modified: trunk/examples/richfaces-showcase/src/main/webapp/templates/includes/source-view.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/templates/includes/source-view.xhtml	2010-08-17 11:48:36 UTC (rev 18703)
+++ trunk/examples/richfaces-showcase/src/main/webapp/templates/includes/source-view.xhtml	2010-08-17 12:14:49 UTC (rev 18704)
@@ -19,20 +19,20 @@
 			<h:outputLink value="#"
 				onclick="jQuery(#{rich:element('hide')}).slideDown(); jQuery(#{rich:element('show')}).hide(); return false;"
 				id="sh1" styleClass="show">
-				<h:outputText value="#{empty openlabel?'View Source' : openlabel }" />
+				<h:outputText value="#{empty openLabel?'View Source' : openLabel }" />
 			</h:outputLink>
 		</a4j:outputPanel>
 
 		<a4j:outputPanel id="hide" layout="block" style="display:none">
 			<h:outputLink styleClass="hide" value="#"
 				onclick="jQuery(#{rich:element('hide')}).slideUp(); jQuery(#{rich:element('show')}).show(500); return false;">
-				<h:outputText value="#{empty hidelabel?'Hide Source' : openlabel }" />
+				<h:outputText value="#{empty hideLabel?'Hide Source' : hideLabel }" />
 			</h:outputLink>
 			<at:syntaxHighlighter styleClass="source" src="#{src}"
 				sourceType="#{sourceType}" />
 			<h:outputLink styleClass="hide" value="#"
 				onclick="jQuery(#{rich:element('hide')}).slideUp(); jQuery(#{rich:element('show')}).show(500); return false;">
-				<h:outputText value="#{empty hidelabel?'Hide Source' : openlabel }" />
+				<h:outputText value="#{empty hideLabel?'Hide Source' : hideLabel }" />
 			</h:outputLink>
 		</a4j:outputPanel>
 	</a4j:outputPanel>	



More information about the richfaces-svn-commits mailing list