JBoss Rich Faces SVN: r2925 - trunk/test-applications/facelets/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-13 08:58:33 -0400 (Thu, 13 Sep 2007)
New Revision: 2925
Modified:
trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
Log:
Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-09-13 12:58:05 UTC (rev 2924)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-09-13 12:58:33 UTC (rev 2925)
@@ -33,7 +33,7 @@
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
- <param-value>/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,/WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,/WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,/WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,/WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,/WEB-INF/faces-config-DradAbdDrop.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,/WEB-INF/faces-config-VirtualEarth!
.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,/WEB-INF/faces-config-Div.xml,/WEB-INF/faces-config-ScrollableDataTable.xml</param-value>
+ <param-value>/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,/WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,/WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,/WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,/WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,/WEB-INF/faces-config-DradAbdDrop.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,/WEB-INF/faces-config-VirtualEarth!
.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,/WEB-INF/faces-config-Div.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,/WEB-INF/faces-config-SelectOneMenuPage.xml</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
18 years, 7 months
JBoss Rich Faces SVN: r2924 - in trunk/test-applications/facelets/src/main: java/selectOneMenuPage and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-13 08:58:05 -0400 (Thu, 13 Sep 2007)
New Revision: 2924
Added:
trunk/test-applications/facelets/src/main/java/selectOneMenuPage/
trunk/test-applications/facelets/src/main/java/selectOneMenuPage/SelectOneMenuPage.java
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-SelectOneMenuPage.xml
trunk/test-applications/facelets/src/main/webapp/pages/SelectOneMenuPage.xhtml
Modified:
trunk/test-applications/facelets/src/main/webapp/pages/Div.xhtml
trunk/test-applications/facelets/src/main/webapp/pages/Test.xhtml
Log:
Added: trunk/test-applications/facelets/src/main/java/selectOneMenuPage/SelectOneMenuPage.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/selectOneMenuPage/SelectOneMenuPage.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/selectOneMenuPage/SelectOneMenuPage.java 2007-09-13 12:58:05 UTC (rev 2924)
@@ -0,0 +1,33 @@
+package selectOneMenuPage;
+
+public class SelectOneMenuPage {
+ private String top = "10px";
+ private String left = "0px";
+ private String width = "800px";
+ private String height = "20px";
+
+ public String getTop() {
+ return top;
+ }
+ public void setTop(String top) {
+ this.top = top;
+ }
+ public String getLeft() {
+ return left;
+ }
+ public void setLeft(String left) {
+ this.left = left;
+ }
+ public String getWidth() {
+ return width;
+ }
+ public void setWidth(String width) {
+ this.width = width;
+ }
+ public String getHeight() {
+ return height;
+ }
+ public void setHeight(String height) {
+ this.height = height;
+ }
+}
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-SelectOneMenuPage.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-SelectOneMenuPage.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-SelectOneMenuPage.xml 2007-09-13 12:58:05 UTC (rev 2924)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>somp</managed-bean-name>
+ <managed-bean-class>selectOneMenuPage.SelectOneMenuPage</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/facelets/src/main/webapp/pages/Div.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Div.xhtml 2007-09-13 11:47:13 UTC (rev 2923)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Div.xhtml 2007-09-13 12:58:05 UTC (rev 2924)
@@ -13,13 +13,13 @@
type="text/css" />
</head>
<body>
+ <ui:include src="SelectOneMenuPage.xhtml" />
<div id="div_1_ID" style="position: relative; left:600px; top:500px; z-index:1;">
<div id="div_2_ID" style="position: absolute; left:-580px; top:-450px;">
<ui:include src="${divBean.src}" />
</div>
</div>
-
<div id="divOpthID" align="right">
<h:form id="forvDivOpthID">
<h:panelGrid columns="2">
Added: trunk/test-applications/facelets/src/main/webapp/pages/SelectOneMenuPage.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/SelectOneMenuPage.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/pages/SelectOneMenuPage.xhtml 2007-09-13 12:58:05 UTC (rev 2924)
@@ -0,0 +1,60 @@
+<h:form id="formSOMID" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <div align="right">
+ <h:panelGrid columns="2">
+ <h:panelGroup>
+ <h:outputText value="Top:" />
+ <h:inputText value="#{somp.top}">
+ <a4j:support event="onchange" reRender="formSOMID"></a4j:support>
+ </h:inputText>
+ </h:panelGroup>
+ <h:panelGroup>
+ <h:outputText value="Left:" />
+ <h:inputText value="#{somp.left}">
+ <a4j:support event="onchange" reRender="formSOMID"></a4j:support>
+ </h:inputText>
+ </h:panelGroup>
+ <h:panelGroup>
+ <h:outputText value="Width:" />
+ <h:inputText value="#{somp.width}">
+ <a4j:support event="onchange" reRender="formSOMID"></a4j:support>
+ </h:inputText>
+ </h:panelGroup>
+ <h:panelGroup>
+ <h:outputText value="Height:" />
+ <h:inputText value="#{somp.height}">
+ <a4j:support event="onchange" reRender="formSOMID"></a4j:support>
+ </h:inputText>
+ </h:panelGroup>
+ </h:panelGrid>
+ </div>
+
+ <div id="divID" style="position: absolute; top: #{somp.top}; left: #{somp.left};">
+ <h:selectOneMenu id="optionSOMID" value="menu" style="width:#{somp.width};height:#{somp.height}">
+ <f:selectItem itemLabel="1" itemValue="test" />
+ <f:selectItem itemLabel="2" itemValue="test" />
+ <f:selectItem itemLabel="3" itemValue="test" />
+ <f:selectItem itemLabel="4" itemValue="test" />
+ <f:selectItem itemLabel="5" itemValue="test" />
+ <f:selectItem itemLabel="6" itemValue="test" />
+ <f:selectItem itemLabel="7" itemValue="test" />
+ <f:selectItem itemLabel="8" itemValue="test" />
+ <f:selectItem itemLabel="9" itemValue="test" />
+ <f:selectItem itemLabel="10" itemValue="test" />
+ <f:selectItem itemLabel="11" itemValue="test" />
+ <f:selectItem itemLabel="12" itemValue="test" />
+ <f:selectItem itemLabel="13" itemValue="test" />
+ <f:selectItem itemLabel="14" itemValue="test" />
+ <f:selectItem itemLabel="15" itemValue="test" />
+ <f:selectItem itemLabel="16" itemValue="test" />
+ <f:selectItem itemLabel="17" itemValue="test" />
+ <f:selectItem itemLabel="18" itemValue="test" />
+ <f:selectItem itemLabel="19" itemValue="test" />
+ <f:selectItem itemLabel="20" itemValue="test" />
+ </h:selectOneMenu>
+ </div>
+
+</h:form>
Modified: trunk/test-applications/facelets/src/main/webapp/pages/Test.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/Test.xhtml 2007-09-13 11:47:13 UTC (rev 2923)
+++ trunk/test-applications/facelets/src/main/webapp/pages/Test.xhtml 2007-09-13 12:58:05 UTC (rev 2924)
@@ -13,6 +13,7 @@
type="text/css" />
</head>
<body>
+ <div id="divOpthID" align="right">
<h:form id="forvDivOpthID">
<h:panelGrid columns="2">
<h:outputText value="Select component:" />
@@ -48,7 +49,8 @@
</h:selectOneMenu>
</h:panelGrid>
</h:form>
-
+ </div>
+ <ui:include src="SelectOneMenuPage.xhtml" />
<ui:include src="${divBean.src}" />
</body>
18 years, 7 months
JBoss Rich Faces SVN: r2923 - trunk/ui/suggestionbox/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-09-13 07:47:13 -0400 (Thu, 13 Sep 2007)
New Revision: 2923
Modified:
trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
Log:
http://jira.jboss.com/jira/browse/RF-905
Modified: trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
===================================================================
--- trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2007-09-12 22:58:28 UTC (rev 2922)
+++ trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2007-09-13 11:47:13 UTC (rev 2923)
@@ -105,7 +105,7 @@
Name of the CSS class for a suggestion entry element
(table row)
</description>
- <defaultvalue>"richfaces_suggestionEntry"</defaultvalue>
+ <defaultvalue>"dr-sb-int rich-sb-int richfaces_suggestionEntry"</defaultvalue>
</property>
<property>
<name>rowClasses</name>
18 years, 7 months
JBoss Rich Faces SVN: r2922 - in tags/3.1.0: extensions/gwt and 31 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-09-12 18:58:28 -0400 (Wed, 12 Sep 2007)
New Revision: 2922
Removed:
tags/3.1.0/framework/api-parent/
tags/3.1.0/framework/impl-parent/
Modified:
tags/3.1.0/cdk/maven-archetype-jsf-component/src/main/resources/archetype-resources/pom.xml
tags/3.1.0/extensions/gwt/pom.xml
tags/3.1.0/extensions/seam/pom.xml
tags/3.1.0/extensions/trinidad/pom.xml
tags/3.1.0/framework/impl/pom.xml
tags/3.1.0/samples/ajaxPortlet/pom.xml
tags/3.1.0/samples/pom.xml
tags/3.1.0/samples/portal-echo/pom.xml
tags/3.1.0/samples/richfaces-art-datatable/pom.xml
tags/3.1.0/samples/richfaces-ear-demo/ejb/pom.xml
tags/3.1.0/samples/richfaces-ear-demo/pom.xml
tags/3.1.0/samples/richfaces-ear-demo/richfacesEAR/pom.xml
tags/3.1.0/samples/richfaces-ear-demo/webapp/pom.xml
tags/3.1.0/samples/scrollableDataTableDemo/pom.xml
tags/3.1.0/samples/seamEAR/ear/pom.xml
tags/3.1.0/samples/seamEAR/ejbs/pom.xml
tags/3.1.0/samples/seamEAR/pom.xml
tags/3.1.0/samples/seamEAR/primary-source/pom.xml
tags/3.1.0/samples/seamEAR/projects/logging/pom.xml
tags/3.1.0/samples/seamEAR/projects/pom.xml
tags/3.1.0/samples/seamEAR/wars/pom.xml
tags/3.1.0/samples/seamEAR/wars/seamWebapp/pom.xml
tags/3.1.0/samples/seamIntegration/pom.xml
tags/3.1.0/samples/tomahawkCompability/pom.xml
tags/3.1.0/samples/useCases/pom.xml
tags/3.1.0/samples/virtualEarth-sample/pom.xml
tags/3.1.0/sandbox/samples/rich-message-demo/pom.xml
tags/3.1.0/test-applications/facelets/pom.xml
tags/3.1.0/test-applications/jsp/pom.xml
tags/3.1.0/test-applications/pom.xml
tags/3.1.0/ui/dataTable/pom.xml
tags/3.1.0/ui/drag-drop/pom.xml
Log:
fix all references to a 3.1.0-SNAPSHOT
Modified: tags/3.1.0/cdk/maven-archetype-jsf-component/src/main/resources/archetype-resources/pom.xml
===================================================================
--- tags/3.1.0/cdk/maven-archetype-jsf-component/src/main/resources/archetype-resources/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/cdk/maven-archetype-jsf-component/src/main/resources/archetype-resources/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -10,7 +10,7 @@
<plugin>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-cdk-plugin</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<configuration>
<library>
<prefix>${groupId}</prefix>
Modified: tags/3.1.0/extensions/gwt/pom.xml
===================================================================
--- tags/3.1.0/extensions/gwt/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/extensions/gwt/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -3,7 +3,7 @@
<parent>
<artifactId>master</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces</groupId>
@@ -97,11 +97,16 @@
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.richfaces</groupId>
- <artifactId>ajax4jsf</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>3.1.0</version>
</dependency>
<dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.1.0</version>
+ </dependency>
+ <dependency>
<groupId>com.sun.facelets</groupId>
<artifactId>jsf-facelets</artifactId>
<version>1.1.11</version>
Modified: tags/3.1.0/extensions/seam/pom.xml
===================================================================
--- tags/3.1.0/extensions/seam/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/extensions/seam/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -1,8 +1,8 @@
<?xml version="1.0"?><project>
<parent>
- <artifactId>master</artifactId>
+ <artifactId>root</artifactId>
<groupId>org.richfaces</groupId>
- <version>1.1.1-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces</groupId>
@@ -35,7 +35,7 @@
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>ajax4jsf</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>jboss</groupId>
Modified: tags/3.1.0/extensions/trinidad/pom.xml
===================================================================
--- tags/3.1.0/extensions/trinidad/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/extensions/trinidad/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -1,8 +1,8 @@
<?xml version="1.0"?><project>
<parent>
- <artifactId>master</artifactId>
+ <artifactId>root</artifactId>
<groupId>org.richfaces</groupId>
- <version>1.1.1-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces</groupId>
@@ -33,9 +33,9 @@
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.richfaces</groupId>
- <artifactId>ajax4jsf</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.trinidad</groupId>
Modified: tags/3.1.0/framework/impl/pom.xml
===================================================================
--- tags/3.1.0/framework/impl/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/framework/impl/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -1,12 +1,4 @@
<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/maven-v4_0_0.xsd">
- <!--
- <parent>
- <artifactId>impl-parent</artifactId>
- <groupId>org.richfaces.framework</groupId>
- <version>3.1.0-SNAPSHOT</version>
- <relativePath>../impl-parent/pom.xml</relativePath>
- </parent>
- -->
<parent>
<artifactId>framework</artifactId>
<groupId>org.richfaces</groupId>
Modified: tags/3.1.0/samples/ajaxPortlet/pom.xml
===================================================================
--- tags/3.1.0/samples/ajaxPortlet/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/ajaxPortlet/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -5,12 +5,12 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
<artifactId>portalAjaxSample</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<packaging>war</packaging>
<description>Ajax JSF sample portlet</description>
<build>
@@ -27,7 +27,7 @@
<dependency>
<groupId>org.richfaces.extensions</groupId>
<artifactId>portlet</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<exclusions>
<exclusion>
<groupId>javax.faces</groupId>
@@ -42,7 +42,7 @@
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
Modified: tags/3.1.0/samples/pom.xml
===================================================================
--- tags/3.1.0/samples/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -361,7 +361,7 @@
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<exclusions>
<exclusion>
<groupId>javax.faces</groupId>
Modified: tags/3.1.0/samples/portal-echo/pom.xml
===================================================================
--- tags/3.1.0/samples/portal-echo/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/portal-echo/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -5,13 +5,13 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
<artifactId>portal-echo</artifactId>
<packaging>war</packaging>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<description>Ajax JSF sample portlet</description>
<build>
<defaultGoal>package</defaultGoal>
Modified: tags/3.1.0/samples/richfaces-art-datatable/pom.xml
===================================================================
--- tags/3.1.0/samples/richfaces-art-datatable/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/richfaces-art-datatable/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -3,19 +3,19 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
<artifactId>richfaces-art-datatable</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<packaging>war</packaging>
<name>richfaces-art-datatableDemo Maven Webapp</name>
<dependencies>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
</dependencies>
<build>
Modified: tags/3.1.0/samples/richfaces-ear-demo/ejb/pom.xml
===================================================================
--- tags/3.1.0/samples/richfaces-ear-demo/ejb/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/richfaces-ear-demo/ejb/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -4,14 +4,14 @@
<parent>
<artifactId>richfaces-ear-demo</artifactId>
<groupId>org.richfaces.samples</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
<artifactId>ejb</artifactId>
<packaging>ejb</packaging>
<name>ejb</name>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
@@ -23,7 +23,7 @@
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<exclusions>
<exclusion>
<groupId>javax.faces</groupId>
Modified: tags/3.1.0/samples/richfaces-ear-demo/pom.xml
===================================================================
--- tags/3.1.0/samples/richfaces-ear-demo/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/richfaces-ear-demo/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -4,14 +4,14 @@
<parent>
<artifactId>root</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
<artifactId>richfaces-ear-demo</artifactId>
<name>JSF 1.2/Jee5 enterprise application demo</name>
<packaging>pom</packaging>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<build>
<pluginManagement>
<plugins>
Modified: tags/3.1.0/samples/richfaces-ear-demo/richfacesEAR/pom.xml
===================================================================
--- tags/3.1.0/samples/richfaces-ear-demo/richfacesEAR/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/richfaces-ear-demo/richfacesEAR/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -4,26 +4,26 @@
<parent>
<artifactId>richfaces-ear-demo</artifactId>
<groupId>org.richfaces.samples</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
<artifactId>richfacesEAR</artifactId>
<name>richfacesEAR</name>
<packaging>ear</packaging>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
<artifactId>ejb</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
<artifactId>webapp</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<type>war</type>
</dependency>
</dependencies>
Modified: tags/3.1.0/samples/richfaces-ear-demo/webapp/pom.xml
===================================================================
--- tags/3.1.0/samples/richfaces-ear-demo/webapp/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/richfaces-ear-demo/webapp/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -4,14 +4,14 @@
<parent>
<artifactId>richfaces-ear-demo</artifactId>
<groupId>org.richfaces.samples</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
<artifactId>webapp</artifactId>
<packaging>war</packaging>
<name>webapp Maven Webapp</name>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<url>http://maven.apache.org</url>
<build>
<finalName>webapp</finalName>
@@ -36,17 +36,17 @@
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -59,7 +59,7 @@
<dependency>
<groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
<artifactId>ejb</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<type>ejb-client</type>
</dependency>
<dependency>
Modified: tags/3.1.0/samples/scrollableDataTableDemo/pom.xml
===================================================================
--- tags/3.1.0/samples/scrollableDataTableDemo/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/scrollableDataTableDemo/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -4,34 +4,34 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>scrollableDataTableDemo</artifactId>
<groupId>org.richfaces.samples</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<packaging>war</packaging>
<name>scrollableDataTable Maven Webapp</name>
<dependencies>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>scrollableDataTable</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.samples</groupId>
<artifactId>skins</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>core</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>dataTable</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
</dependencies>
Modified: tags/3.1.0/samples/seamEAR/ear/pom.xml
===================================================================
--- tags/3.1.0/samples/seamEAR/ear/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamEAR/ear/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -6,18 +6,18 @@
<groupId>org.richfaces.samples.seamEAR</groupId>
<artifactId>ear</artifactId>
<packaging>ear</packaging>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<name>ear assembly</name>
<parent>
<groupId>org.richfaces.samples</groupId>
<artifactId>seamEAR</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<dependencies>
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<exclusions>
<exclusion>
<groupId>javax.faces</groupId>
Modified: tags/3.1.0/samples/seamEAR/ejbs/pom.xml
===================================================================
--- tags/3.1.0/samples/seamEAR/ejbs/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamEAR/ejbs/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -6,12 +6,12 @@
<groupId>org.richfaces.samples.seamEAR</groupId>
<artifactId>ejbs</artifactId>
<packaging>ejb</packaging>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<name>enterprise java beans</name>
<parent>
<groupId>org.richfaces.samples</groupId>
<artifactId>seamEAR</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<dependencies>
<dependency>
@@ -32,7 +32,7 @@
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<exclusions>
<exclusion>
<groupId>javax.faces</groupId>
Modified: tags/3.1.0/samples/seamEAR/pom.xml
===================================================================
--- tags/3.1.0/samples/seamEAR/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamEAR/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -6,12 +6,12 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
-->
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<artifactId>seamEAR</artifactId>
<packaging>pom</packaging>
<name>seam EAR project</name>
@@ -58,23 +58,23 @@
org.richfaces.samples.seamEAR.projects
</groupId>
<artifactId>logging</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.samples.seamEAR</groupId>
<artifactId>primary-source</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.samples.seamEAR.wars</groupId>
<artifactId>seamWebapp</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.richfaces.samples.seamEAR</groupId>
<artifactId>ejbs</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<type>ejb</type>
</dependency>
</dependencies>
Modified: tags/3.1.0/samples/seamEAR/primary-source/pom.xml
===================================================================
--- tags/3.1.0/samples/seamEAR/primary-source/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamEAR/primary-source/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.richfaces.samples</groupId>
<artifactId>seamEAR</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<dependencies>
<dependency>
Modified: tags/3.1.0/samples/seamEAR/projects/logging/pom.xml
===================================================================
--- tags/3.1.0/samples/seamEAR/projects/logging/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamEAR/projects/logging/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -7,6 +7,6 @@
<parent>
<groupId>org.richfaces.samples.seamEAR</groupId>
<artifactId>projects</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
</project>
Modified: tags/3.1.0/samples/seamEAR/projects/pom.xml
===================================================================
--- tags/3.1.0/samples/seamEAR/projects/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamEAR/projects/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -1,14 +1,14 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples.seamEAR</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<artifactId>projects</artifactId>
<packaging>pom</packaging>
<name>sub projects</name>
<parent>
<groupId>org.richfaces.samples</groupId>
<artifactId>seamEAR</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modules>
<module>logging</module>
Modified: tags/3.1.0/samples/seamEAR/wars/pom.xml
===================================================================
--- tags/3.1.0/samples/seamEAR/wars/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamEAR/wars/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -4,11 +4,11 @@
<artifactId>wars</artifactId>
<packaging>pom</packaging>
<name>wars</name>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<parent>
<groupId>org.richfaces.samples</groupId>
<artifactId>seamEAR</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modules>
<module>seamWebapp</module>
Modified: tags/3.1.0/samples/seamEAR/wars/seamWebapp/pom.xml
===================================================================
--- tags/3.1.0/samples/seamEAR/wars/seamWebapp/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamEAR/wars/seamWebapp/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.richfaces.samples.seamEAR</groupId>
<artifactId>wars</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<build>
<finalName>seamWebapp</finalName>
@@ -42,17 +42,17 @@
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Modified: tags/3.1.0/samples/seamIntegration/pom.xml
===================================================================
--- tags/3.1.0/samples/seamIntegration/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/seamIntegration/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -5,14 +5,14 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
<artifactId>seamIntegration</artifactId>
<packaging>war</packaging>
<name>seamIntegration Maven Webapp</name>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<build>
<finalName>seamIntegration</finalName>
<plugins>
Modified: tags/3.1.0/samples/tomahawkCompability/pom.xml
===================================================================
--- tags/3.1.0/samples/tomahawkCompability/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/tomahawkCompability/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
<artifactId>tomahawkCompability</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<packaging>war</packaging>
<name>tomahawkCompability Maven Webapp</name>
<properties>
Modified: tags/3.1.0/samples/useCases/pom.xml
===================================================================
--- tags/3.1.0/samples/useCases/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/useCases/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -5,12 +5,12 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
<artifactId>useCases</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<packaging>war</packaging>
<name>useCases Maven Webapp</name>
<build>
Modified: tags/3.1.0/samples/virtualEarth-sample/pom.xml
===================================================================
--- tags/3.1.0/samples/virtualEarth-sample/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/samples/virtualEarth-sample/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -4,19 +4,19 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.samples</groupId>
<artifactId>virtualEarth-sample</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<packaging>war</packaging>
<name>gmap-sample Maven Webapp</name>
<dependencies>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>virtualEarth</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
</dependencies>
<build>
Modified: tags/3.1.0/sandbox/samples/rich-message-demo/pom.xml
===================================================================
--- tags/3.1.0/sandbox/samples/rich-message-demo/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/sandbox/samples/rich-message-demo/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -2,7 +2,7 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces.sandbox</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.demo</groupId>
@@ -13,17 +13,17 @@
<dependency>
<groupId>org.richfaces.sandbox.ui</groupId>
<artifactId>message</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.samples</groupId>
<artifactId>skins</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
</dependencies>
Modified: tags/3.1.0/test-applications/facelets/pom.xml
===================================================================
--- tags/3.1.0/test-applications/facelets/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/test-applications/facelets/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -2,7 +2,7 @@
<parent>
<artifactId>test-applications</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: tags/3.1.0/test-applications/jsp/pom.xml
===================================================================
--- tags/3.1.0/test-applications/jsp/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/test-applications/jsp/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -2,7 +2,7 @@
<parent>
<artifactId>test-applications</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: tags/3.1.0/test-applications/pom.xml
===================================================================
--- tags/3.1.0/test-applications/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/test-applications/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -2,7 +2,7 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<relativePath>../samples</relativePath>
</parent>
@@ -43,11 +43,11 @@
<groupId>org.richfaces</groupId>
<artifactId>test-applications</artifactId>
<packaging>pom</packaging>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
<name>RichFaces Test Applications</name>
<properties>
- <rfVersion>3.1.0-SNAPSHOT</rfVersion>
+ <rfVersion>3.1.0</rfVersion>
</properties>
<modules>
Modified: tags/3.1.0/ui/dataTable/pom.xml
===================================================================
--- tags/3.1.0/ui/dataTable/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/ui/dataTable/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -45,7 +45,7 @@
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui-core</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
-->
</dependencies>
Modified: tags/3.1.0/ui/drag-drop/pom.xml
===================================================================
--- tags/3.1.0/ui/drag-drop/pom.xml 2007-09-12 22:15:32 UTC (rev 2921)
+++ tags/3.1.0/ui/drag-drop/pom.xml 2007-09-12 22:58:28 UTC (rev 2922)
@@ -45,7 +45,7 @@
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui-core</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.0</version>
</dependency>
-->
</dependencies>
18 years, 7 months
JBoss Rich Faces SVN: r2921 - in tags/3.1.0/samples/richfaces-demo/src/main: java/org/richfaces/demo and 30 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-09-12 18:15:32 -0400 (Wed, 12 Sep 2007)
New Revision: 2921
Added:
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java
tags/3.1.0/samples/richfaces-demo/src/main/webapp/images/cn_recursiveTreeNodesAdaptor.gif
tags/3.1.0/samples/richfaces-demo/src/main/webapp/images/cn_treeNodesAdaptor.gif
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/reRender2.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml
Removed:
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml
Modified:
tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
tags/3.1.0/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
tags/3.1.0/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/css/common.css
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/extendedDataModel.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/usage.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/usage.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panel/look-customization.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelBar/examples/example.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/style/usage.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/look-customization.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simple-tree-data.properties
tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
tags/3.1.0/samples/richfaces-demo/src/main/webapp/welcome.xhtml
Log:
merge demo from trunk
Modified: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -127,6 +127,9 @@
public List getRichMenu() {
return getFilteredComponents("richMenu");
}
+ public List getRichTree() {
+ return getFilteredComponents("richTree");
+ }
public List getRichInputs() {
return getFilteredComponents("richInputs");
}
Copied: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu (from rev 2920, trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu)
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,38 +0,0 @@
-package org.richfaces.demo.pmenu;
-
-import javax.faces.context.FacesContext;
-import javax.faces.event.ActionEvent;
-
-import org.richfaces.component.UIPanelMenuItem;
-
-public class PanelMenu {
- private String current;
- private boolean singleMode;
- public boolean isSingleMode() {
- return singleMode;
- }
-
- public void setSingleMode(boolean singleMode) {
- this.singleMode = singleMode;
- }
-
- public PanelMenu() {
- }
-
- public String getCurrent() {
- return this.current;
- }
-
- public void setCurrent(String current) {
- this.current = current;
- }
- public String updateCurrent() {
- FacesContext context=FacesContext.getCurrentInstance();
- setCurrent(context.getExternalContext().getRequestParameterMap().get("current"));
- System.out.println("fake called.");
- return null;
- }
- public void updateCurrent(ActionEvent event) {
- setCurrent(((UIPanelMenuItem)event.getComponent()).getLabel().toString());
- }
-}
Copied: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java (from rev 2920, trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/demo/pmenu/PanelMenu.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,38 @@
+package org.richfaces.demo.pmenu;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.UIPanelMenuItem;
+
+public class PanelMenu {
+ private String current;
+ private boolean singleMode;
+ public boolean isSingleMode() {
+ return singleMode;
+ }
+
+ public void setSingleMode(boolean singleMode) {
+ this.singleMode = singleMode;
+ }
+
+ public PanelMenu() {
+ }
+
+ public String getCurrent() {
+ return this.current;
+ }
+
+ public void setCurrent(String current) {
+ this.current = current;
+ }
+ public String updateCurrent() {
+ FacesContext context=FacesContext.getCurrentInstance();
+ setCurrent(context.getExternalContext().getRequestParameterMap().get("current"));
+ System.out.println("fake called.");
+ return null;
+ }
+ public void updateCurrent(ActionEvent event) {
+ setCurrent(((UIPanelMenuItem)event.getComponent()).getLabel().toString());
+ }
+}
Copied: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor (from rev 2920, trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor)
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,16 +0,0 @@
-package org.richfaces.treemodeladaptor;
-
-
-public class FileSystemBean {
- private static String SRC_PATH = "/WEB-INF/src";
-
- private FileSystemNode[] srcRoots;
-
- public synchronized FileSystemNode[] getSourceRoots() {
- if (srcRoots == null) {
- srcRoots = new FileSystemNode(SRC_PATH).getNodes();
- }
-
- return srcRoots;
- }
-}
Copied: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java (from rev 2920, trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,16 @@
+package org.richfaces.treemodeladaptor;
+
+
+public class FileSystemBean {
+ private static String SRC_PATH = "/WEB-INF/src";
+
+ private FileSystemNode[] srcRoots;
+
+ public synchronized FileSystemNode[] getSourceRoots() {
+ if (srcRoots == null) {
+ srcRoots = new FileSystemNode(SRC_PATH).getNodes();
+ }
+
+ return srcRoots;
+ }
+}
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,55 +0,0 @@
-package org.richfaces.treemodeladaptor;
-
-import java.util.Set;
-
-import javax.faces.context.ExternalContext;
-import javax.faces.context.FacesContext;
-
-public class FileSystemNode {
- private String path;
-
- private static FileSystemNode[] CHILDREN_ABSENT = new FileSystemNode[0];
-
- private FileSystemNode[] children;
-
- private String shortPath;
-
- public FileSystemNode(String path) {
- this.path = path;
- int idx = path.lastIndexOf('/');
- if (idx != -1) {
- shortPath = path.substring(idx + 1);
- } else {
- shortPath = path;
- }
- }
-
- public synchronized FileSystemNode[] getNodes() {
- if (children == null) {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- ExternalContext externalContext = facesContext.getExternalContext();
- Set resourcePaths = externalContext.getResourcePaths(this.path);
- if (resourcePaths != null) {
- Object[] nodes = (Object[]) resourcePaths.toArray();
- children = new FileSystemNode[nodes.length];
-
- for (int i = 0; i < nodes.length; i++) {
- String nodePath = nodes[i].toString();
- if (nodePath.endsWith("/")) {
- nodePath = nodePath.substring(0, nodePath.length() - 1);
- }
- children[i] = new FileSystemNode(nodePath);
- }
- } else {
- children = CHILDREN_ABSENT;
- }
- }
-
- return children;
- }
-
- public String toString() {
- return shortPath;
- }
-
-}
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java (from rev 2920, trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,55 @@
+package org.richfaces.treemodeladaptor;
+
+import java.util.Set;
+
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+
+public class FileSystemNode {
+ private String path;
+
+ private static FileSystemNode[] CHILDREN_ABSENT = new FileSystemNode[0];
+
+ private FileSystemNode[] children;
+
+ private String shortPath;
+
+ public FileSystemNode(String path) {
+ this.path = path;
+ int idx = path.lastIndexOf('/');
+ if (idx != -1) {
+ shortPath = path.substring(idx + 1);
+ } else {
+ shortPath = path;
+ }
+ }
+
+ public synchronized FileSystemNode[] getNodes() {
+ if (children == null) {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ ExternalContext externalContext = facesContext.getExternalContext();
+ Set resourcePaths = externalContext.getResourcePaths(this.path);
+ if (resourcePaths != null) {
+ Object[] nodes = (Object[]) resourcePaths.toArray();
+ children = new FileSystemNode[nodes.length];
+
+ for (int i = 0; i < nodes.length; i++) {
+ String nodePath = nodes[i].toString();
+ if (nodePath.endsWith("/")) {
+ nodePath = nodePath.substring(0, nodePath.length() - 1);
+ }
+ children[i] = new FileSystemNode(nodePath);
+ }
+ } else {
+ children = CHILDREN_ABSENT;
+ }
+ }
+
+ return children;
+ }
+
+ public String toString() {
+ return shortPath;
+ }
+
+}
\ No newline at end of file
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,41 +0,0 @@
-package org.richfaces.treemodeladaptor;
-
-import java.util.Map;
-
-import javax.faces.context.ExternalContext;
-import javax.faces.context.FacesContext;
-import javax.faces.event.PhaseEvent;
-import javax.faces.event.PhaseId;
-import javax.faces.event.PhaseListener;
-
-public class PostbackPhaseListener implements PhaseListener {
-
- public static final String POSTBACK_ATTRIBUTE_NAME = PostbackPhaseListener.class.getName();
-
- public void afterPhase(PhaseEvent event) {
- }
-
- public void beforePhase(PhaseEvent event) {
- FacesContext facesContext = event.getFacesContext();
- Map requestMap = facesContext.getExternalContext().getRequestMap();
- requestMap.put(POSTBACK_ATTRIBUTE_NAME, Boolean.TRUE);
- }
-
- public PhaseId getPhaseId() {
- return PhaseId.APPLY_REQUEST_VALUES;
- }
-
- public static boolean isPostback() {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- if (facesContext != null) {
- ExternalContext externalContext = facesContext.getExternalContext();
- if (externalContext != null) {
- return Boolean.TRUE.equals(
- externalContext.getRequestMap().get(POSTBACK_ATTRIBUTE_NAME));
- }
- }
-
- return false;
- }
-
-}
Copied: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java (from rev 2920, trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,41 @@
+package org.richfaces.treemodeladaptor;
+
+import java.util.Map;
+
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+import javax.faces.event.PhaseListener;
+
+public class PostbackPhaseListener implements PhaseListener {
+
+ public static final String POSTBACK_ATTRIBUTE_NAME = PostbackPhaseListener.class.getName();
+
+ public void afterPhase(PhaseEvent event) {
+ }
+
+ public void beforePhase(PhaseEvent event) {
+ FacesContext facesContext = event.getFacesContext();
+ Map requestMap = facesContext.getExternalContext().getRequestMap();
+ requestMap.put(POSTBACK_ATTRIBUTE_NAME, Boolean.TRUE);
+ }
+
+ public PhaseId getPhaseId() {
+ return PhaseId.APPLY_REQUEST_VALUES;
+ }
+
+ public static boolean isPostback() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ if (facesContext != null) {
+ ExternalContext externalContext = facesContext.getExternalContext();
+ if (externalContext != null) {
+ return Boolean.TRUE.equals(
+ externalContext.getRequestMap().get(POSTBACK_ATTRIBUTE_NAME));
+ }
+ }
+
+ return false;
+ }
+
+}
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,25 +0,0 @@
-package org.richfaces.treemodeladaptor;
-
-import org.richfaces.component.UITree;
-import org.richfaces.component.state.TreeStateAdvisor;
-import org.richfaces.model.TreeRowKey;
-
-public class TreeDemoStateAdvisor implements TreeStateAdvisor {
-
- public Boolean adviseNodeOpened(UITree tree) {
- if (!PostbackPhaseListener.isPostback()) {
- Object key = tree.getRowKey();
- TreeRowKey treeRowKey = (TreeRowKey) key;
- if (treeRowKey == null || treeRowKey.depth() <= 2) {
- return Boolean.TRUE;
- }
- }
-
- return null;
- }
-
- public Boolean adviseNodeSelected(UITree tree) {
- return null;
- }
-
-}
Copied: tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java (from rev 2920, trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,25 @@
+package org.richfaces.treemodeladaptor;
+
+import org.richfaces.component.UITree;
+import org.richfaces.component.state.TreeStateAdvisor;
+import org.richfaces.model.TreeRowKey;
+
+public class TreeDemoStateAdvisor implements TreeStateAdvisor {
+
+ public Boolean adviseNodeOpened(UITree tree) {
+ if (!PostbackPhaseListener.isPostback()) {
+ Object key = tree.getRowKey();
+ TreeRowKey treeRowKey = (TreeRowKey) key;
+ if (treeRowKey == null || treeRowKey.depth() <= 2) {
+ return Boolean.TRUE;
+ }
+ }
+
+ return null;
+ }
+
+ public Boolean adviseNodeSelected(UITree tree) {
+ return null;
+ }
+
+}
Modified: tags/3.1.0/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-09-12 22:15:32 UTC (rev 2921)
@@ -24,9 +24,9 @@
dropSupport= richDragDrop, Drop Support, /images/ico_DropSupport.gif, /images/cn_DropSupport.gif, RichFacesComponentsLibrary.html#dropSupport, jbossrichfaces/freezone/docs/tlddoc/rich/dropSupport.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDropSupport.html, /richfaces/dragSupport.jsf
dndParam= richDragDrop, Drag-Drop Parameter, /images/ico_DropSupport.gif, /images/cn_DragDropParameter.gif, RichFacesComponentsLibrary.html#dndParam, jbossrichfaces/freezone/docs/tlddoc/rich/dndParam.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDndParam.html, /richfaces/dragSupport.jsf
panelBar= richOutputs, Panel Bar, /images/ico_PanelBar.gif, /images/cn_PanelBar.gif, RichFacesComponentsLibrary.html#panelBar, jbossrichfaces/freezone/docs/tlddoc/rich/panelBar.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIPanelBar.html, /richfaces/panelBar.jsf
-tree= richOutputs, Tree, /images/ico_Tree.gif, /images/cn_tree.gif, RichFacesComponentsLibrary.html#tree, jbossrichfaces/freezone/docs/tlddoc/rich/tree.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UITree.html, /richfaces/tree.jsf
modalPanel= richOutputs, Modal Panel, /images/ico_ModalPanel.gif, /images/cn_ModalPanel.gif, RichFacesComponentsLibrary.html#modalPanel, jbossrichfaces/freezone/docs/tlddoc/rich/modalPanel.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIModalPanel.html, /richfaces/modalPanel.jsf
togglePanel= richOutputs, Toggle Panel, /images/ico_TogglePanel.gif, /images/cn_TogglePanel.gif, RichFacesComponentsLibrary.html#togglePanel, jbossrichfaces/freezone/docs/tlddoc/rich/togglePanel.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UITogglePanel.html, /richfaces/togglePanel.jsf
+panelMenu= richOutputs, Panel Menu, /images/ico_panelMenu.gif, /images/cn_PanelMenu.gif, RichFacesComponentsLibrary.html#panelMenu, jbossrichfaces/freezone/docs/tlddoc/rich/panelMenu.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIPanelMenu.html, /richfaces/panelMenu.jsf
suggestionBox= richInputs, Suggestion Box, /images/ico_SuggestionBox.gif, /images/cn_SuggestionBox.gif, RichFacesComponentsLibrary.html#suggestionbox, jbossrichfaces/freezone/docs/tlddoc/rich/suggestionbox.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UISuggestionBox.html, /richfaces/suggestionBox.jsf
dataTableScroller= richDataIterators, Data Table Scroller, /images/ico_DataTableScroller.gif, /images/cn_DataTableScroller.gif, RichFacesComponentsLibrary.html#datascroller, jbossrichfaces/freezone/docs/tlddoc/rich/datascroller.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDatascroller.html, /richfaces/dataTableScroller.jsf
dropDownMenu= richMenu, Drop Down Menu, /images/ico_dropDownMenu.gif, /images/cn_DropDownMenu.gif, RichFacesComponentsLibrary.html#dropDownMenu, jbossrichfaces/freezone/docs/tlddoc/rich/dropDownMenu.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDropDownMenu.html, /richfaces/dropDownMenu.jsf
@@ -38,7 +38,10 @@
messages= richMisc, Messages, /images/ico_common.gif, /images/cn_Messages.gif, RichFacesComponentsLibrary.html#messages, jbossrichfaces/freezone/docs/tlddoc/rich/messages.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIMessages.html, /richfaces/messages.jsf
virtualEarth= richMisc, Virtual Earth, /images/ico_VirtualEarth.gif, /images/cn_VirtualEarth.gif, RichFacesComponentsLibrary.html#virtualEarth, jbossrichfaces/freezone/docs/tlddoc/rich/virtualEarth.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIVirtualEarth.html, /richfaces/virtualEarth.jsf
insert= richMisc, Insert, /images/ico_common.gif, /images/cn_insert.gif, RichFacesComponentsLibrary.html#insert, jbossrichfaces/freezone/docs/tlddoc/rich/insert.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIInsert.html, /richfaces/insert.jsf
-scrollableDataTable= richDataIterators, Scrollable Data Table, /images/ico_common.gif, /images/cn_ScrollableDataTable.gif, RichFacesComponentsLibrary.html#scrollableDataTable, jbossrichfaces/freezone/docs/tlddoc/rich/scrollableDataTable, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIscrollableDataTable.html, /richfaces/scrollableDataTable.jsf
+scrollableDataTable= richDataIterators, Scrollable Data Table, /images/ico_common.gif, /images/cn_ScrollableDataTable.gif, RichFacesComponentsLibrary.html#scrollableDataTable, jbossrichfaces/freezone/docs/tlddoc/rich/scrollableDataTable.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIScrollableDataTable.html, /richfaces/scrollableDataTable.jsf
+tree= richTree, Tree, /images/ico_Tree.gif, /images/cn_tree.gif, RichFacesComponentsLibrary.html#tree, jbossrichfaces/freezone/docs/tlddoc/rich/tree.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UITree.html, /richfaces/tree.jsf
+treeNodesAdaptor= richTree, Tree Adaptor, /images/ico_Tree.gif, /images/cn_treeNodesAdaptor.gif, RichFacesComponentsLibrary.html#treeNodesAdaptor, jbossrichfaces/freezone/docs/tlddoc/rich/treeNodesAdaptor.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UITreeNodesAdaptor.html, /richfaces/treeNodesAdaptor.jsf
+recursiveTreeNodesAdaptor= richTree, Recursive Tree Adaptor, /images/ico_Tree.gif, /images/cn_recursiveTreeNodesAdaptor.gif, RichFacesComponentsLibrary.html#recursiveTreeNodesAdaptor, jbossrichfaces/freezone/docs/tlddoc/rich/recursiveTreeNodesAdaptor.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIRecursiveTreeNodesAdaptor.html, /richfaces/treeNodesAdaptor.jsf
ajaxattributes= ajaxSupport, Ajax Attributes, /images/ico_common.gif, /images/cn_ajaxAttributes.gif, ArchitectureOverview.html, jbossajax4jsf/freezone/docs/tlddoc/overview-summary.html, jbossajax4jsf/freezone/docs/apidoc/overview-summary.html, /richfaces/ajaxAttributes.jsf
actionparam= ajaxSupport, Action Parameter, /images/ico_common.gif, /images/cn_actionParameter.gif, RichFacesComponentsLibrary.html#actionparam, jbossajax4jsf/freezone/docs/tlddoc/a4j/actionparam.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIActionParameter.html, /richfaces/actionparam.jsf
commandButton= ajaxSupport, Command Button, /images/ico_common.gif, /images/cn_commandButton.gif, RichFacesComponentsLibrary.html#commandButton, jbossajax4jsf/freezone/docs/tlddoc/a4j/commandButton.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxCommandButton.html, /richfaces/commandButton.jsf
@@ -63,4 +66,4 @@
log= ajaxMisc, Log, /images/ico_common.gif, /images/cn_Log.gif, RichFacesComponentsLibrary.html#log, jbossajax4jsf/freezone/docs/tlddoc/a4j/log.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxLog.html, /richfaces/log.jsf
page= ajaxMisc, Ajax Page, /images/ico_common.gif, /images/cn_AjaxPage.gif, RichFacesComponentsLibrary.html#page, jbossajax4jsf/freezone/docs/tlddoc/a4j/page.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxRegion.html, /richfaces/page.jsf
portlet= ajaxMisc, Ajax Portlet, /images/ico_common.gif, /images/cn_AjaxPortlet.gif, RichFacesComponentsLibrary.html#portlet, jbossajax4jsf/freezone/docs/tlddoc/a4j/portlet.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPortlet.html, /richfaces/portlet.jsf
-effect= richMisc, Effect, /images/ico_common.gif, /images/cn_Effect.gif, ArchitectureOverview.html, jbossrichfaces/freezone/docs/tlddoc/overview-summary.html, jbossrichfaces/freezone/docs/apidoc/overview-summary.html, /richfaces/effect.jsf
+effect= richMisc, Effect, /images/ico_common.gif, /images/cn_Effect.gif, RichFacesComponentsLibrary.html#effect, jbossrichfaces/freezone/docs/tlddoc/effect.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIeffect.html, /richfaces/effect.jsf
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -160,16 +160,26 @@
</managed-property>
</managed-bean>
<managed-bean>
- <managed-bean-name>simpleTreeBean</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.tree.SimpleTreeBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
+ <managed-bean-name>treeDemoStateAdvisor</managed-bean-name>
+ <managed-bean-class>org.richfaces.treemodeladaptor.TreeDemoStateAdvisor</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
<managed-bean>
- <managed-bean-name>library</managed-bean-name>
- <managed-bean-class>org.richfaces.demo.tree.Library</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
+ <managed-bean-name>fileSystemBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.treemodeladaptor.FileSystemBean</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
+ <managed-bean-name>simpleTreeBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.tree.SimpleTreeBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>library</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.tree.Library</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
<managed-bean-name>dndBean</managed-bean-name>
<managed-bean-class>org.richfaces.demo.dnd.DndBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
@@ -234,6 +244,21 @@
<managed-bean-class>org.richfaces.datatable.UpdateBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>panelMenu</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.pmenu.PanelMenu</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>current</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>Nothing</value>
+ </managed-property>
+ <managed-property>
+ <property-name>singleMode</property-name>
+ <property-class>java.lang.Boolean</property-class>
+ <value>true</value>
+ </managed-property>
+ </managed-bean>
<navigation-rule>
<from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
<navigation-case>
@@ -258,5 +283,8 @@
<from-outcome>previous</from-outcome>
<to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
</navigation-case>
- </navigation-rule>
+ </navigation-rule>
+ <lifecycle>
+ <phase-listener>org.richfaces.treemodeladaptor.PostbackPhaseListener</phase-listener>
+ </lifecycle>
</faces-config>
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/css/common.css
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/css/common.css 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/css/common.css 2007-09-12 22:15:32 UTC (rev 2921)
@@ -198,7 +198,11 @@
}
.ico{
cursor : pointer;
- padding:1px 3px 1px 3px;
+ padding-top:1px;
+ padding-right:3px;
+ padding-bottom:1px;
+ padding-left:3px;
+
}
.component_name{
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/images/cn_recursiveTreeNodesAdaptor.gif (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/images/cn_recursiveTreeNodesAdaptor.gif)
===================================================================
(Binary files differ)
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/images/cn_treeNodesAdaptor.gif (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/images/cn_treeNodesAdaptor.gif)
===================================================================
(Binary files differ)
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets)
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1 +0,0 @@
-<a4j:commandButton value="Update" data="#{userBean.name}" oncomplete="showTheName(data.name)" />
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/data.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1 @@
+<a4j:commandButton value="Update" data="#{userBean.name}" oncomplete="showTheName(data.name)" />
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,3 +0,0 @@
-<h:inputText value="#{userBean.name}">
- <a4j:support event="onkeyup" eventsQueue="foo" reRender="bar" />
-</h:inputText>
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/eventqueue.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,3 @@
+<h:inputText value="#{userBean.name}">
+ <a4j:support event="onkeyup" eventsQueue="foo" reRender="bar" />
+</h:inputText>
\ No newline at end of file
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,3 +0,0 @@
-<a4j:outputPanel ajaxRendered="true">
- <h:messages />
-</a4j:outputPanel>
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender1.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,3 @@
+<a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+</a4j:outputPanel>
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,7 +0,0 @@
-...
-<a4j:commandButton value="update" reRender="infoBlock"/>
- ....
-<h:panelGrid id="infoBlock">
- .....
-</h:panelGrid>
-.....
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender2.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,7 @@
+...
+<a4j:commandButton value="update" reRender="infoBlock"/>
+ ....
+<h:panelGrid id="infoBlock">
+ .....
+</h:panelGrid>
+.....
\ No newline at end of file
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,17 +0,0 @@
-.....
-<h:form id="form1">
- ....
- <a4j:commandButton value="Usual Way" reRender="infoBlock, infoBlock2" />
- <a4j:commandButton value="Shortcut" reRender=":infoBlockl,:sv:infoBlock2" />
- .....
-</h:form>
-<h:panelGrid id="infoBlock">
- .....
-</h:panelGrid>
-.....
-<f:subview id="sv">
- <h:panelGrid id="infoBlock2">
- .....
- </h:panelGrid>
- .....
-</f:subview>
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/snippets/reRender3.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,17 @@
+.....
+<h:form id="form1">
+ ....
+ <a4j:commandButton value="Usual Way" reRender="infoBlock, infoBlock2" />
+ <a4j:commandButton value="Shortcut" reRender=":infoBlockl,:sv:infoBlock2" />
+ .....
+</h:form>
+<h:panelGrid id="infoBlock">
+ .....
+</h:panelGrid>
+.....
+<f:subview id="sv">
+ <h:panelGrid id="infoBlock2">
+ .....
+ </h:panelGrid>
+ .....
+</f:subview>
\ No newline at end of file
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/ajaxAttributes/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -7,6 +7,21 @@
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
+ <style>
+ .viewsourcepanel {
+ padding-bottom:0px;
+ width:100%;
+ overflow:auto;
+ border-width:0;
+ background-color:#FFFFE7;
+ }
+ .viewsourcebody {
+ padding:0;
+ }
+ ol{
+ font-size:12px !important;
+ }
+ </style>
<p>This section overviews the attributes that are common for Ajax components
such as a4j:support, a4j:commandButton, a4j:jsFunction, a4j:poll, a4j:push and so
@@ -26,17 +41,9 @@
attribute is an id of the JSF component or an id list. This is a simple example:
</p>
- <div class="esample">
- <pre>
-...
-<a4j:commandButton value="update" reRender="<b>infoBlock</b>" />
-....
-<h:panelGrid id="<b>infoBlock</b>">
-.....
-</h:panelGrid>
-.....
- </pre>
- </div>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert src="/richfaces/ajaxAttributes/snippets/reRender2.xhtml" highlight="xhtml"></rich:insert>
+ </rich:panel>
<p>
reRender uses <a target="_blank" href="http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/javax/faces/c...">
UIComponent.findComponent()</a> algorithm (with some additional exceptions)
@@ -46,28 +53,9 @@
found mentioning it more precisely. The following example shows the difference
in approaches (both buttons will work successfully):
</p>
- <div class="esample">
- <pre>
-.....
-<h:form id="form1">
- ....
- <a4j:commandButton value="Usual Way" reRender="<b>infoBlock</b>, <b>infoBlock2</b>" />
- <a4j:commandButton value="Shortcut" reRender="<b>:infoBlockl</b>,<b>:sv:infoBlock2</b>" />
-.....
-</h:form>
-<h:panelGrid id="<b>infoBlock</b>">
-.....
-</h:panelGrid>
-.....
-<f:subview id="<b>sv</b>">
-<h:panelGrid id="<b>infoBlock2</b>">
-.....
-</h:panelGrid>
-.....
-</f:subview>
- </pre>
- </div>
-
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert src="/richfaces/ajaxAttributes/snippets/reRender3.xhtml" highlight="xhtml"></rich:insert>
+ </rich:panel>
<p>
You can use JSF EL expression as a value of the reRender attribute. It might be a property of
types Set, Collection, Array or simple String. The EL for reRender is resolved right before the
@@ -88,14 +76,10 @@
explicitly. It might be useful if you have an area on a page that should be updated as a
response on any Ajax request. For example, the following code allows to output error
messages regardless of what Ajax request causes the Validation phase failed.
- </p>
- <div class="esample">
- <pre>
-<a4j:outputPanel <b>ajaxRendered="true"</b>>
- <h:messages />
-</a4j:outputPanel>
- </pre>
- </div>
+ </p>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert src="/richfaces/ajaxAttributes/snippets/reRender1.xhtml" highlight="xhtml"></rich:insert>
+ </rich:panel>
<p>
<b>limitToList</b> attribute allows to dismiss the behavior of the a4j:outputPanel ajaxRendered
attribute. limitToList = "false" means to update only the area(s) that mentioned in the
@@ -119,14 +103,10 @@
the requests produced by the same event. For example, according to the following code,
only the newest request will be sent to the server if a user types very fast and has typed
the several characters already before the previous Ajax Response is back.
- </p>
-<div class="esample">
- <pre>
-<h:inputText value="<span>#</span>{userBean.name}">
- <a4j:support event="onkeyup" <b>eventsQueue="foo"</b> reRender="bar" />
-</h:inputText>
- </pre>
- </div>
+ </p>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert src="/richfaces/ajaxAttributes/snippets/eventqueue.xhtml" highlight="xhtml"></rich:insert>
+ </rich:panel>
<p><b>requestDelay</b> attribute defines the time (in ms.) that the request will be wait in
the queue before it is ready to send. When the delay time is over, the request will be
sent to the server or removed if the newest 'similar' request is in a queue already .
@@ -200,7 +180,7 @@
the Validation phase is passed successfully, you can replace h:commandButton with a4j:commandButton
and point to the action method that navigates to the next page. If Validation process fails,
the partial page update will occur and a user will see an error message. Otherwize, the application
- proceeds to the next page. Make sure, you define <redirect /%gt; option for the navigation rule to
+ proceeds to the next page. Make sure, you define <redirect /> option for the navigation rule to
avoid memory leaks.
</li>
</ol>
@@ -237,11 +217,9 @@
will be serialized in JSON format and be available on the client side. You can refer
to it using the 'data' variable. For example:
</p>
- <div class="esample">
- <pre>
-<a4j:commandButton value="Update" data="<span>#</span>{userBean.name}" oncomplete="showTheName(data.name)" />
- </pre>
- </div>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert src="/richfaces/ajaxAttributes/snippets/data.xhtml" highlight="xhtml"></rich:insert>
+ </rich:panel>
<p>
Richfaces allows to serialize not only primitive types into JSON format, but also complex
types including arrays and collections. The beans should be serializable to be refered
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/reRender2.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/reRender2.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/reRender2.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/reRender2.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,7 @@
+...
+<a4j:commandButton value="update" reRender="infoBlock"/>
+ ....
+<h:panelGrid id="<b>infoBlock</b>">
+ .....
+</h:panelGrid>
+.....
\ No newline at end of file
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/extendedDataModel.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/extendedDataModel.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/examples/extendedDataModel.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -4,11 +4,30 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <rich:messages />
+
+ <style type="text/css">
+ .rich-message-label {
+ color:red;
+ }
+ .col1 {
+ width:240px;
+ }
+ .col2 {
+ width:80px;
+ }
+ .col4 {
+ width:80px;
+ }
+ </style>
+
+
+
+
<h:form>
<rich:datascroller for="auction" maxPages="5"/>
<rich:spacer height="30" />
- <rich:dataTable id="auction" value="#{auctionDataModel}" var="item" rows="10">
+ <rich:dataTable id="auction" value="#{auctionDataModel}" columnClasses="col1,col2,col3,col4"
+ var="item" rows="10" width="100%">
<rich:column>
<f:facet name="header">
<h:outputText value="Description"/>
@@ -27,12 +46,14 @@
<f:facet name="header">
<h:outputText value="Your Bid"/>
</f:facet>
- <h:inputText id="bid" value="#{item.bid}">
+
+ <rich:message for="bid" /><br/>
+ <h:inputText id="bid" value="#{item.bid}" label="Bid">
<f:convertNumber />
+ <f:validateLongRange minimum = "0" maximum = "1000000"/>
</h:inputText>
<a4j:commandLink id="bid_link" actionListener="#{item.placeBid}" value="Place a bid!" reRender="bid,amount,highestBid" />
- <rich:message for="bid_link" />
- <rich:message for="bid" />
+
</rich:column>
<rich:column>
<f:facet name="header">
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -9,6 +9,17 @@
<ui:define name="sample">
<style type="text/css">
+ .viewsourcepanel {
+ padding-bottom:0px;
+ width:100%;
+ overflow:auto;
+ border-width:0;
+ background-color:#FFFFE7;
+ }
+ .viewsourcebody {
+ padding:0;
+ }
+
input[type="button"], input[type="submit"] {
background-color:#{a4jSkin.trimColor};
}
@@ -30,7 +41,9 @@
when user clicks this link later. The example of problematic code is below. To fix the code,
you need to replace h:form with a4j:form and h:commandLink with a4j:htmlCommandLink.
- <rich:insert src="/richfaces/form/snippets/commandLinkProblem.xhtml" highlight="xhtml"/>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert src="/richfaces/form/snippets/commandLinkProblem.xhtml" highlight="xhtml"/>
+ </rich:panel>
</p>
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/usage.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -7,7 +7,22 @@
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
+ <style type="text/css">
+ .viewsourcepanel {
+ padding-bottom:0px;
+ width:100%;
+ overflow:auto;
+ border-width:0;
+ background-color:#FFFFE7;
+ }
+ .viewsourcebody {
+ padding:0;
+ }
+ input[type="button"], input[type="submit"] {
+ background-color:#{a4jSkin.trimColor};
+ }
+ </style>
<p>a4j:htmlCommandLink functionality is similar to the standard h:commandLink component except the additional feature.
</p>
@@ -22,7 +37,9 @@
then updated via Ajax. Such problems could be solved with the a4j:htmlCommandLink usage. Necessary fields are encoded
even when the link is not rendered initially. Hence it may be Ajax updated and parameters work correctly.
</p>
- <rich:insert highlight="xhtml" src="/richfaces/htmlCommandLink/snippets/commandLinkProblem.xhtml"></rich:insert>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert highlight="xhtml" src="/richfaces/htmlCommandLink/snippets/commandLinkProblem.xhtml"></rich:insert>
+ </rich:panel>
</ui:define>
</ui:composition>
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets)
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,8 +0,0 @@
-<html>
- <head>
- <!--...Head Content here-->
- </head>
- <body>
- <!--...Page Content Here-->
- </body>
-</html>
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/gen.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <!--...Head Content here-->
+ </head>
+ <body>
+ <!--...Page Content Here-->
+ </body>
+</html>
\ No newline at end of file
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,8 +0,0 @@
-<f:view>
- <a4j:page>
- <f:facet name="head">
- <!--...Head Content here-->
- </f:facet>
- <!--...Page Content here-->
- </a4j:page>
-</f:view>
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/snippets/page.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,8 @@
+<f:view>
+ <a4j:page>
+ <f:facet name="head">
+ <!--...Head Content here-->
+ </f:facet>
+ <!--...Page Content here-->
+ </a4j:page>
+</f:view>
\ No newline at end of file
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/usage.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/page/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -7,6 +7,22 @@
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
+ <style type="text/css">
+ .viewsourcepanel {
+ padding-bottom:0px;
+ width:100%;
+ overflow:auto;
+ border-width:0;
+ background-color:#FFFFE7;
+ }
+ .viewsourcebody {
+ padding:0;
+ }
+
+ input[type="button"], input[type="submit"] {
+ background-color:#{a4jSkin.trimColor};
+ }
+ </style>
<p>
<b><a4j:page></b> is a deprecated component used for solving of incompatibility
problems in early Ajax4jsf and MyFaces versions.
@@ -19,29 +35,15 @@
<p>
This component should be defined as a child component for <f:view> For example:
</p>
- <p>
-<pre><f:view>
- <a4j:page>
- <f:facet name="head">
- <!--...Head Content here-->
- </f:facet>
- <!--...Page Content here-->
- </a4j:page>
-</f:view></pre>
- </p>
- <p>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert src="/richfaces/page/snippets/page.xhtml" highlight="xhtml"></rich:insert>
+ </rich:panel>
+ <p>
Will be rendered as:
</p>
- <p>
-<pre><HTML>
- <HEAD>
- <!--...Head Content here-->
- </HEAD>
-<body >
- <!--...Page Content Here-->
-</body>
-</HTML></pre>
- </p>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert src="/richfaces/page/snippets/gen.xhtml" highlight="xhtml"></rich:insert>
+ </rich:panel>
</ui:define>
</ui:composition>
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panel/look-customization.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panel/look-customization.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panel/look-customization.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -7,7 +7,7 @@
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
<p>
- This is a demo of stylesheets usage and skinability features to adjust a panel look.
+ This is a demo of stylesheets usage and skinnability features to adjust a panel look.
</p>
<ui:include src="/richfaces/panel/examples/lookCustom.xhtml"/>
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelBar/examples/example.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelBar/examples/example.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelBar/examples/example.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -22,7 +22,7 @@
Resource framework can generate images on-the-fly so that it becomes possible to create images using the familiar approach of the Java graphic2D library.
</rich:panelBarItem>
<rich:panelBarItem label="Create a modern rich user interface look-and-feel with skins-based technology">
- Ajax4jsf provides a skinability feature that allows easily define and manage different color schemes and other parameters of the UI with the help of named skin parameters. Hence it is possible to access the skin parameters from JSP code and the Java code (e.g. to adjust generated on-the-fly images based on the text parts of the UI). Note: skinability is not an equivalent of traditional CSS, but a complement.
+ Ajax4jsf provides a skinnability feature that allows easily define and manage different color schemes and other parameters of the UI with the help of named skin parameters. Hence it is possible to access the skin parameters from JSP code and the Java code (e.g. to adjust generated on-the-fly images based on the text parts of the UI). Note: skinnability is not an equivalent of traditional CSS, but a complement.
</rich:panelBarItem>
<rich:panelBarItem label="Test the components, actions, listeners, and pages as you are creating them">
An automated testing facility is in our roadmap for the near future. This facility will generate test cases for your component as soon as you develop it. The testing framework will not just test the components, but also any other server-side or client-side functionality including JavaScript code. What is more, it will do all of this without deploying the test application into the Servlet container.
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu)
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples)
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,76 +0,0 @@
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
-
-
- <style>
- .cols{
- vertical-align:top;
- width:50%;
- }
- </style>
- <h:form id="form">
- <h:panelGrid columns="2" columnClasses="cols" width="100%">
- <rich:panelMenu style="width:200px" mode="ajax"
- iconExpandedGroup="disc" iconCollapsedGroup="disc"
- iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
- iconCollapsedTopGroup="chevronDown" iconCollapsedTopPosition="right" >
- <rich:panelMenuGroup label="Group 1">
- <rich:panelMenuItem label="Item 1.1" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.1"/>
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 1.2" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.2"/>
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 1.3" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.3"/>
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 2">
- <rich:panelMenuItem label="Item 2.1" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.1"/>
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 2.2" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.2"/>
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 2.3" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.3"/>
- </rich:panelMenuItem>
- <rich:panelMenuGroup label="Group 2.4">
- <rich:panelMenuItem label="Item 2.4.1" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.4.1"/>
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 2.4.2" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.4.2"/>
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 2.4.3" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.4.3"/>
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- <rich:panelMenuItem label="Item 2.5" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 2.5"/>
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- <rich:panelMenuGroup label="Group 3">
- <rich:panelMenuItem label="Item 3.1" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 3.1"/>
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 3.2" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 3.2"/>
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 3.3" action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 3.3"/>
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- </rich:panelMenu>
- <rich:panel>
- <a4j:outputPanel ajaxRendered="true">
- <h:outputText value="#{panelMenu.current} selected" id="current"/>
- </a4j:outputPanel>
- </rich:panel>
- </h:panelGrid>
- </h:form>
-</ui:composition>
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,76 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+
+ <style>
+ .cols{
+ vertical-align:top;
+ width:50%;
+ }
+ </style>
+ <h:form id="form">
+ <h:panelGrid columns="2" columnClasses="cols" width="100%">
+ <rich:panelMenu style="width:200px" mode="ajax"
+ iconExpandedGroup="disc" iconCollapsedGroup="disc"
+ iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
+ iconCollapsedTopGroup="chevronDown" iconCollapsedTopPosition="right" >
+ <rich:panelMenuGroup label="Group 1">
+ <rich:panelMenuItem label="Item 1.1" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 1.1"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 1.2" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 1.2"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 1.3" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 1.3"/>
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuGroup label="Group 2">
+ <rich:panelMenuItem label="Item 2.1" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 2.1"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2.2" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 2.2"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2.3" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 2.3"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuGroup label="Group 2.4">
+ <rich:panelMenuItem label="Item 2.4.1" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 2.4.1"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2.4.2" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 2.4.2"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 2.4.3" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 2.4.3"/>
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuItem label="Item 2.5" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 2.5"/>
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ <rich:panelMenuGroup label="Group 3">
+ <rich:panelMenuItem label="Item 3.1" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 3.1"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 3.2" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 3.2"/>
+ </rich:panelMenuItem>
+ <rich:panelMenuItem label="Item 3.3" action="#{panelMenu.updateCurrent}">
+ <f:param name="current" value="Item 3.3"/>
+ </rich:panelMenuItem>
+ </rich:panelMenuGroup>
+ </rich:panelMenu>
+ <rich:panel>
+ <a4j:outputPanel ajaxRendered="true">
+ <h:outputText value="#{panelMenu.current} selected" id="current"/>
+ </a4j:outputPanel>
+ </rich:panel>
+ </h:panelGrid>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,51 +0,0 @@
-<!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:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.org/rich">
- <ui:composition template="/templates/component-sample.xhtml">
- <ui:define name="sample">
-
- <p>
- The rich:panelMenu component is used to define a collapsible side-menu panel. The component has a pre-defined
- skinable look-n-feel. You can customize it with styles and a set of component attributes. The folowing demo
- shows the example of rich:panelMenu
- </p>
-
-
- <div class="sample-container" >
-
- <ui:include src="/richfaces/panelMenu/examples/example.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/panelMenu/examples/example.xhtml"/>
- </ui:include>
- </div>
-
- <p>
- Switching mode could be chosen with the <b>mode</b> attribute for all panelMenu items except ones where
- this attribute was redefined. By default all items send custom request.
- </p>
- <p>
- The <b>expandMode</b> attribute defines the submission modes for all collapsing/expanding panelMenu
- groups except ones where this attribute was redefined.
- </p>
- <p>
- The <b>mode</b> and <b>expandMode</b> attributes could be used with three possible parameters:
- <ul>
- <li>server (default) -
- The common submission of the form is performed and a page is completely refreshed.</li>
- <li>ajax -
- An Ajax form submission is performed, and additionally specified elements in the "reRender" attribute
- are reRendered </li>
- <li>none -
- "Action" and "ActionListener" attributes are ignored. Items don't fire any submits itself. Behavior is completely
- defined by the components nested to items. Groups expand on the client side.</li>
- </ul>
- </p>
-
- </ui:define>
-
-
- </ui:composition>
-</html>
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,51 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ The rich:panelMenu component is used to define a collapsible side-menu panel. The component has a pre-defined
+ skinable look-n-feel. You can customize it with styles and a set of component attributes. The folowing demo
+ shows the example of rich:panelMenu
+ </p>
+
+
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/panelMenu/examples/example.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/panelMenu/examples/example.xhtml"/>
+ </ui:include>
+ </div>
+
+ <p>
+ Switching mode could be chosen with the <b>mode</b> attribute for all panelMenu items except ones where
+ this attribute was redefined. By default all items send custom request.
+ </p>
+ <p>
+ The <b>expandMode</b> attribute defines the submission modes for all collapsing/expanding panelMenu
+ groups except ones where this attribute was redefined.
+ </p>
+ <p>
+ The <b>mode</b> and <b>expandMode</b> attributes could be used with three possible parameters:
+ <ul>
+ <li>server (default) -
+ The common submission of the form is performed and a page is completely refreshed.</li>
+ <li>ajax -
+ An Ajax form submission is performed, and additionally specified elements in the "reRender" attribute
+ are reRendered </li>
+ <li>none -
+ "Action" and "ActionListener" attributes are ignored. Items don't fire any submits itself. Behavior is completely
+ defined by the components nested to items. Groups expand on the client side.</li>
+ </ul>
+ </p>
+
+ </ui:define>
+
+
+ </ui:composition>
+</html>
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,22 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Panel Menu</ui:define>
+ <ui:define name="current">panel</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/panelMenu/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/panelMenu"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -7,6 +7,19 @@
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
+ <style>
+ .viewsourcepanel {
+ padding-bottom:0px;
+ width:100%;
+ overflow:auto;
+ border-width:0;
+ background-color:#FFFFE7;
+ }
+ .viewsourcebody {
+ padding:0;
+ }
+
+ </style>
<p>
The <a4j:push> periodically perform AJAX request to server, to simulate 'push' data.
</p>
@@ -22,16 +35,22 @@
for call push request. Simple example of usage:
</p>
<p>
- Page code:
- <rich:insert highlight="xhtml" src="/richfaces/push/snippets/page.xhtml"/>
+ <i>Page code:</i>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert highlight="xhtml" src="/richfaces/push/snippets/page.xhtml"/>
+ </rich:panel>
</p>
<p>
- Code for registration of listener:
- <rich:insert highlight="java" src="/richfaces/push/snippets/listenerReg.java"/>
+ <i>Code for registration of listener:</i>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert highlight="java" src="/richfaces/push/snippets/listenerReg.java"/>
+ </rich:panel>
</p>
<p>
- Component can get message using current code:
- <rich:insert highlight="java" src="/richfaces/push/snippets/listenermessage.java"/>
+ <i>Component can get message using current code:</i>
+ <rich:panel styleClass="viewsourcepanel" bodyClass="viewsourcebody">
+ <rich:insert highlight="java" src="/richfaces/push/snippets/listenermessage.java"/>
+ </rich:panel>
</p>
<p>
Thus, component 'push' uses asynchronous model instead of polls.
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/style/usage.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/style/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/style/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -27,7 +27,7 @@
</pre>
<p>
Richfaces allows to have a dynamically generated css file based on RichFaces
- skinability feature. xcss is an XML formated css with some additional extensions.
+ skinnability feature. xcss is an XML formated css with some additional extensions.
The following example shows how the look-n-feel of non-RichFaces components might
be changed based on the selected skin. The panel with the form elements consists
only of non-Richfaces component, but it is sensitive to the current skin.
@@ -40,6 +40,10 @@
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/style/examples/skinedPanel.xhtml"/>
</ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/classes/org/richfaces/demo/ajaxSamples/rspanel.xcss"/>
+ <ui:param name="openlabel" value="View rspanel.xcss file" />
+ </ui:include>
</div>
</ui:define>
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/look-customization.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/look-customization.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/look-customization.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -7,7 +7,7 @@
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
<p>
- This is a demo of how to use stylesheets and skinability features in order to adjust tab panel appearance. Here we use pre-defined classes for the tab panel
+ This is a demo of how to use stylesheets and skinnability features in order to adjust tab panel appearance. Here we use pre-defined classes for the tab panel
"rich-tab-inactive", "rich-tab-active" and "rich-tabpanel-content" to adjust tab panel appearance. Note how appearance of tabs above could be also affected.
</p>
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simple-tree-data.properties
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simple-tree-data.properties 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simple-tree-data.properties 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,6 +1,25 @@
1=Daniel Defo
1.1=Robinson Crusoe
1.1.1=Start In Life
+1.1.2=Slavery And Escape
+1.1.3=Wrecked On A Desert Island
+1.1.4=First Weeks On The Island
+1.1.5=Builds A House - The Journal
+1.1.6=Ill And Conscience-Stricken
+1.1.7=Agricultural Experience
+1.1.8=Surveys His Position
+1.1.9=A Boat
+1.1.10=Tames Goats
+1.1.11=Finds Print Of Man's Foot On The Sand
+1.1.12=A Cave Retreat
+1.1.13=Wreck Of A Spanish Ship
+1.1.14=A Dream Realised
+1.1.15=Friday's Education
+1.1.16=Rescue Of Prisoners From Cannibals
+1.1.17=Visit Of Mutineers
+1.1.18=The Ship Recovered
+1.1.19=Return To England
+1.1.20=Fight Between Friday And A Bear
2=Edgar Allan Poe
2.1=Plays
2.1.1=Politian
@@ -24,6 +43,22 @@
3.1.5=IV. Hiawatha and Mudjekeewis
3.1.6=V. Hiawatha's Fasting
3.1.7=VI. Hiawatha's Friends
+3.1.8=VII. Hiawatha's Sailing
+3.1.9=VIII. Hiawatha's Fishing
+3.1.10=IX. Hiawatha and the Pearl-Feather
+3.1.11=X. Hiawatha's Wooing
+3.1.12=XI. Hiawatha's Wedding-Feast
+3.1.13=XII. The Son of the Evening Star
+3.1.14=XIII. Blessing the Cornfields
+3.1.15=XIV. Picture-Writing
+3.1.16=XV. Hiawatha's Lamentation
+3.1.17=XVI. Pau-Puk-Keewis
+3.1.18=XVII. The Hunting of Pau-Puk-Keewis
+3.1.19=XVIII. The Death of Kwasind
+3.1.20=XIX. The Ghosts
+3.1.21=XX. The Famine
+3.1.22=XXI. The White Man's Foot
+3.1.23=XXII. Hiawatha's Departure
3.2=Poetry
3.2.1=A Psalm Of Life
3.2.2=Birds Of Passage
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -9,7 +9,7 @@
<ui:define name="sample">
<p>RichFaces Tree has a default Data Model that allows to show a simple tree without creating
- the set on your own tree model classes. The follwing demo shows how to create a tree based on the
+ a set on your own tree model classes. The following demo shows how to create a tree based on the
data from the properties file.
</p>
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor)
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples)
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,16 +0,0 @@
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
-
- <rich:separator height="1" style="padding:10px 0" />
- <h:form>
- <rich:tree style="width:300px" switchType="ajax" stateAdvisor="#{treeDemoStateAdvisor}">
- <rich:recursiveTreeNodesAdaptor roots="#{fileSystemBean.sourceRoots}" var="item" nodes="#{item.nodes}" />
- </rich:tree>
- </h:form>
- <rich:separator height="1" style="padding:10px 0" />
-
-</ui:composition>
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,16 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <rich:separator height="1" style="padding:10px 0" />
+ <h:form>
+ <rich:tree style="width:300px" switchType="ajax" stateAdvisor="#{treeDemoStateAdvisor}">
+ <rich:recursiveTreeNodesAdaptor roots="#{fileSystemBean.sourceRoots}" var="item" nodes="#{item.nodes}" />
+ </rich:tree>
+ </h:form>
+ <rich:separator height="1" style="padding:10px 0" />
+
+</ui:composition>
\ No newline at end of file
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets)
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,69 +0,0 @@
-<rich:tree adviseNodeOpened="#{treeModelBean.adviseNodeOpened}" switchType="client">
- <rich:treeNodesAdaptor id="project" nodes="#{loaderBean.projects}" var="project">
- <rich:treeNode>
- <h:commandLink action="#{project.click}" value="Project: #{project.name}" />
- </rich:treeNode>
-
- <rich:treeNodesAdaptor id="srcDir" var="srcDir" nodes="#{project.srcDirs}">
- <rich:treeNode>
- <h:commandLink action="#{srcDir.click}" value="Source directory: #{srcDir.name}" />
- </rich:treeNode>
-
- <rich:treeNodesAdaptor id="pkg" var="pkg" nodes="#{srcDir.packages}">
- <rich:treeNode>
- <h:commandLink action="#{pkg.click}" value="Package: #{pkg.name}" />
- </rich:treeNode>
-
- <rich:treeNodesAdaptor id="class" var="class" nodes="#{pkg.classes}">
- <rich:treeNode>
- <h:commandLink action="#{class.click}" value="Class: #{class.name}" />
- </rich:treeNode>
- </rich:treeNodesAdaptor>
- </rich:treeNodesAdaptor>
-
- <rich:treeNodesAdaptor id="pkg1" var="pkg" nodes="#{srcDir.packages}">
- <rich:treeNode>
- <h:commandLink action="#{pkg.click}" value="Package1: #{pkg.name}" />
- </rich:treeNode>
-
- <rich:treeNodesAdaptor id="class1" var="class" nodes="#{pkg.classes}">
- <rich:treeNode>
- <h:commandLink action="#{class.click}" value="Class1: #{class.name}" />
- </rich:treeNode>
- </rich:treeNodesAdaptor>
- </rich:treeNodesAdaptor>
- </rich:treeNodesAdaptor>
-
- <rich:recursiveTreeNodesAdaptor id="dir" var="dir"
- roots="#{project.dirs}" nodes="#{dir.directories}">
- <rich:treeNode>
- <h:commandLink action="#{dir.click}" value="Directory: #{dir.name}" />
- </rich:treeNode>
-
- <rich:treeNodesAdaptor id="file" var="file" nodes="#{dir.files}">
- <rich:treeNode>
- <h:commandLink action="#{file.click}" value="File: #{file.name}" />
- </rich:treeNode>
- </rich:treeNodesAdaptor>
-
- <rich:treeNodesAdaptor id="file1" var="file" nodes="#{dir.files}">
- <rich:treeNode>
- <h:commandLink action="#{file.click}" value="File1: #{file.name}" />
- </rich:treeNode>
- </rich:treeNodesAdaptor>
-
- <rich:recursiveTreeNodesAdaptor id="archiveEntry" var="archiveEntry"
- roots="#{dir.files}" nodes="#{archiveEntry.archiveEntries}"
- includedRoot="#{archiveEntry.class.simpleName == 'ArchiveFile'}"
- includedNode="#{archiveEntry.class.simpleName == 'ArchiveEntry'}">
-
- <rich:treeNode id="archiveEntryNode">
- <h:commandLink action="#{archiveEntry.click}" value="Archive entry: #{archiveEntry.name}" />
- </rich:treeNode>
-
- </rich:recursiveTreeNodesAdaptor>
-
- </rich:recursiveTreeNodesAdaptor>
-
- </rich:treeNodesAdaptor>
-</rich:tree>
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/snippets/sample.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,69 @@
+<rich:tree adviseNodeOpened="#{treeModelBean.adviseNodeOpened}" switchType="client">
+ <rich:treeNodesAdaptor id="project" nodes="#{loaderBean.projects}" var="project">
+ <rich:treeNode>
+ <h:commandLink action="#{project.click}" value="Project: #{project.name}" />
+ </rich:treeNode>
+
+ <rich:treeNodesAdaptor id="srcDir" var="srcDir" nodes="#{project.srcDirs}">
+ <rich:treeNode>
+ <h:commandLink action="#{srcDir.click}" value="Source directory: #{srcDir.name}" />
+ </rich:treeNode>
+
+ <rich:treeNodesAdaptor id="pkg" var="pkg" nodes="#{srcDir.packages}">
+ <rich:treeNode>
+ <h:commandLink action="#{pkg.click}" value="Package: #{pkg.name}" />
+ </rich:treeNode>
+
+ <rich:treeNodesAdaptor id="class" var="class" nodes="#{pkg.classes}">
+ <rich:treeNode>
+ <h:commandLink action="#{class.click}" value="Class: #{class.name}" />
+ </rich:treeNode>
+ </rich:treeNodesAdaptor>
+ </rich:treeNodesAdaptor>
+
+ <rich:treeNodesAdaptor id="pkg1" var="pkg" nodes="#{srcDir.packages}">
+ <rich:treeNode>
+ <h:commandLink action="#{pkg.click}" value="Package1: #{pkg.name}" />
+ </rich:treeNode>
+
+ <rich:treeNodesAdaptor id="class1" var="class" nodes="#{pkg.classes}">
+ <rich:treeNode>
+ <h:commandLink action="#{class.click}" value="Class1: #{class.name}" />
+ </rich:treeNode>
+ </rich:treeNodesAdaptor>
+ </rich:treeNodesAdaptor>
+ </rich:treeNodesAdaptor>
+
+ <rich:recursiveTreeNodesAdaptor id="dir" var="dir"
+ roots="#{project.dirs}" nodes="#{dir.directories}">
+ <rich:treeNode>
+ <h:commandLink action="#{dir.click}" value="Directory: #{dir.name}" />
+ </rich:treeNode>
+
+ <rich:treeNodesAdaptor id="file" var="file" nodes="#{dir.files}">
+ <rich:treeNode>
+ <h:commandLink action="#{file.click}" value="File: #{file.name}" />
+ </rich:treeNode>
+ </rich:treeNodesAdaptor>
+
+ <rich:treeNodesAdaptor id="file1" var="file" nodes="#{dir.files}">
+ <rich:treeNode>
+ <h:commandLink action="#{file.click}" value="File1: #{file.name}" />
+ </rich:treeNode>
+ </rich:treeNodesAdaptor>
+
+ <rich:recursiveTreeNodesAdaptor id="archiveEntry" var="archiveEntry"
+ roots="#{dir.files}" nodes="#{archiveEntry.archiveEntries}"
+ includedRoot="#{archiveEntry.class.simpleName == 'ArchiveFile'}"
+ includedNode="#{archiveEntry.class.simpleName == 'ArchiveEntry'}">
+
+ <rich:treeNode id="archiveEntryNode">
+ <h:commandLink action="#{archiveEntry.click}" value="Archive entry: #{archiveEntry.name}" />
+ </rich:treeNode>
+
+ </rich:recursiveTreeNodesAdaptor>
+
+ </rich:recursiveTreeNodesAdaptor>
+
+ </rich:treeNodesAdaptor>
+</rich:tree>
Deleted: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -1,75 +0,0 @@
-<!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:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:rich="http://richfaces.org/rich">
- <ui:composition template="/templates/component-sample.xhtml">
- <ui:define name="sample">
-
- <p>
- Both recursiveTreeNodesAdaptor & treeNodesAdaptor (model adaptor components further in the text)
- components allow defining data model declaratively and binding treeNode components to tree model nodes.
- treeNodesAdaptor has a "nodes" attribute that's used to define a collection of elements to iterate through.
- Collections are allowed to include: lists, arrays, maps, XML NodeList & NamedNodeMap either as single
- object. The current collection element is accessible via a request-scoped variable named as "var"
- attribute value.
- </p>
- <p>recursiveTreeNodesAdaptor is an extension of a treeNodesAdaptor component that allows you to define two
- different value expressions: the first, assigned by "roots" attribute is used at the top of recursion,
- the second "nodes" is used on another recursion levels (the second level and deeper).
- </p>
-
- <h:panelGroup rendered="#{not empty fileSystemBean.sourceRoots}">
- <div class="sample-container" >
- <ui:include src="/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml"/>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml"/>
- </ui:include>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/FileSystemBean.java"/>
- <ui:param name="openlabel" value="View FileSystemBean.java Source" />
- <ui:param name="sourcetype" value="java" />
- </ui:include>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/FileSystemNode.java"/>
- <ui:param name="openlabel" value="View FileSystemNode.java Source" />
- <ui:param name="sourcetype" value="java" />
- </ui:include>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/PostbackPhaseListener.java"/>
- <ui:param name="openlabel" value="View PostbackPhaseListener.java Source" />
- <ui:param name="sourcetype" value="java" />
- </ui:include>
- <ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java"/>
- <ui:param name="openlabel" value="View TreeDemoStateAdvisor.java Source" />
- <ui:param name="sourcetype" value="java" />
- </ui:include>
- </div>
- </h:panelGroup>
- <f:verbatim rendered="#{empty fileSystemBean.sourceRoots}">
- The information for this demo is generated and incorporated in the richfaces-demo.war
- file with Maven process. Demo artifacts are located under /WEB-INF/src folder.<br/>
- As soon as you read this text, you have no such folder in your run-time enviroment
- right now.<br />
- If you use Jetty to run, use 'mvn jetty:run-war' command.
- </f:verbatim>
-
- <p>Model adaptor components can be nested without any limitations. The following code-snippet
- shows an example of using Nodes Adapter along with rich:tree</p>
- <div class="sample-container">
- <rich:insert src="/richfaces/treeNodesAdaptor/snippets/sample.xhtml" highlight="xhtml" />
- </div>
-
- <p>Data model nodes are wired to treeNode components by nesting treeNode components with a "type"
- attribute not defined inside model adaptor components. The first rendered one is used, or the default
- one if all treeNode components are non-rendered.
- </p>
-
-
- </ui:define>
-
-
- </ui:composition>
-</html>
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,75 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ Both recursiveTreeNodesAdaptor & treeNodesAdaptor (model adaptor components further in the text)
+ components allow defining data model declaratively and binding treeNode components to tree model nodes.
+ treeNodesAdaptor has a "nodes" attribute that's used to define a collection of elements to iterate through.
+ Collections are allowed to include: lists, arrays, maps, XML NodeList & NamedNodeMap either as single
+ object. The current collection element is accessible via a request-scoped variable named as "var"
+ attribute value.
+ </p>
+ <p>recursiveTreeNodesAdaptor is an extension of a treeNodesAdaptor component that allows you to define two
+ different value expressions: the first, assigned by "roots" attribute is used at the top of recursion,
+ the second "nodes" is used on another recursion levels (the second level and deeper).
+ </p>
+
+ <h:panelGroup rendered="#{not empty fileSystemBean.sourceRoots}">
+ <div class="sample-container" >
+ <ui:include src="/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml"/>
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/FileSystemBean.java"/>
+ <ui:param name="openlabel" value="View FileSystemBean.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/FileSystemNode.java"/>
+ <ui:param name="openlabel" value="View FileSystemNode.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/PostbackPhaseListener.java"/>
+ <ui:param name="openlabel" value="View PostbackPhaseListener.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java"/>
+ <ui:param name="openlabel" value="View TreeDemoStateAdvisor.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ </div>
+ </h:panelGroup>
+ <f:verbatim rendered="#{empty fileSystemBean.sourceRoots}">
+ The information for this demo is generated and incorporated in the richfaces-demo.war
+ file with Maven process. Demo artifacts are located under /WEB-INF/src folder.<br/>
+ As soon as you read this text, you have no such folder in your run-time enviroment
+ right now.<br />
+ If you use Jetty to run, use 'mvn jetty:run-war' command.
+ </f:verbatim>
+
+ <p>Model adaptor components can be nested without any limitations. The following code-snippet
+ shows an example of using Nodes Adapter along with rich:tree</p>
+ <div class="sample-container">
+ <rich:insert src="/richfaces/treeNodesAdaptor/snippets/sample.xhtml" highlight="xhtml" />
+ </div>
+
+ <p>Data model nodes are wired to treeNode components by nesting treeNode components with a "type"
+ attribute not defined inside model adaptor components. The first rendered one is used, or the default
+ one if all treeNode components are non-rendered.
+ </p>
+
+
+ </ui:define>
+
+
+ </ui:composition>
+</html>
Copied: tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor.xhtml (from rev 2920, trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor.xhtml)
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor.xhtml (rev 0)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -0,0 +1,22 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Tree Nodes Adaptor</ui:define>
+ <ui:define name="current">panel</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/treeNodesAdaptor/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/treeNodesAdaptor"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -7,7 +7,7 @@
<ui:composition>
<rich:panel styleClass="panel_menu">
-<rich:panelBar selectedPanel="#{componentNavigator.currentComponent.group}" height="530" width="100%">
+<rich:panelBar selectedPanel="#{componentNavigator.currentComponent.group}" height="550" width="100%">
<rich:panelBarItem id="ajaxSupport" label="Ajax Support">
<ui:include src="/templates/include/components-group.xhtml" >
<ui:param name="components" value="#{componentNavigator.ajaxSupport}" />
@@ -43,6 +43,11 @@
<ui:param name="components" value="#{componentNavigator.richMenu}" />
</ui:include>
</rich:panelBarItem>
+ <rich:panelBarItem id="richTree" label="Rich Trees">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components" value="#{componentNavigator.richTree}" />
+ </ui:include>
+ </rich:panelBarItem>
<rich:panelBarItem id="richOutputs" label="Rich Output">
<ui:include src="/templates/include/components-group.xhtml" >
<ui:param name="components" value="#{componentNavigator.richOutputs}" />
Modified: tags/3.1.0/samples/richfaces-demo/src/main/webapp/welcome.xhtml
===================================================================
--- tags/3.1.0/samples/richfaces-demo/src/main/webapp/welcome.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
+++ tags/3.1.0/samples/richfaces-demo/src/main/webapp/welcome.xhtml 2007-09-12 22:15:32 UTC (rev 2921)
@@ -14,15 +14,15 @@
built on an advanced open source framework (Ajax4jsf). It allows easy integration of AJAX capabilities into enterprise-level business
application development.</p>
<p>RichFaces enriches the Ajax4jsf framework in two important
- ways. First, it expands the number of visual ready-to-use components.
- Secondly, it fully implements the skinability feature of the Ajax4jsf
+ ways. First, it expands a number of visual ready-to-use components.
+ Secondly, it fully implements the skinnability feature of the Ajax4jsf
framework including a large number of predefined skins. Using
- skinability, it is much easier to manage the look-and-feel of an
+ skinnability, it is much easier to manage the look-and-feel of an
application.</p>
<h4>About This Demo</h4>
<p>This demo Web application showcases the most important
functionality available in RichFaces components. For each component
- or component set selected in the left-hand sidebar, you can see it in action. Also, you can instantly see the effect of predefined
+ or component set selected in the left-hand sidebar, you can see it in action. Also, you can immediately see the effect of predefined
skins on the application whole look-and-feel.
</p>
</ui:define>
18 years, 7 months
JBoss Rich Faces SVN: r2920 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: style and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-09-12 18:09:01 -0400 (Wed, 12 Sep 2007)
New Revision: 2920
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/style/usage.xhtml
Log:
demo. small impr.
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml 2007-09-12 22:04:35 UTC (rev 2919)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelMenu/examples/example.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
@@ -7,16 +7,17 @@
<style>
- .top{
- vertical-align:top;
+ .cols{
+ vertical-align:top;
+ width:50%;
}
</style>
<h:form id="form">
- <h:panelGrid columns="2" columnClasses="top">
+ <h:panelGrid columns="2" columnClasses="cols" width="100%">
<rich:panelMenu style="width:200px" mode="ajax"
iconExpandedGroup="disc" iconCollapsedGroup="disc"
- iconExpandedTopGroup="triangleUp" iconGroupTopPosition="right"
- iconCollapsedTopGroup="triangle" iconCollapsedTopPosition="right" >
+ iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
+ iconCollapsedTopGroup="chevronDown" iconCollapsedTopPosition="right" >
<rich:panelMenuGroup label="Group 1">
<rich:panelMenuItem label="Item 1.1" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 1.1"/>
@@ -66,9 +67,6 @@
</rich:panelMenuGroup>
</rich:panelMenu>
<rich:panel>
- <f:facet name="header">
- <h:outputText value="Current selection"/>
- </f:facet>
<a4j:outputPanel ajaxRendered="true">
<h:outputText value="#{panelMenu.current} selected" id="current"/>
</a4j:outputPanel>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/style/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/style/usage.xhtml 2007-09-12 22:04:35 UTC (rev 2919)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/style/usage.xhtml 2007-09-12 22:09:01 UTC (rev 2920)
@@ -40,6 +40,10 @@
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath" value="/richfaces/style/examples/skinedPanel.xhtml"/>
</ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/classes/org/richfaces/demo/ajaxSamples/rspanel.xcss"/>
+ <ui:param name="openlabel" value="View rspanel.xcss file" />
+ </ui:include>
</div>
</ui:define>
18 years, 7 months
JBoss Rich Faces SVN: r2919 - in trunk/samples/richfaces-demo/src/main: webapp/WEB-INF and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-12 18:04:35 -0400 (Wed, 12 Sep 2007)
New Revision: 2919
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java
Modified:
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml
Log:
Tree model adaptor demo updated
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/PostbackPhaseListener.java 2007-09-12 22:04:35 UTC (rev 2919)
@@ -0,0 +1,41 @@
+package org.richfaces.treemodeladaptor;
+
+import java.util.Map;
+
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+import javax.faces.event.PhaseListener;
+
+public class PostbackPhaseListener implements PhaseListener {
+
+ public static final String POSTBACK_ATTRIBUTE_NAME = PostbackPhaseListener.class.getName();
+
+ public void afterPhase(PhaseEvent event) {
+ }
+
+ public void beforePhase(PhaseEvent event) {
+ FacesContext facesContext = event.getFacesContext();
+ Map requestMap = facesContext.getExternalContext().getRequestMap();
+ requestMap.put(POSTBACK_ATTRIBUTE_NAME, Boolean.TRUE);
+ }
+
+ public PhaseId getPhaseId() {
+ return PhaseId.APPLY_REQUEST_VALUES;
+ }
+
+ public static boolean isPostback() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ if (facesContext != null) {
+ ExternalContext externalContext = facesContext.getExternalContext();
+ if (externalContext != null) {
+ return Boolean.TRUE.equals(
+ externalContext.getRequestMap().get(POSTBACK_ATTRIBUTE_NAME));
+ }
+ }
+
+ return false;
+ }
+
+}
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java 2007-09-12 22:04:35 UTC (rev 2919)
@@ -0,0 +1,25 @@
+package org.richfaces.treemodeladaptor;
+
+import org.richfaces.component.UITree;
+import org.richfaces.component.state.TreeStateAdvisor;
+import org.richfaces.model.TreeRowKey;
+
+public class TreeDemoStateAdvisor implements TreeStateAdvisor {
+
+ public Boolean adviseNodeOpened(UITree tree) {
+ if (!PostbackPhaseListener.isPostback()) {
+ Object key = tree.getRowKey();
+ TreeRowKey treeRowKey = (TreeRowKey) key;
+ if (treeRowKey == null || treeRowKey.depth() <= 2) {
+ return Boolean.TRUE;
+ }
+ }
+
+ return null;
+ }
+
+ public Boolean adviseNodeSelected(UITree tree) {
+ return null;
+ }
+
+}
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-09-12 21:57:32 UTC (rev 2918)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-09-12 22:04:35 UTC (rev 2919)
@@ -158,8 +158,13 @@
<property-class>java.lang.String</property-class>
<value>Paint 2D</value>
</managed-property>
- </managed-bean>
+ </managed-bean>
<managed-bean>
+ <managed-bean-name>treeDemoStateAdvisor</managed-bean-name>
+ <managed-bean-class>org.richfaces.treemodeladaptor.TreeDemoStateAdvisor</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
<managed-bean-name>fileSystemBean</managed-bean-name>
<managed-bean-class>org.richfaces.treemodeladaptor.FileSystemBean</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
@@ -278,5 +283,8 @@
<from-outcome>previous</from-outcome>
<to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
</navigation-case>
- </navigation-rule>
+ </navigation-rule>
+ <lifecycle>
+ <phase-listener>org.richfaces.treemodeladaptor.PostbackPhaseListener</phase-listener>
+ </lifecycle>
</faces-config>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml 2007-09-12 21:57:32 UTC (rev 2918)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml 2007-09-12 22:04:35 UTC (rev 2919)
@@ -5,10 +5,12 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
+ <rich:separator height="1" style="padding:10px 0" />
<h:form>
- <rich:tree style="width:300px" switchType="ajax">
+ <rich:tree style="width:300px" switchType="ajax" stateAdvisor="#{treeDemoStateAdvisor}">
<rich:recursiveTreeNodesAdaptor roots="#{fileSystemBean.sourceRoots}" var="item" nodes="#{item.nodes}" />
</rich:tree>
</h:form>
+ <rich:separator height="1" style="padding:10px 0" />
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml 2007-09-12 21:57:32 UTC (rev 2918)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml 2007-09-12 22:04:35 UTC (rev 2919)
@@ -36,6 +36,16 @@
<ui:param name="openlabel" value="View FileSystemNode.java Source" />
<ui:param name="sourcetype" value="java" />
</ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/PostbackPhaseListener.java"/>
+ <ui:param name="openlabel" value="View PostbackPhaseListener.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/TreeDemoStateAdvisor.java"/>
+ <ui:param name="openlabel" value="View TreeDemoStateAdvisor.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
</div>
</h:panelGroup>
<f:verbatim rendered="#{empty fileSystemBean.sourceRoots}">
18 years, 7 months
JBoss Rich Faces SVN: r2918 - in tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit: html/iconimages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-09-12 17:57:32 -0400 (Wed, 12 Sep 2007)
New Revision: 2918
Added:
tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronLeft.java
tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconTriangleLeft.java
Modified:
tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRendererBase.java
tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronBasic.java
Log:
merge fixes for http://jira.jboss.com/jira/browse/RF-894, http://jira.jboss.com/jira/browse/RF-893 from trunk
Modified: tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRendererBase.java
===================================================================
--- tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRendererBase.java 2007-09-12 19:41:48 UTC (rev 2917)
+++ tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/PanelMenuRendererBase.java 2007-09-12 21:57:32 UTC (rev 2918)
@@ -38,12 +38,14 @@
import org.richfaces.renderkit.html.PanelMenuGroupRenderer;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconChevron;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconChevronDown;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconChevronLeft;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconChevronUp;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconDisc;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconGrid;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleDown;
+import org.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleLeft;
import org.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleUp;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
@@ -115,12 +117,16 @@
source = getResource(PanelMenuIconSpacer.class.getName()).getUri(context, color);
} else if (iconType.equals("triangle")) {
source = getResource(PanelMenuIconTriangle.class.getName()).getUri(context, color);
+ } else if (iconType.equals("triangleLeft")) {
+ source = getResource(PanelMenuIconTriangleLeft.class.getName()).getUri(context, color);
} else if (iconType.equals("triangleDown")) {
source = getResource(PanelMenuIconTriangleDown.class.getName()).getUri(context, color);
} else if (iconType.equals("triangleUp")) {
source = getResource(PanelMenuIconTriangleUp.class.getName()).getUri(context, color);
} else if (iconType.equals("chevron")) {
source = getResource(PanelMenuIconChevron.class.getName()).getUri(context, color);
+ } else if (iconType.equals("chevronLeft")) {
+ source = getResource(PanelMenuIconChevronLeft.class.getName()).getUri(context, color);
} else if (iconType.equals("chevronUp")) {
source = getResource(PanelMenuIconChevronUp.class.getName()).getUri(context, color);
} else if (iconType.equals("chevronDown")) {
Modified: tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronBasic.java
===================================================================
--- tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronBasic.java 2007-09-12 19:41:48 UTC (rev 2917)
+++ tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronBasic.java 2007-09-12 21:57:32 UTC (rev 2918)
@@ -41,7 +41,11 @@
draw(path);
g2d.fill(path);
- g2d.translate(24,0);
+ if (this instanceof PanelMenuIconChevron ||
+ this instanceof PanelMenuIconChevronLeft)
+ g2d.translate(24, 0);
+ else
+ g2d.translate(0, 24);
g2d.fill(path);
AffineTransform transform = AffineTransform.getScaleInstance(dimension.getHeight()/128, dimension.getHeight()/128);
Copied: tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronLeft.java (from rev 2904, trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronLeft.java)
===================================================================
--- tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronLeft.java (rev 0)
+++ tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconChevronLeft.java 2007-09-12 21:57:32 UTC (rev 2918)
@@ -0,0 +1,38 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.renderkit.html.iconimages;
+
+import java.awt.geom.GeneralPath;
+
+public class PanelMenuIconChevronLeft extends PanelMenuIconChevronBasic {
+
+ void draw(GeneralPath path) {
+ path.moveTo(61,1);
+ path.lineTo(45,1);
+ path.lineTo(15,31);
+ path.lineTo(45,61);
+ path.lineTo(61,61);
+ path.lineTo(30,31);
+ path.closePath();
+ }
+
+}
Copied: tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconTriangleLeft.java (from rev 2904, trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconTriangleLeft.java)
===================================================================
--- tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconTriangleLeft.java (rev 0)
+++ tags/3.1.0/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/iconimages/PanelMenuIconTriangleLeft.java 2007-09-12 21:57:32 UTC (rev 2918)
@@ -0,0 +1,38 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.renderkit.html.iconimages;
+
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+public class PanelMenuIconTriangleLeft extends PanelMenuIconTriangleBasic {
+
+ void draw(GeneralPath path, Graphics2D g2d) {
+ g2d.translate(47,30);
+ path.moveTo(33,0);
+ path.lineTo(0,33);
+ path.lineTo(0,34);
+ path.lineTo(33,67);
+ path.closePath();
+ }
+
+}
18 years, 7 months
JBoss Rich Faces SVN: r2917 - tags/3.1.0/ui/calendar/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-12 15:41:48 -0400 (Wed, 12 Sep 2007)
New Revision: 2917
Modified:
tags/3.1.0/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
Calendar:
- input & general style/class added
- resource URL for icons encoded properly
Modified: tags/3.1.0/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- tags/3.1.0/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-09-12 19:26:06 UTC (rev 2916)
+++ tags/3.1.0/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-09-12 19:41:48 UTC (rev 2917)
@@ -14,9 +14,10 @@
<h:styles>/org/richfaces/renderkit/html/css/calendar.xcss</h:styles>
<div id="#{clientId}"
- style="z-index: #{ component . attributes [ 'zindex' ]"
+ style="z-index: #{component.attributes['zindex']}; #{component.attributes['style']}"
class="#{component.attributes['styleClass']}"
- x:passThruWithExclusions="value,name,type,id"><script
+ x:passThruWithExclusions="value,name,type,id,styleClass,class,style">
+ <script
type="text/javascript">
new Calendar('#{clientId}', {
submitFunction:
@@ -141,18 +142,18 @@
onkeydown="#{component.attributes['oninputkeydown']}"
onkeyup="#{component.attributes['oninputkeyup']}"
size="#{component.attributes['inputSize']}"
- style="vertical-align: middle;"
+ style="vertical-align: middle; #{component.attributes['inputStyle']}"
class="rich-calendar-input #{component.attributes['inputClass']}"
tabindex="#{component.attributes['tabindex']}"> </input>
<jsp:scriptlet>
<![CDATA[
- String buttonIcon = (String) component.getAttributes().get("buttonIcon");
+ String buttonIcon = org.richfaces.component.util.ViewUtil.getResourceURL((String) component.getAttributes().get("buttonIcon"),context);
+ String buttonIconDisabled = org.richfaces.component.util.ViewUtil.getResourceURL((String) component.getAttributes().get("buttonIconDisabled"),context);
String buttonLabel = (String) component.getAttributes().get("buttonLabel");
- String buttonIconDisabled = (String) component.getAttributes().get("buttonIconDisabled");
- variables.setVariable("buttonIcon",buttonIcon);
variables.setVariable("buttonLabel",buttonLabel);
variables.setVariable("buttonIconDisabled",buttonIconDisabled);
- if(buttonLabel==null || buttonLabel.equals("")){
+ variables.setVariable("buttonIcon",buttonIcon);
+ if(buttonLabel==null || buttonLabel.length()==0){
]]>
</jsp:scriptlet>
<img id="#{clientId}PopupButton" class="rich-calendar-button #{component.attributes['buttonClass']}"
18 years, 7 months
JBoss Rich Faces SVN: r2916 - in trunk/samples/richfaces-demo/src/main: java/org/richfaces/treemodeladaptor and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-12 15:26:06 -0400 (Wed, 12 Sep 2007)
New Revision: 2916
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml
Log:
Demo for recursiveTreeNodesAdaptor added
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemBean.java 2007-09-12 19:26:06 UTC (rev 2916)
@@ -0,0 +1,16 @@
+package org.richfaces.treemodeladaptor;
+
+
+public class FileSystemBean {
+ private static String SRC_PATH = "/WEB-INF/src";
+
+ private FileSystemNode[] srcRoots;
+
+ public synchronized FileSystemNode[] getSourceRoots() {
+ if (srcRoots == null) {
+ srcRoots = new FileSystemNode(SRC_PATH).getNodes();
+ }
+
+ return srcRoots;
+ }
+}
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/treemodeladaptor/FileSystemNode.java 2007-09-12 19:26:06 UTC (rev 2916)
@@ -0,0 +1,55 @@
+package org.richfaces.treemodeladaptor;
+
+import java.util.Set;
+
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+
+public class FileSystemNode {
+ private String path;
+
+ private static FileSystemNode[] CHILDREN_ABSENT = new FileSystemNode[0];
+
+ private FileSystemNode[] children;
+
+ private String shortPath;
+
+ public FileSystemNode(String path) {
+ this.path = path;
+ int idx = path.lastIndexOf('/');
+ if (idx != -1) {
+ shortPath = path.substring(idx + 1);
+ } else {
+ shortPath = path;
+ }
+ }
+
+ public synchronized FileSystemNode[] getNodes() {
+ if (children == null) {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ ExternalContext externalContext = facesContext.getExternalContext();
+ Set resourcePaths = externalContext.getResourcePaths(this.path);
+ if (resourcePaths != null) {
+ Object[] nodes = (Object[]) resourcePaths.toArray();
+ children = new FileSystemNode[nodes.length];
+
+ for (int i = 0; i < nodes.length; i++) {
+ String nodePath = nodes[i].toString();
+ if (nodePath.endsWith("/")) {
+ nodePath = nodePath.substring(0, nodePath.length() - 1);
+ }
+ children[i] = new FileSystemNode(nodePath);
+ }
+ } else {
+ children = CHILDREN_ABSENT;
+ }
+ }
+
+ return children;
+ }
+
+ public String toString() {
+ return shortPath;
+ }
+
+}
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-09-12 18:47:30 UTC (rev 2915)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-09-12 19:26:06 UTC (rev 2916)
@@ -159,6 +159,11 @@
<value>Paint 2D</value>
</managed-property>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>fileSystemBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.treemodeladaptor.FileSystemBean</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
<managed-bean>
<managed-bean-name>simpleTreeBean</managed-bean-name>
<managed-bean-class>org.richfaces.demo.tree.SimpleTreeBean</managed-bean-class>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml 2007-09-12 19:26:06 UTC (rev 2916)
@@ -0,0 +1,14 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <h:form>
+ <rich:tree style="width:300px" switchType="ajax">
+ <rich:recursiveTreeNodesAdaptor roots="#{fileSystemBean.sourceRoots}" var="item" nodes="#{item.nodes}" />
+ </rich:tree>
+ </h:form>
+
+</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml 2007-09-12 18:47:30 UTC (rev 2915)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/treeNodesAdaptor/usage.xhtml 2007-09-12 19:26:06 UTC (rev 2916)
@@ -20,6 +20,32 @@
the second "nodes" is used on another recursion levels (the second level and deeper).
</p>
+ <h:panelGroup rendered="#{not empty fileSystemBean.sourceRoots}">
+ <div class="sample-container" >
+ <ui:include src="/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/treeNodesAdaptor/examples/recursiveAdaptor.xhtml"/>
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/FileSystemBean.java"/>
+ <ui:param name="openlabel" value="View FileSystemBean.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/treemodeladaptor/FileSystemNode.java"/>
+ <ui:param name="openlabel" value="View FileSystemNode.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ </div>
+ </h:panelGroup>
+ <f:verbatim rendered="#{empty fileSystemBean.sourceRoots}">
+ The information for this demo is generated and incorporated in the richfaces-demo.war
+ file with Maven process. Demo artifacts are located under /WEB-INF/src folder.<br/>
+ As soon as you read this text, you have no such folder in your run-time enviroment
+ right now.<br />
+ If you use Jetty to run, use 'mvn jetty:run-war' command.
+ </f:verbatim>
+
<p>Model adaptor components can be nested without any limitations. The following code-snippet
shows an example of using Nodes Adapter along with rich:tree</p>
<div class="sample-container">
18 years, 7 months