JBoss Rich Faces SVN: r10629 - in branches/jsf2.0: framework/cdk and 12 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2008-09-30 19:59:19 -0400 (Tue, 30 Sep 2008)
New Revision: 10629
Added:
branches/jsf2.0/framework/cdk/
branches/jsf2.0/framework/cdk/generator/
branches/jsf2.0/framework/cdk/maven-archetype-jsf-component/
branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp/
branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin/
branches/jsf2.0/framework/cdk/maven-archetype-seam-app/
branches/jsf2.0/framework/cdk/maven-archetype-skin-addon/
branches/jsf2.0/framework/cdk/maven-cdk-plugin/
branches/jsf2.0/framework/cdk/maven-javascript-plugin/
branches/jsf2.0/framework/cdk/pom.xml
Removed:
branches/jsf2.0/framework/cdk/generator/
branches/jsf2.0/framework/cdk/maven-archetype-jsf-component/
branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp/
branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin/
branches/jsf2.0/framework/cdk/maven-archetype-seam-app/
branches/jsf2.0/framework/cdk/maven-archetype-skin-addon/
branches/jsf2.0/framework/cdk/maven-cdk-plugin/
branches/jsf2.0/framework/cdk/maven-javascript-plugin/
branches/jsf2.0/framework/cdk/pom.xml
Modified:
branches/jsf2.0/framework/cdk/generator/pom.xml
branches/jsf2.0/framework/cdk/maven-archetype-jsf-component/pom.xml
branches/jsf2.0/framework/cdk/maven-archetype-jsf-component/src/main/resources/archetype-resources/pom.xml
branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp/pom.xml
branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp/src/main/resources/archetype-resources/pom.xml
branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin/pom.xml
branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin/src/main/resources/archetype-resources/pom.xml
branches/jsf2.0/framework/cdk/maven-archetype-seam-app/pom.xml
branches/jsf2.0/framework/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml
branches/jsf2.0/framework/cdk/maven-cdk-plugin/pom.xml
branches/jsf2.0/framework/cdk/maven-javascript-plugin/pom.xml
branches/jsf2.0/ui/core/pom.xml
Log:
Import CDK projects
Copied: branches/jsf2.0/framework/cdk (from rev 10627, trunk/cdk)
Copied: branches/jsf2.0/framework/cdk/generator (from rev 10628, trunk/cdk/generator)
Modified: branches/jsf2.0/framework/cdk/generator/pom.xml
===================================================================
--- trunk/cdk/generator/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/generator/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -3,12 +3,12 @@
<parent>
<artifactId>cdk</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.cdk</groupId>
<artifactId>generator</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<name>Java Server Faces component generator</name>
<build>
<plugins>
Copied: branches/jsf2.0/framework/cdk/maven-archetype-jsf-component (from rev 10628, trunk/cdk/maven-archetype-jsf-component)
Modified: branches/jsf2.0/framework/cdk/maven-archetype-jsf-component/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-jsf-component/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-archetype-jsf-component/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -2,11 +2,11 @@
<parent>
<artifactId>cdk</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-archetype-jsf-component</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<name>Archetype - maven-archetype-jsf-component</name>
</project>
\ No newline at end of file
Modified: branches/jsf2.0/framework/cdk/maven-archetype-jsf-component/src/main/resources/archetype-resources/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-jsf-component/src/main/resources/archetype-resources/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-archetype-jsf-component/src/main/resources/archetype-resources/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -11,7 +11,7 @@
<plugin>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-cdk-plugin</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<configuration>
<library>
<prefix>${groupId}</prefix>
@@ -41,7 +41,7 @@
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
Copied: branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp (from rev 10628, trunk/cdk/maven-archetype-jsfwebapp)
Modified: branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-jsfwebapp/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -2,11 +2,11 @@
<parent>
<artifactId>cdk</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-archetype-jsfwebapp</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<name>Archetype for jsf webapp project</name>
</project>
\ No newline at end of file
Modified: branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp/src/main/resources/archetype-resources/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-jsfwebapp/src/main/resources/archetype-resources/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-archetype-jsfwebapp/src/main/resources/archetype-resources/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -30,7 +30,7 @@
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
Copied: branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin (from rev 10628, trunk/cdk/maven-archetype-plug-n-skin)
Modified: branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-plug-n-skin/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -2,12 +2,12 @@
<parent>
<artifactId>cdk</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-archetype-plug-n-skin</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<name>Archetype - maven-archetype-plug-n-skin</name>
Modified: branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin/src/main/resources/archetype-resources/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-plug-n-skin/src/main/resources/archetype-resources/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-archetype-plug-n-skin/src/main/resources/archetype-resources/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -10,7 +10,7 @@
<plugin>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-cdk-plugin</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<executions>
<execution>
<phase>generate-sources</phase>
@@ -34,7 +34,7 @@
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Copied: branches/jsf2.0/framework/cdk/maven-archetype-seam-app (from rev 10628, trunk/cdk/maven-archetype-seam-app)
Modified: branches/jsf2.0/framework/cdk/maven-archetype-seam-app/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-archetype-seam-app/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -2,11 +2,11 @@
<parent>
<artifactId>cdk</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-archetype-seam-app</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<name>Archetype - maven-archetype-seam-app</name>
</project>
\ No newline at end of file
Modified: branches/jsf2.0/framework/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -8,7 +8,7 @@
<name>sample application</name>
<properties>
<projectName>${artifactId}</projectName>
- <richfacesVersion>3.3.0-SNAPSHOT</richfacesVersion>
+ <richfacesVersion>4.0.0-SNAPSHOT</richfacesVersion>
<seamVersion>2.0.1.GA</seamVersion>
<jbossDownloadURL>http://downloads.sourceforge.net/jboss/jboss-4.2.3.GA.zip</jbossDownloadURL>
<jbossDeployDir>jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/</jbossDeployDir>
Copied: branches/jsf2.0/framework/cdk/maven-archetype-skin-addon (from rev 10628, trunk/cdk/maven-archetype-skin-addon)
Copied: branches/jsf2.0/framework/cdk/maven-cdk-plugin (from rev 10628, trunk/cdk/maven-cdk-plugin)
Modified: branches/jsf2.0/framework/cdk/maven-cdk-plugin/pom.xml
===================================================================
--- trunk/cdk/maven-cdk-plugin/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-cdk-plugin/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -2,12 +2,12 @@
<parent>
<artifactId>cdk</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-cdk-plugin</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Maven plugin for JSF components code generation</name>
<dependencies>
@@ -55,7 +55,7 @@
<dependency>
<groupId>org.richfaces.cdk</groupId>
<artifactId>generator</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
Copied: branches/jsf2.0/framework/cdk/maven-javascript-plugin (from rev 10628, trunk/cdk/maven-javascript-plugin)
Modified: branches/jsf2.0/framework/cdk/maven-javascript-plugin/pom.xml
===================================================================
--- trunk/cdk/maven-javascript-plugin/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/framework/cdk/maven-javascript-plugin/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -4,7 +4,7 @@
<parent>
<artifactId>cdk</artifactId>
<groupId>org.richfaces</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-javascript-plugin</artifactId>
Deleted: branches/jsf2.0/framework/cdk/pom.xml
===================================================================
--- trunk/cdk/pom.xml 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/cdk/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -1,67 +0,0 @@
-<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>root</artifactId>
- <groupId>org.richfaces</groupId>
- <version>3.3.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces</groupId>
- <artifactId>cdk</artifactId>
- <version>3.3.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>JSF Components Development kit</name>
- <dependencies />
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
- <modules>
- <module>generator</module>
- <module>maven-cdk-plugin</module>
- <module>maven-javascript-plugin</module>
- <module>maven-archetype-jsf-component</module>
- <module>maven-archetype-jsfwebapp</module>
- <module>maven-archetype-plug-n-skin</module>
-
- </modules>
-
-
- <profiles>
- <profile>
- <id>clover</id>
- <build>
- <plugins>
- <plugin>
- <groupId>com.atlassian.maven.plugins</groupId>
- <artifactId>maven-clover2-plugin</artifactId>
- <configuration>
- <includesAllSourceRoots>
- false
- </includesAllSourceRoots>
- <includesTestSourceRoots>
- false
- </includesTestSourceRoots>
- <jdk>1.5</jdk>
-
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
\ No newline at end of file
Copied: branches/jsf2.0/framework/cdk/pom.xml (from rev 10628, trunk/cdk/pom.xml)
===================================================================
--- branches/jsf2.0/framework/cdk/pom.xml (rev 0)
+++ branches/jsf2.0/framework/cdk/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -0,0 +1,67 @@
+<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>root</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.3.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>cdk</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>JSF Components Development kit</name>
+ <dependencies />
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ <modules>
+ <module>generator</module>
+ <module>maven-cdk-plugin</module>
+ <module>maven-javascript-plugin</module>
+ <module>maven-archetype-jsf-component</module>
+ <module>maven-archetype-jsfwebapp</module>
+ <module>maven-archetype-plug-n-skin</module>
+
+ </modules>
+
+
+ <profiles>
+ <profile>
+ <id>clover</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.atlassian.maven.plugins</groupId>
+ <artifactId>maven-clover2-plugin</artifactId>
+ <configuration>
+ <includesAllSourceRoots>
+ false
+ </includesAllSourceRoots>
+ <includesTestSourceRoots>
+ false
+ </includesTestSourceRoots>
+ <jdk>1.5</jdk>
+
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
\ No newline at end of file
Modified: branches/jsf2.0/ui/core/pom.xml
===================================================================
--- branches/jsf2.0/ui/core/pom.xml 2008-09-30 21:41:52 UTC (rev 10628)
+++ branches/jsf2.0/ui/core/pom.xml 2008-09-30 23:59:19 UTC (rev 10629)
@@ -13,7 +13,7 @@
<plugin>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-cdk-plugin</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<executions>
<execution>
<phase>generate-sources</phase>
15 years, 11 months
JBoss Rich Faces SVN: r10628 - in branches/jsf2.0/framework: api/src/main/java/org/ajax4jsf/javascript and 11 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2008-09-30 17:41:52 -0400 (Tue, 30 Sep 2008)
New Revision: 10628
Added:
branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/Queue.java
branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/QueueImpl.java
branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/QueuesManager.java
branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model/
branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java
Removed:
branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java
Modified:
branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java
branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/cache/ServletContextInitMap.java
branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/css/CssCompressor.java
branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/event/InitPhaseListener.java
branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseFilter.java
branches/jsf2.0/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
branches/jsf2.0/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js
branches/jsf2.0/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
branches/jsf2.0/framework/impl/src/test/java/org/ajax4jsf/css/CssCompressorTest.java
Log:
marged changes from trunk rev 10627
Modified: branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java
===================================================================
--- branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -51,8 +51,6 @@
*/
protected ViewHandler _handler;
- private boolean _initialized = false;
-
/**
* @param handler - to wrap.
*/
@@ -64,7 +62,6 @@
* @see javax.faces.application.ViewHandler#calculateLocale(javax.faces.context.FacesContext)
*/
public Locale calculateLocale(FacesContext context) {
- fillChain(context);
return _handler.calculateLocale(context);
}
@@ -72,7 +69,6 @@
* @see javax.faces.application.ViewHandler#calculateRenderKitId(javax.faces.context.FacesContext)
*/
public String calculateRenderKitId(FacesContext context) {
- fillChain(context);
return _handler.calculateRenderKitId(context);
}
@@ -80,7 +76,6 @@
* @see javax.faces.application.ViewHandler#createView(javax.faces.context.FacesContext, java.lang.String)
*/
public UIViewRoot createView(FacesContext context, String viewId) {
- fillChain(context);
return _handler.createView(context, viewId);
}
@@ -88,7 +83,6 @@
* @see javax.faces.application.ViewHandler#getActionURL(javax.faces.context.FacesContext, java.lang.String)
*/
public String getActionURL(FacesContext context, String url) {
- fillChain(context);
return _handler.getActionURL(context, url);
}
@@ -96,7 +90,6 @@
* @see javax.faces.application.ViewHandler#getResourceURL(javax.faces.context.FacesContext, java.lang.String)
*/
public String getResourceURL(FacesContext context, String url) {
- fillChain(context);
return _handler.getResourceURL(context, url);
}
@@ -104,7 +97,6 @@
* @see javax.faces.application.ViewHandler#renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)
*/
public void renderView(FacesContext context, UIViewRoot root) throws IOException, FacesException {
- fillChain(context);
_handler.renderView(context, root);
}
@@ -112,7 +104,6 @@
* @see javax.faces.application.ViewHandler#restoreView(javax.faces.context.FacesContext, java.lang.String)
*/
public UIViewRoot restoreView(FacesContext context, String viewId) {
- fillChain(context);
return _handler.restoreView(context, viewId);
}
@@ -120,7 +111,6 @@
* @see javax.faces.application.ViewHandler#writeState(javax.faces.context.FacesContext)
*/
public void writeState(FacesContext context) throws IOException {
- fillChain(context);
_handler.writeState(context);
}
@@ -143,38 +133,37 @@
return _handler.calculateCharacterEncoding(context);
}
/**
- * Fill view-handlers chain for alternate handlers.
+ * <p>Fill view-handlers chain for alternate handlers.</p>
+ * <p><em>NOTE:</em> Calls to this method should be synchronized externally since 3.3.0 version</p>
+ *
* @param context
*/
- synchronized protected void fillChain( FacesContext context){
- if(!_initialized){
- _initialized = true;
- String handlers = context.getExternalContext().getInitParameter(HANDLERS);
- if(null != handlers){
- ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
- String[] classes = handlers.split(",");
- for (int i = 0; i < classes.length; i++) {
- String handlerClass = classes[i];
- if (_log.isDebugEnabled()) {
- _log.debug(Messages.getMessage(Messages.CREATE_ALTERNATE_HANDLER, handlerClass));
- }
+ public void fillChain( FacesContext context){
+ String handlers = context.getExternalContext().getInitParameter(HANDLERS);
+ if(null != handlers){
+ ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
+ String[] classes = handlers.split(",");
+ for (int i = 0; i < classes.length; i++) {
+ String handlerClass = classes[i];
+ if (_log.isDebugEnabled()) {
+ _log.debug(Messages.getMessage(Messages.CREATE_ALTERNATE_HANDLER, handlerClass));
+ }
+ try {
+ Class<?> clazz = classLoader.loadClass(handlerClass);
try {
- Class<?> clazz = classLoader.loadClass(handlerClass);
- try {
- Constructor<?> constructor = clazz
- .getConstructor(new Class[] { ViewHandler.class });
- _handler = (ViewHandler) constructor
- .newInstance(new Object[] { _handler });
- } catch (NoSuchMethodException e) {
- // No constructor with parent class - create simple instance
- if (_log.isWarnEnabled()) {
- _log.warn(Messages.getMessage(Messages.ALTERNATE_HANDLER_CONSTRUCTOR_WARNING));
- }
- _handler = (ViewHandler) clazz.newInstance();
+ Constructor<?> constructor = clazz
+ .getConstructor(new Class[] { ViewHandler.class });
+ _handler = (ViewHandler) constructor
+ .newInstance(new Object[] { _handler });
+ } catch (NoSuchMethodException e) {
+ // No constructor with parent class - create simple instance
+ if (_log.isWarnEnabled()) {
+ _log.warn(Messages.getMessage(Messages.ALTERNATE_HANDLER_CONSTRUCTOR_WARNING));
}
- } catch (Exception e) {
- _log.error(Messages.getMessage(Messages.VIEW_HANDLER_INSTANTIATION_ERROR), e);
+ _handler = (ViewHandler) clazz.newInstance();
}
+ } catch (Exception e) {
+ _log.error(Messages.getMessage(Messages.VIEW_HANDLER_INSTANTIATION_ERROR), e);
}
}
}
Modified: branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
===================================================================
--- branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -22,6 +22,7 @@
package org.ajax4jsf.javascript;
import java.beans.PropertyDescriptor;
+import java.io.UnsupportedEncodingException;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Iterator;
@@ -161,4 +162,56 @@
}
}
}
+
+ public static String getValidJavascriptName(String s) {
+
+ StringBuffer buf = null;
+ for (int i = 0, len = s.length(); i < len; i++) {
+ char c = s.charAt(i);
+
+ if (Character.isLetterOrDigit(c)||c=='_' ) {
+ // allowed char
+ if (buf != null)
+ buf.append(c);
+ } else {
+ if (buf == null) {
+ buf = new StringBuffer(s.length() + 10);
+ buf.append(s.substring(0, i));
+ }
+
+ buf.append('_');
+ if (c < 16) {
+ // pad single hex digit values with '0' on the left
+ buf.append('0');
+ }
+
+ if (c < 128) {
+ // first 128 chars match their byte representation in UTF-8
+ buf.append(Integer.toHexString(c).toUpperCase());
+ } else {
+ byte[] bytes;
+ try {
+ bytes = Character.toString(c).getBytes("UTF-8");
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(e);
+ }
+
+ for (int j = 0; j < bytes.length; j++) {
+ int intVal = bytes[j];
+ if (intVal < 0) {
+ // intVal will be >= 128
+ intVal = 256 + intVal;
+ } else if (intVal < 16) {
+ // pad single hex digit values with '0' on the left
+ buf.append('0');
+ }
+ buf.append(Integer.toHexString(intVal).toUpperCase());
+ }
+ }
+ }
+
+ }
+
+ return buf == null ? s : buf.toString();
+ }
}
Copied: branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/Queue.java (from rev 10627, trunk/framework/api/src/main/java/org/ajax4jsf/model/Queue.java)
===================================================================
--- branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/Queue.java (rev 0)
+++ branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/Queue.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -0,0 +1,21 @@
+/**
+ *
+ */
+package org.ajax4jsf.model;
+
+/**
+ * @author Konstantin Mishin
+ *
+ */
+public interface Queue {
+
+ String getName();
+
+ Integer getRequestDelay();
+
+ Integer getTimeout();
+
+ Boolean getLimitToList();
+
+ Boolean getIgnoreDupResponses();
+}
Copied: branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/QueueImpl.java (from rev 10627, trunk/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java)
===================================================================
--- branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/QueueImpl.java (rev 0)
+++ branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/QueueImpl.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -0,0 +1,96 @@
+package org.ajax4jsf.model;
+
+import javax.el.ValueExpression;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Konstantin Mishin
+ *
+ */
+public class QueueImpl implements Queue {
+
+ private FacesContext context;
+
+ private ValueExpression nameExpression;
+
+ private ValueExpression requestDelayExpression;
+
+ private ValueExpression timeoutExpression;
+
+ private ValueExpression ignoreDupResponsesExpression;
+
+ private ValueExpression limitToListExpression;
+
+ public QueueImpl() {
+ this(null);
+ }
+
+ public QueueImpl(FacesContext context) {
+ if(context == null) {
+ this.context = FacesContext.getCurrentInstance();
+ } else {
+ this.context = context;
+ }
+ }
+
+ public String getName() {
+ String name = null;
+ if (nameExpression != null) {
+ name = (String) nameExpression.getValue(context.getELContext());
+ }
+ return name;
+ }
+
+ public Integer getRequestDelay() {
+ Integer requestDelay = null;
+ if (requestDelayExpression != null) {
+ requestDelay = (Integer) requestDelayExpression.getValue(context.getELContext());
+ }
+ return requestDelay;
+ }
+
+ public Integer getTimeout() {
+ Integer timeout = null;
+ if (timeoutExpression != null) {
+ timeout = (Integer) timeoutExpression.getValue(context.getELContext());
+ }
+ return timeout;
+ }
+
+ public Boolean getIgnoreDupResponses() {
+ Boolean ignoreDupResponses = null;
+ if (ignoreDupResponsesExpression != null) {
+ ignoreDupResponses = (Boolean) ignoreDupResponsesExpression.getValue(context.getELContext());
+ }
+ return ignoreDupResponses;
+ }
+
+ public Boolean getLimitToList() {
+ Boolean limitToList = null;
+ if (limitToListExpression != null) {
+ limitToList = (Boolean) limitToListExpression.getValue(context.getELContext());
+ }
+ return limitToList;
+ }
+
+ public void setNameExpression(ValueExpression nameExpression) {
+ this.nameExpression = nameExpression;
+ }
+
+ public void setRequestDelayExpression(ValueExpression requestDelayExpression) {
+ this.requestDelayExpression = requestDelayExpression;
+ }
+
+ public void setTimeoutExpression(ValueExpression timeoutExpression) {
+ this.timeoutExpression = timeoutExpression;
+ }
+
+ public void setIgnoreDupResponsesExpression(
+ ValueExpression ignoreDupResponsesExpression) {
+ this.ignoreDupResponsesExpression = ignoreDupResponsesExpression;
+ }
+
+ public void setLimitToListExpression(ValueExpression limitToListExpression) {
+ this.limitToListExpression = limitToListExpression;
+ }
+}
Copied: branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/QueuesManager.java (from rev 10627, trunk/framework/api/src/main/java/org/ajax4jsf/model/QueuesManager.java)
===================================================================
--- branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/QueuesManager.java (rev 0)
+++ branches/jsf2.0/framework/api/src/main/java/org/ajax4jsf/model/QueuesManager.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -0,0 +1,56 @@
+package org.ajax4jsf.model;
+
+import java.util.Map;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Konstantin Mishin
+ *
+ */
+public class QueuesManager {
+
+ static private final String MAP_KEY_PREFIX = QueuesManager.class.getSimpleName();
+
+ static public void put(Queue queue, FacesContext context) throws IllegalArgumentException{
+ if (context == null) {
+ context = FacesContext.getCurrentInstance();
+ }
+ String name = queue.getName();
+ String key = MAP_KEY_PREFIX + name;
+ Map<String, Object> attributes = context.getViewRoot().getAttributes();
+ if (!attributes.containsKey(key)) {
+ attributes.put(key, queue);
+ } else {
+ throw new IllegalArgumentException("Queue whis name '" + name + "' has already been used");
+ }
+ }
+
+ static public void put(Queue queue) throws IllegalArgumentException {
+ put(queue, null);
+ }
+
+ static public Queue get(String name, FacesContext context) {
+ if (context == null) {
+ context = FacesContext.getCurrentInstance();
+ }
+ Object object = context.getViewRoot().getAttributes().get(MAP_KEY_PREFIX + name);
+ return (Queue)object;
+ }
+
+ static public Queue get(String name) {
+ return get(name, null);
+ }
+
+ static public Queue remove(String name, FacesContext context) {
+ if (context == null) {
+ context = FacesContext.getCurrentInstance();
+ }
+ Object object = context.getViewRoot().getAttributes().remove(MAP_KEY_PREFIX + name);
+ return (Queue)object;
+ }
+
+ static public Queue remove(String name) {
+ return remove(name, null);
+ }
+}
Modified: branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/cache/ServletContextInitMap.java
===================================================================
--- branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/cache/ServletContextInitMap.java 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/cache/ServletContextInitMap.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -64,7 +64,7 @@
}
public void remove() {
- throw new UnsupportedOperationException();
+ throw new UnsupportedOperationException("This map is read-only");
}
};
@@ -75,6 +75,7 @@
int result = 0;
Enumeration<String> initNames = servletContext.getInitParameterNames();
while (initNames.hasMoreElements()) {
+ initNames.nextElement();
result++;
}
@@ -86,7 +87,19 @@
}
};
}
+
+ public String remove(Object key) {
+ throw new UnsupportedOperationException("This map is read-only");
+ }
+ public String put(String key, String value) {
+ throw new UnsupportedOperationException("This map is read-only");
+ }
+
+ public void putAll(Map<? extends String, ? extends String> m) {
+ throw new UnsupportedOperationException("This map is read-only");
+ }
+
}
class ServletContextInitMapEntry<K, V> implements Map.Entry<K, V> {
@@ -100,11 +113,6 @@
this.value = value;
}
- public ServletContextInitMapEntry(K key) {
- super();
- this.key = key;
- }
-
public K getKey() {
return key;
}
@@ -114,9 +122,7 @@
}
public V setValue(V value) {
- V oldValue = this.value;
- this.value = value;
- return oldValue;
+ throw new UnsupportedOperationException("This map is read-only");
}
}
\ No newline at end of file
Modified: branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/css/CssCompressor.java
===================================================================
--- branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/css/CssCompressor.java 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/css/CssCompressor.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -15,142 +15,180 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import org.ajax4jsf.resource.CountingOutputWriter;
-
public class CssCompressor {
- private StringBuffer srcsb = null;
+ private StringBuffer srcsb = null;
- public CssCompressor(StringBuffer buffer) throws IOException {
- srcsb = buffer;
- }
+ public CssCompressor(StringBuffer buffer) throws IOException {
+ srcsb = buffer;
+ }
- public int compress(Writer out, int linebreakpos)
- throws IOException {
-
- Pattern p;
- Matcher m;
- String css;
- StringBuffer sb;
- int startIndex, endIndex;
- int bytesLength;
+ public int compress(Writer out, int linebreakpos) throws IOException {
- // Remove all comment blocks...
- sb = new StringBuffer(srcsb.toString());
- while ((startIndex = sb.indexOf("/*")) >= 0) {
- endIndex = sb.indexOf("*/", startIndex + 2);
- if (endIndex >= startIndex + 2)
- sb.delete(startIndex, endIndex + 2);
- }
+ Pattern p;
+ Matcher m;
+ String css;
+ StringBuffer sb;
+ int startIndex, endIndex;
- css = sb.toString();
+ // Remove all comment blocks...
+ startIndex = 0;
+ boolean iemac = false;
+ boolean preserve = false;
+ sb = new StringBuffer(srcsb.toString());
+ while ((startIndex = sb.indexOf("/*", startIndex)) >= 0) {
+ preserve = sb.length() > startIndex + 2
+ && sb.charAt(startIndex + 2) == '!';
+ endIndex = sb.indexOf("*/", startIndex + 2);
+ if (endIndex < 0) {
+ if (!preserve) {
+ sb.delete(startIndex, sb.length());
+ }
+ } else if (endIndex >= startIndex + 2) {
+ if (sb.charAt(endIndex - 1) == '\\') {
+ // Looks like a comment to hide rules from IE Mac.
+ // Leave this comment, and the following one, alone...
+ startIndex = endIndex + 2;
+ iemac = true;
+ } else if (iemac) {
+ startIndex = endIndex + 2;
+ iemac = false;
+ } else if (!preserve) {
+ sb.delete(startIndex, endIndex + 2);
+ } else {
+ startIndex = endIndex + 2;
+ }
+ }
+ }
- // Normalize all whitespace strings to single spaces. Easier to work with that way.
- css = css.replaceAll("\\s+", " ");
+ css = sb.toString();
- // Remove the spaces before the things that should not have spaces before them.
- // But, be careful not to turn "p :link {...}" into "p:link{...}"
- // Swap out any pseudo-class colons with the token, and then swap back.
- sb = new StringBuffer();
- p = Pattern.compile("(^|\\})(([^\\{:])+:)+([^\\{]*\\{)");
- m = p.matcher(css);
- while (m.find()) {
- String s = m.group();
- s = s.replaceAll(":", "___PSEUDOCLASSCOLON___");
- m.appendReplacement(sb, s);
- }
- m.appendTail(sb);
- css = sb.toString();
- css = css.replaceAll("\\s+([!{};:>+\\(\\)\\],])", "$1");
- css = css.replaceAll("___PSEUDOCLASSCOLON___", ":");
+ // Normalize all whitespace strings to single spaces. Easier to work
+ // with that way.
+ css = css.replaceAll("\\s+", " ");
- // Remove the spaces after the things that should not have spaces after them.
- css = css.replaceAll("([!{}:;>+\\(\\[,])\\s+", "$1");
+ // Make a pseudo class for the Box Model Hack
+ css = css.replaceAll("\"\\\\\"}\\\\\"\"", "___PSEUDOCLASSBMH___");
- // Add the semicolon where it's missing.
- css = css.replaceAll("([^;\\}])}", "$1;}");
+ // Remove the spaces before the things that should not have spaces
+ // before them.
+ // But, be careful not to turn "p :link {...}" into "p:link{...}"
+ // Swap out any pseudo-class colons with the token, and then swap back.
+ sb = new StringBuffer();
+ p = Pattern.compile("(^|\\})(([^\\{:])+:)+([^\\{]*\\{)");
+ m = p.matcher(css);
+ while (m.find()) {
+ String s = m.group();
+ s = s.replaceAll(":", "___PSEUDOCLASSCOLON___");
+ m.appendReplacement(sb, s);
+ }
+ m.appendTail(sb);
+ css = sb.toString();
+ css = css.replaceAll("\\s+([!{};:>+\\(\\)\\],])", "$1");
+ css = css.replaceAll("___PSEUDOCLASSCOLON___", ":");
- // Replace 0(px,em,%) with 0.
- css = css.replaceAll("([\\s:])(0)(px|em|%|in|cm|mm|pc|pt|ex)", "$1$2");
+ // Remove the spaces after the things that should not have spaces after
+ // them.
+ css = css.replaceAll("([!{}:;>+\\(\\[,])\\s+", "$1");
- // Replace 0 0 0 0; with 0.
- css = css.replaceAll(":0 0 0 0;", ":0;");
- css = css.replaceAll(":0 0 0;", ":0;");
- css = css.replaceAll(":0 0;", ":0;");
- // Replace background-position:0; with background-position:0 0;
- css = css.replaceAll("background-position:0;", "background-position:0 0;");
+ // Add the semicolon where it's missing.
+ css = css.replaceAll("([^;\\}])}", "$1;}");
- // Replace 0.6 to .6, but only when preceded by : or a white-space
- css = css.replaceAll("(:|\\s)0+\\.(\\d+)", "$1.$2");
+ // Replace 0(px,em,%) with 0.
+ css = css.replaceAll("([\\s:])(0)(px|em|%|in|cm|mm|pc|pt|ex)", "$1$2");
- // Shorten colors from rgb(51,102,153) to #336699
- // This makes it more likely that it'll get further compressed in the next step.
- p = Pattern.compile("rgb\\s*\\(\\s*([0-9,\\s]+)\\s*\\)");
- m = p.matcher(css);
- sb = new StringBuffer();
- while (m.find()) {
- String[] rgbcolors = m.group(1).split(",");
- StringBuffer hexcolor = new StringBuffer("#");
- for (int i = 0; i < rgbcolors.length; i++) {
- int val = Integer.parseInt(rgbcolors[i]);
- if (val < 16) {
- hexcolor.append("0");
- }
- hexcolor.append(Integer.toHexString(val));
- }
- m.appendReplacement(sb, hexcolor.toString());
- }
- m.appendTail(sb);
- css = sb.toString();
+ // Replace 0 0 0 0; with 0.
+ css = css.replaceAll(":0 0 0 0;", ":0;");
+ css = css.replaceAll(":0 0 0;", ":0;");
+ css = css.replaceAll(":0 0;", ":0;");
+ // Replace background-position:0; with background-position:0 0;
+ css = css.replaceAll("background-position:0;",
+ "background-position:0 0;");
- // Shorten colors from #AABBCC to #ABC. Note that we want to make sure
- // the color is not preceded by either ", " or =. Indeed, the property
- // filter: chroma(color="#FFFFFF");
- // would become
- // filter: chroma(color="#FFF");
- // which makes the filter break in IE.
- p = Pattern.compile("([^\"'=\\s])(\\s*)#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])");
- m = p.matcher(css);
- sb = new StringBuffer();
- while (m.find()) {
- // Test for AABBCC pattern
- if (m.group(3).equalsIgnoreCase(m.group(4)) &&
- m.group(5).equalsIgnoreCase(m.group(6)) &&
- m.group(7).equalsIgnoreCase(m.group(8))) {
- m.appendReplacement(sb, m.group(1) + m.group(2) + "#" + m.group(3) + m.group(5) + m.group(7));
- } else {
- m.appendReplacement(sb, m.group());
- }
- }
- m.appendTail(sb);
- css = sb.toString();
+ // Replace 0.6 to .6, but only when preceded by : or a white-space
+ css = css.replaceAll("(:|\\s)0+\\.(\\d+)", "$1.$2");
- // Remove empty rules.
- css = css.replaceAll("[^\\}]+\\{;\\}", "");
+ // Shorten colors from rgb(51,102,153) to #336699
+ // This makes it more likely that it'll get further compressed in the
+ // next step.
+ p = Pattern.compile("rgb\\s*\\(\\s*([0-9,\\s]+)\\s*\\)");
+ m = p.matcher(css);
+ sb = new StringBuffer();
+ while (m.find()) {
+ String[] rgbcolors = m.group(1).split(",");
+ StringBuffer hexcolor = new StringBuffer("#");
+ for (int i = 0; i < rgbcolors.length; i++) {
+ int val = Integer.parseInt(rgbcolors[i]);
+ if (val < 16) {
+ hexcolor.append("0");
+ }
+ hexcolor.append(Integer.toHexString(val));
+ }
+ m.appendReplacement(sb, hexcolor.toString());
+ }
+ m.appendTail(sb);
+ css = sb.toString();
- if (linebreakpos >= 0) {
- // Some source control tools don't like it when files containing lines longer
- // than, say 8000 characters, are checked in. The linebreak option is used in
- // that case to split long lines after a specific column.
- int i = 0;
- int linestartpos = 0;
- sb = new StringBuffer(css);
- while (i < sb.length()) {
- char c = sb.charAt(i++);
- if (c == '}' && i - linestartpos > linebreakpos) {
- sb.insert(i, '\n');
- linestartpos = i;
- }
- }
+ // Shorten colors from #AABBCC to #ABC. Note that we want to make sure
+ // the color is not preceded by either ", " or =. Indeed, the property
+ // filter: chroma(color="#FFFFFF");
+ // would become
+ // filter: chroma(color="#FFF");
+ // which makes the filter break in IE.
+ p = Pattern
+ .compile("([^\"'=\\s])(\\s*)#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])");
+ m = p.matcher(css);
+ sb = new StringBuffer();
+ while (m.find()) {
+ // Test for AABBCC pattern
+ if (m.group(3).equalsIgnoreCase(m.group(4))
+ && m.group(5).equalsIgnoreCase(m.group(6))
+ && m.group(7).equalsIgnoreCase(m.group(8))) {
+ m.appendReplacement(sb, m.group(1) + m.group(2) + "#"
+ + m.group(3) + m.group(5) + m.group(7));
+ } else {
+ m.appendReplacement(sb, m.group());
+ }
+ }
+ m.appendTail(sb);
+ css = sb.toString();
- css = sb.toString();
- }
+ // Remove empty rules.
+ css = css.replaceAll("[^\\}]+\\{;\\}", "");
- // Trim the final string (for any leading or trailing white spaces)
- css = css.trim();
- bytesLength = css.length(); // * CountingOutputWriter.sizeOfChar;
- // Write the output...
- out.write(css);
- return bytesLength;
- }
+ if (linebreakpos >= 0) {
+ // Some source control tools don't like it when files containing
+ // lines longer
+ // than, say 8000 characters, are checked in. The linebreak option
+ // is used in
+ // that case to split long lines after a specific column.
+ int i = 0;
+ int linestartpos = 0;
+ sb = new StringBuffer(css);
+ while (i < sb.length()) {
+ char c = sb.charAt(i++);
+ if (c == '}' && i - linestartpos > linebreakpos) {
+ sb.insert(i, '\n');
+ linestartpos = i;
+ }
+ }
+
+ css = sb.toString();
+ }
+
+ // Replace the pseudo class for the Box Model Hack
+ css = css.replaceAll("___PSEUDOCLASSBMH___", "\"\\\\\"}\\\\\"\"");
+
+ // Replace multiple semi-colons in a row by a single one
+ // See SF bug #1980989
+ css = css.replaceAll(";;+", ";");
+
+ // Trim the final string (for any leading or trailing white spaces)
+ css = css.trim();
+
+ // Write the output...
+ out.write(css);
+
+ return css.length();
+ }
}
Modified: branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/event/InitPhaseListener.java
===================================================================
--- branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/event/InitPhaseListener.java 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/event/InitPhaseListener.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -80,11 +80,18 @@
FacesContext facesContext = event.getFacesContext();
Application application = facesContext.getApplication();
ViewHandler viewHandler = application.getViewHandler();
+
if (!(viewHandler instanceof AjaxViewHandler)) {
if(log.isDebugEnabled()){
log.debug("Set AjaxViewHandler on top of chain");
}
- application.setViewHandler(new AjaxViewHandler(viewHandler));
+
+ AjaxViewHandler ajaxViewHandler = new AjaxViewHandler(viewHandler);
+ ajaxViewHandler.fillChain(facesContext);
+
+ application.setViewHandler(ajaxViewHandler);
+ } else {
+ ((AjaxViewHandler) viewHandler).fillChain(facesContext);
}
initialized = true;
}
Copied: branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model (from rev 10627, trunk/framework/impl/src/main/java/org/ajax4jsf/model)
Deleted: branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -1,96 +0,0 @@
-package org.ajax4jsf.model;
-
-import javax.el.ValueExpression;
-import javax.faces.context.FacesContext;
-
-/**
- * @author Konstantin Mishin
- *
- */
-public class QueueImpl implements Queue {
-
- private FacesContext context;
-
- private ValueExpression nameExpression;
-
- private ValueExpression requestDelayExpression;
-
- private ValueExpression timeoutExpression;
-
- private ValueExpression ignoreDupResponsesExpression;
-
- private ValueExpression limitToListExpression;
-
- public QueueImpl() {
- this(null);
- }
-
- public QueueImpl(FacesContext context) {
- if(context == null) {
- this.context = FacesContext.getCurrentInstance();
- } else {
- this.context = context;
- }
- }
-
- public String getName() {
- String name = null;
- if (nameExpression != null) {
- name = (String) nameExpression.getValue(context.getELContext());
- }
- return name;
- }
-
- public Integer getRequestDelay() {
- Integer requestDelay = null;
- if (requestDelayExpression != null) {
- requestDelay = (Integer) requestDelayExpression.getValue(context.getELContext());
- }
- return requestDelay;
- }
-
- public Integer getTimeout() {
- Integer timeout = null;
- if (timeoutExpression != null) {
- timeout = (Integer) timeoutExpression.getValue(context.getELContext());
- }
- return timeout;
- }
-
- public Boolean getIgnoreDupResponses() {
- Boolean ignoreDupResponses = null;
- if (ignoreDupResponsesExpression != null) {
- ignoreDupResponses = (Boolean) ignoreDupResponsesExpression.getValue(context.getELContext());
- }
- return ignoreDupResponses;
- }
-
- public Boolean getLimitToList() {
- Boolean limitToList = null;
- if (limitToListExpression != null) {
- limitToList = (Boolean) limitToListExpression.getValue(context.getELContext());
- }
- return limitToList;
- }
-
- public void setNameExpression(ValueExpression nameExpression) {
- this.nameExpression = nameExpression;
- }
-
- public void setRequestDelayExpression(ValueExpression requestDelayExpression) {
- this.requestDelayExpression = requestDelayExpression;
- }
-
- public void setTimeoutExpression(ValueExpression timeoutExpression) {
- this.timeoutExpression = timeoutExpression;
- }
-
- public void setIgnoreDupResponsesExpression(
- ValueExpression ignoreDupResponsesExpression) {
- this.ignoreDupResponsesExpression = ignoreDupResponsesExpression;
- }
-
- public void setLimitToListExpression(ValueExpression limitToListExpression) {
- this.limitToListExpression = limitToListExpression;
- }
-}
Copied: branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java (from rev 10627, trunk/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java)
===================================================================
--- branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java (rev 0)
+++ branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/model/QueueImpl.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -0,0 +1,96 @@
+package org.ajax4jsf.model;
+
+import javax.el.ValueExpression;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Konstantin Mishin
+ *
+ */
+public class QueueImpl implements Queue {
+
+ private FacesContext context;
+
+ private ValueExpression nameExpression;
+
+ private ValueExpression requestDelayExpression;
+
+ private ValueExpression timeoutExpression;
+
+ private ValueExpression ignoreDupResponsesExpression;
+
+ private ValueExpression limitToListExpression;
+
+ public QueueImpl() {
+ this(null);
+ }
+
+ public QueueImpl(FacesContext context) {
+ if(context == null) {
+ this.context = FacesContext.getCurrentInstance();
+ } else {
+ this.context = context;
+ }
+ }
+
+ public String getName() {
+ String name = null;
+ if (nameExpression != null) {
+ name = (String) nameExpression.getValue(context.getELContext());
+ }
+ return name;
+ }
+
+ public Integer getRequestDelay() {
+ Integer requestDelay = null;
+ if (requestDelayExpression != null) {
+ requestDelay = (Integer) requestDelayExpression.getValue(context.getELContext());
+ }
+ return requestDelay;
+ }
+
+ public Integer getTimeout() {
+ Integer timeout = null;
+ if (timeoutExpression != null) {
+ timeout = (Integer) timeoutExpression.getValue(context.getELContext());
+ }
+ return timeout;
+ }
+
+ public Boolean getIgnoreDupResponses() {
+ Boolean ignoreDupResponses = null;
+ if (ignoreDupResponsesExpression != null) {
+ ignoreDupResponses = (Boolean) ignoreDupResponsesExpression.getValue(context.getELContext());
+ }
+ return ignoreDupResponses;
+ }
+
+ public Boolean getLimitToList() {
+ Boolean limitToList = null;
+ if (limitToListExpression != null) {
+ limitToList = (Boolean) limitToListExpression.getValue(context.getELContext());
+ }
+ return limitToList;
+ }
+
+ public void setNameExpression(ValueExpression nameExpression) {
+ this.nameExpression = nameExpression;
+ }
+
+ public void setRequestDelayExpression(ValueExpression requestDelayExpression) {
+ this.requestDelayExpression = requestDelayExpression;
+ }
+
+ public void setTimeoutExpression(ValueExpression timeoutExpression) {
+ this.timeoutExpression = timeoutExpression;
+ }
+
+ public void setIgnoreDupResponsesExpression(
+ ValueExpression ignoreDupResponsesExpression) {
+ this.ignoreDupResponsesExpression = ignoreDupResponsesExpression;
+ }
+
+ public void setLimitToListExpression(ValueExpression limitToListExpression) {
+ this.limitToListExpression = limitToListExpression;
+ }
+}
Modified: branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseFilter.java
===================================================================
--- branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseFilter.java 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseFilter.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -24,11 +24,13 @@
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
import java.util.Collections;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
+import java.util.regex.Pattern;
import javax.faces.application.ViewHandler;
import javax.servlet.Filter;
@@ -38,7 +40,6 @@
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
-import javax.servlet.ServletResponseWrapper;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
@@ -201,6 +202,41 @@
}
}
+ private static final Pattern AMPERSAND = Pattern.compile("&+");
+
+ private Map<String, String> parseQueryString(String queryString) {
+ if (queryString != null) {
+ Map<String, String> parameters = new HashMap<String, String>();
+
+ String[] nvPairs = AMPERSAND.split(queryString);
+ for (String nvPair : nvPairs) {
+ if (nvPair.length() == 0) {
+ continue;
+ }
+
+ int eqIdx = nvPair.indexOf('=');
+ if (eqIdx >= 0) {
+ try {
+ String name = URLDecoder.decode(nvPair.substring(0, eqIdx), "UTF-8");
+ if (!parameters.containsKey(name)) {
+ String value = URLDecoder.decode(nvPair.substring(eqIdx + 1), "UTF-8");
+
+ parameters.put(name, value);
+ }
+ } catch (UnsupportedEncodingException e) {
+ //log warning and skip this parameter
+ log.warn(e.getLocalizedMessage(), e);
+ }
+ }
+ }
+
+ return parameters;
+ } else {
+
+ return Collections.EMPTY_MAP;
+ }
+ }
+
private boolean isMultipartRequest(HttpServletRequest request) {
if (!"post".equals(request.getMethod().toLowerCase())) {
return false;
@@ -225,19 +261,23 @@
return false;
}
- private boolean checkFileCount(HttpServletRequest request) {
- HttpSession session = request.getSession();
- Map<String, Integer> map = (Map<String, Integer>) session
- .getAttribute(UPLOADED_COUNTER);
- if (map != null) {
- String id = request.getParameter("id");
- if (id != null) {
- Integer i = map.get(id);
- if (i != null && i == 0) {
- return false;
+ private boolean checkFileCount(HttpServletRequest request, String idParameter) {
+ HttpSession session = request.getSession(false);
+
+ if (session != null) {
+ Map<String, Integer> map = (Map<String, Integer>) session.getAttribute(UPLOADED_COUNTER);
+
+ if (map != null) {
+ String id = idParameter;
+ if (id != null) {
+ Integer i = map.get(id);
+ if (i != null && i == 0) {
+ return false;
+ }
}
}
}
+
return true;
}
@@ -292,94 +332,97 @@
* @throws ServletException
*/
protected void processUploadsAndHandleRequest(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
- HttpServletRequest httpRequest = (HttpServletRequest) request;
- String uid = httpRequest.getParameter(UPLOAD_FILES_ID);
+ HttpServletRequest httpRequest = (HttpServletRequest) request;
+
+ Map<String, String> queryParamMap = parseQueryString(httpRequest.getQueryString());
+ String uid = queryParamMap.get(UPLOAD_FILES_ID);
- if (uid != null) {
-
- if (isMultipartRequest(httpRequest)) {
- MultipartRequest multipartRequest = new MultipartRequest(httpRequest, createTempFiles, maxRequestSize, uid);
- Map<String, MultipartRequest> sessionsMap = null;
- Map<String, Object> percentMap = null;
-
- try {
- if (isFileSizeRestricted(request, maxRequestSize)) {
-
- boolean sendError = Boolean.parseBoolean(request.getParameter(SEND_HTTP_ERROR));
- if (sendError) {
- response.sendError(HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE);
- System.err.println("ERROR " + HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE + "request entity is larger than the server is willing or able to process.");
- return;
+ if (uid != null) {
+
+ if (isMultipartRequest(httpRequest)) {
+ MultipartRequest multipartRequest = new MultipartRequest(httpRequest, createTempFiles, maxRequestSize, uid);
+ Map<String, MultipartRequest> sessionsMap = null;
+ Map<String, Object> percentMap = null;
+
+ try {
+ if (isFileSizeRestricted(request, maxRequestSize)) {
+
+ boolean sendError = Boolean.parseBoolean(queryParamMap.get(SEND_HTTP_ERROR));
+ if (sendError) {
+ response.sendError(HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE);
+ System.err.println("ERROR " + HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE + "request entity is larger than the server is willing or able to process.");
+ return;
+ } else {
+ printResponse(response, "<html id=\"_richfaces_file_upload_size_restricted\"></html>");
+ }
+
+ } else if (!checkFileCount(httpRequest, queryParamMap.get("id"))) {
+ printResponse(response, "<html id=\"_richfaces_file_upload_forbidden\"></html>");
+ } else {
+
+ HttpSession session = httpRequest.getSession();
+ synchronized (session) {
+ sessionsMap = (Map<String, MultipartRequest>) session.getAttribute(REQUESTS_SESSIONS_BEAN_NAME);
+ percentMap = (Map<String, Object>) session.getAttribute(PERCENT_BEAN_NAME);
+ if (sessionsMap == null) {
+ sessionsMap = Collections.synchronizedMap(new HashMap<String, MultipartRequest>());
+ session.setAttribute(REQUESTS_SESSIONS_BEAN_NAME, sessionsMap);
+ }
+ if (percentMap == null) {
+ percentMap = new HashMap<String, Object>();
+ session.setAttribute(PERCENT_BEAN_NAME, percentMap);
+ }
+ }
+
+ /* associate percent value with file entry uid */
+ percentMap.put(uid, 0);
+ sessionsMap.put(uid, multipartRequest);
+
+ if (multipartRequest.parseRequest()) {
+ handleRequest(multipartRequest, multipartRequest.isFormUpload() ? response :
+ new HttpServletResponseWrapper(response){
+ @Override
+ public void setContentType(String type) {
+ super.setContentType(BaseXMLFilter.TEXT_HTML + ";charset=UTF-8");
+ }
+ }, chain);
+ } else {
+ printResponse(response, "<html id=\"_richfaces_file_upload_stopped\"></html>");
+ }
+
+ }
+
+ } finally {
+
+ if (sessionsMap != null) {
+ sessionsMap.remove(uid);
+ percentMap.remove(uid);
+ }
+
+ }
} else {
- printResponse(response, "<html id=\"_richfaces_file_upload_size_restricted\"></html>");
- }
-
- } else if (!checkFileCount(httpRequest)) {
- printResponse(response, "<html id=\"_richfaces_file_upload_forbidden\"></html>");
- } else {
-
- HttpSession session = httpRequest.getSession();
- synchronized (session) {
- sessionsMap = (Map<String, MultipartRequest>) session.getAttribute(REQUESTS_SESSIONS_BEAN_NAME);
- percentMap = (Map<String, Object>) session.getAttribute(PERCENT_BEAN_NAME);
- if (sessionsMap == null) {
- sessionsMap = Collections.synchronizedMap(new HashMap<String, MultipartRequest>());
- session.setAttribute(REQUESTS_SESSIONS_BEAN_NAME, sessionsMap);
- }
- if (percentMap == null) {
- percentMap = new HashMap<String, Object>();
- session.setAttribute(PERCENT_BEAN_NAME, percentMap);
- }
- }
-
- /* associate percent value with file entry uid */
- percentMap.put(uid, 0);
- sessionsMap.put(uid, multipartRequest);
-
- if (multipartRequest.parseRequest()) {
- handleRequest(multipartRequest, multipartRequest.isFormUpload() ? response :
- new HttpServletResponseWrapper(response){
- @Override
- public void setContentType(String type) {
- super.setContentType(BaseXMLFilter.TEXT_HTML + ";charset=UTF-8");
- }
- }, chain);
- } else {
- printResponse(response, "<html id=\"_richfaces_file_upload_stopped\"></html>");
- }
-
- }
-
- } finally {
-
- if (sessionsMap != null) {
- sessionsMap.remove(uid);
- percentMap.remove(uid);
- }
-
- }
- } else {
-
- if ("richfaces_file_upload_action_stop".equals(httpRequest.getParameter("action"))) {
- HttpSession session = httpRequest.getSession();
- Map<String, MultipartRequest> sessions = (Map<String, MultipartRequest>) session.getAttribute(REQUESTS_SESSIONS_BEAN_NAME);
- if (sessions != null) {
- MultipartRequest multipartRequest = sessions.get(uid);
- if (multipartRequest != null) {
- multipartRequest.stop();
+ if ("richfaces_file_upload_action_stop".equals(queryParamMap.get("action"))) {
+ HttpSession session = httpRequest.getSession(false);
+ if (session != null) {
+ Map<String, MultipartRequest> sessions = (Map<String, MultipartRequest>) session.getAttribute(REQUESTS_SESSIONS_BEAN_NAME);
+
+ if (sessions != null) {
+ MultipartRequest multipartRequest = sessions.get(uid);
+ if (multipartRequest != null) {
+ multipartRequest.stop();
+ }
+ handleRequest(request, response, chain);
+ }
+ }
+ } else {
+ handleRequest(request, response, chain);
+ }
}
+ } else {
handleRequest(request, response, chain);
- }
-
- } else {
- handleRequest(request, response, chain);
}
- }
- } else {
- handleRequest(request, response, chain);
}
- }
/**
* @param httpServletRequest
Modified: branches/jsf2.0/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- branches/jsf2.0/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2008-09-30 21:41:52 UTC (rev 10628)
@@ -552,6 +552,10 @@
this.onafterajax = onafterajax;
};
+A4J.AJAX.AjaxListener = function(type, callback){
+ this[type] = callback;
+};
+
A4J.AJAX._listeners= [];
A4J.AJAX.AddListener = function(listener){
A4J.AJAX._listeners.push(listener);
@@ -559,7 +563,15 @@
A4J.AJAX.removeListeners = function(listener){
A4J.AJAX._listeners = [];
};
+A4J.AJAX.removeListener = function(listener){
+ for (var i=A4J.AJAX._listeners.length-1;i>=0;i--){
+ if (A4J.AJAX._listeners[i] == listener){
+ A4J.AJAX._listeners.splice(i,1);
+ }
+ }
+};
+
//head element transformers
A4J.AJAX.HeadElementTransformer = function(elt){
this.elt = elt;
@@ -753,6 +765,13 @@
// statusID - DOM id request status tags.
// oncomplete - function for call after complete request.
A4J.AJAX.SubmitRequest = function( containerId, formId ,domEvt , options ) {
+ // Process listeners.
+ for(var li = 0; li < A4J.AJAX._listeners.length; li++){
+ var listener = A4J.AJAX._listeners[li];
+ if(listener.onbeforeajax){
+ listener.onbeforeajax(formId,domEvt,options);
+ }
+ }
// First - run onsubmit event for client-side validation.
LOG.debug("NEW AJAX REQUEST !!! with form :"+formId );
// var form = A4J.AJAX.locateForm(event);
Modified: branches/jsf2.0/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js
===================================================================
--- branches/jsf2.0/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js 2008-09-30 21:41:52 UTC (rev 10628)
@@ -29,12 +29,12 @@
},
// Public functions
getInnerHTML : function(context) {
- var html = "";
+ var children = [];
for (var i = 0; i < this.childs.length; i++)
{
- html += this.childs[i].getContent(context);
+ children.push(this.childs[i].getContent(context));
}
- return html;
+ return children.join('');
},
// Escape XML symbols - < > & ' ...
xmlEscape : function(value) {
Modified: branches/jsf2.0/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
===================================================================
--- branches/jsf2.0/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2008-09-30 21:41:52 UTC (rev 10628)
@@ -2,6 +2,18 @@
window.Richfaces = {};
}
+Richfaces.mergeStyles = function(userStyles,commonStyles) {
+ var i;
+ for(i in userStyles) {
+ if (typeof userStyles[i] == "object") {
+ this.mergeStyles(userStyles[i],commonStyles[i]);
+ } else {
+ commonStyles[i] += " " + userStyles[i];
+ }
+ }
+ return commonStyles;
+};
+
Richfaces.getComputedStyle = function(eltId, propertyName) {
var elt = $(eltId);
Modified: branches/jsf2.0/framework/impl/src/test/java/org/ajax4jsf/css/CssCompressorTest.java
===================================================================
--- branches/jsf2.0/framework/impl/src/test/java/org/ajax4jsf/css/CssCompressorTest.java 2008-09-30 17:21:21 UTC (rev 10627)
+++ branches/jsf2.0/framework/impl/src/test/java/org/ajax4jsf/css/CssCompressorTest.java 2008-09-30 21:41:52 UTC (rev 10628)
@@ -7,6 +7,7 @@
package org.ajax4jsf.css;
import java.io.IOException;
+import java.io.StringWriter;
import junit.framework.TestCase;
@@ -81,7 +82,24 @@
}
+ public void testSequentialComments() throws Exception {
+ StringBuffer cssBuffer = new StringBuffer("/* copyright */ body { color: red; } /* abc *//* cde */ html { color: red; } /* copyright end */");
+ CssCompressor compressor = new CssCompressor(cssBuffer);
+ StringWriter stringWriter = new StringWriter();
+ compressor.compress(stringWriter, -1);
+ stringWriter.close();
+ assertEquals("body{color:red;}html{color:red;}", stringWriter.toString());
+ }
-
+ public void testFakeComment() throws Exception {
+ //this test won't go as our CSS compressor is not aware of possible /**/ in url
+
+ //StringBuffer cssBuffer = new StringBuffer("/* copyright */ body { /* my style */ background-image: url(/*/); color: red; background-image: url(/****/); } /* copyright end */");
+ //CssCompressor compressor = new CssCompressor(cssBuffer);
+ //StringWriter stringWriter = new StringWriter();
+ //compressor.compress(stringWriter, -1);
+ //stringWriter.close();
+ //assertEquals("body{background-image:url(/*/);color:red;background-image:url(/****/);}", stringWriter.toString());
+ }
}
15 years, 11 months
JBoss Rich Faces SVN: r10627 - in trunk/framework: impl/src/main/java/org/ajax4jsf/event and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-30 13:21:21 -0400 (Tue, 30 Sep 2008)
New Revision: 10627
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java
trunk/framework/impl/src/main/java/org/ajax4jsf/event/InitPhaseListener.java
Log:
https://jira.jboss.org/jira/browse/RF-4554
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java 2008-09-30 14:31:29 UTC (rev 10626)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/application/ViewHandlerWrapper.java 2008-09-30 17:21:21 UTC (rev 10627)
@@ -51,8 +51,6 @@
*/
protected ViewHandler _handler;
- private boolean _initialized = false;
-
/**
* @param handler - to wrap.
*/
@@ -64,7 +62,6 @@
* @see javax.faces.application.ViewHandler#calculateLocale(javax.faces.context.FacesContext)
*/
public Locale calculateLocale(FacesContext context) {
- fillChain(context);
return _handler.calculateLocale(context);
}
@@ -72,7 +69,6 @@
* @see javax.faces.application.ViewHandler#calculateRenderKitId(javax.faces.context.FacesContext)
*/
public String calculateRenderKitId(FacesContext context) {
- fillChain(context);
return _handler.calculateRenderKitId(context);
}
@@ -80,7 +76,6 @@
* @see javax.faces.application.ViewHandler#createView(javax.faces.context.FacesContext, java.lang.String)
*/
public UIViewRoot createView(FacesContext context, String viewId) {
- fillChain(context);
return _handler.createView(context, viewId);
}
@@ -88,7 +83,6 @@
* @see javax.faces.application.ViewHandler#getActionURL(javax.faces.context.FacesContext, java.lang.String)
*/
public String getActionURL(FacesContext context, String url) {
- fillChain(context);
return _handler.getActionURL(context, url);
}
@@ -96,7 +90,6 @@
* @see javax.faces.application.ViewHandler#getResourceURL(javax.faces.context.FacesContext, java.lang.String)
*/
public String getResourceURL(FacesContext context, String url) {
- fillChain(context);
return _handler.getResourceURL(context, url);
}
@@ -104,7 +97,6 @@
* @see javax.faces.application.ViewHandler#renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)
*/
public void renderView(FacesContext context, UIViewRoot root) throws IOException, FacesException {
- fillChain(context);
_handler.renderView(context, root);
}
@@ -112,7 +104,6 @@
* @see javax.faces.application.ViewHandler#restoreView(javax.faces.context.FacesContext, java.lang.String)
*/
public UIViewRoot restoreView(FacesContext context, String viewId) {
- fillChain(context);
return _handler.restoreView(context, viewId);
}
@@ -120,7 +111,6 @@
* @see javax.faces.application.ViewHandler#writeState(javax.faces.context.FacesContext)
*/
public void writeState(FacesContext context) throws IOException {
- fillChain(context);
_handler.writeState(context);
}
@@ -143,38 +133,37 @@
return _handler.calculateCharacterEncoding(context);
}
/**
- * Fill view-handlers chain for alternate handlers.
+ * <p>Fill view-handlers chain for alternate handlers.</p>
+ * <p><em>NOTE:</em> Calls to this method should be synchronized externally since 3.3.0 version</p>
+ *
* @param context
*/
- synchronized protected void fillChain( FacesContext context){
- if(!_initialized){
- _initialized = true;
- String handlers = context.getExternalContext().getInitParameter(HANDLERS);
- if(null != handlers){
- ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
- String[] classes = handlers.split(",");
- for (int i = 0; i < classes.length; i++) {
- String handlerClass = classes[i];
- if (_log.isDebugEnabled()) {
- _log.debug(Messages.getMessage(Messages.CREATE_ALTERNATE_HANDLER, handlerClass));
- }
+ public void fillChain( FacesContext context){
+ String handlers = context.getExternalContext().getInitParameter(HANDLERS);
+ if(null != handlers){
+ ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
+ String[] classes = handlers.split(",");
+ for (int i = 0; i < classes.length; i++) {
+ String handlerClass = classes[i];
+ if (_log.isDebugEnabled()) {
+ _log.debug(Messages.getMessage(Messages.CREATE_ALTERNATE_HANDLER, handlerClass));
+ }
+ try {
+ Class<?> clazz = classLoader.loadClass(handlerClass);
try {
- Class<?> clazz = classLoader.loadClass(handlerClass);
- try {
- Constructor<?> constructor = clazz
- .getConstructor(new Class[] { ViewHandler.class });
- _handler = (ViewHandler) constructor
- .newInstance(new Object[] { _handler });
- } catch (NoSuchMethodException e) {
- // No constructor with parent class - create simple instance
- if (_log.isWarnEnabled()) {
- _log.warn(Messages.getMessage(Messages.ALTERNATE_HANDLER_CONSTRUCTOR_WARNING));
- }
- _handler = (ViewHandler) clazz.newInstance();
+ Constructor<?> constructor = clazz
+ .getConstructor(new Class[] { ViewHandler.class });
+ _handler = (ViewHandler) constructor
+ .newInstance(new Object[] { _handler });
+ } catch (NoSuchMethodException e) {
+ // No constructor with parent class - create simple instance
+ if (_log.isWarnEnabled()) {
+ _log.warn(Messages.getMessage(Messages.ALTERNATE_HANDLER_CONSTRUCTOR_WARNING));
}
- } catch (Exception e) {
- _log.error(Messages.getMessage(Messages.VIEW_HANDLER_INSTANTIATION_ERROR), e);
+ _handler = (ViewHandler) clazz.newInstance();
}
+ } catch (Exception e) {
+ _log.error(Messages.getMessage(Messages.VIEW_HANDLER_INSTANTIATION_ERROR), e);
}
}
}
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/event/InitPhaseListener.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/event/InitPhaseListener.java 2008-09-30 14:31:29 UTC (rev 10626)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/event/InitPhaseListener.java 2008-09-30 17:21:21 UTC (rev 10627)
@@ -80,11 +80,18 @@
FacesContext facesContext = event.getFacesContext();
Application application = facesContext.getApplication();
ViewHandler viewHandler = application.getViewHandler();
+
if (!(viewHandler instanceof AjaxViewHandler)) {
if(log.isDebugEnabled()){
log.debug("Set AjaxViewHandler on top of chain");
}
- application.setViewHandler(new AjaxViewHandler(viewHandler));
+
+ AjaxViewHandler ajaxViewHandler = new AjaxViewHandler(viewHandler);
+ ajaxViewHandler.fillChain(facesContext);
+
+ application.setViewHandler(ajaxViewHandler);
+ } else {
+ ((AjaxViewHandler) viewHandler).fillChain(facesContext);
}
initialized = true;
}
15 years, 11 months
JBoss Rich Faces SVN: r10626 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-09-30 10:31:29 -0400 (Tue, 30 Sep 2008)
New Revision: 10626
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
trunk/docs/userguide/en/src/main/docbook/included/column.xml
trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/messages.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/support.xml
Log:
RF-3560: Style class attributes
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2008-09-30 14:09:06 UTC (rev 10625)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2008-09-30 14:31:29 UTC (rev 10626)
@@ -175,7 +175,7 @@
load some data initially.</para>
</note>
<para><emphasis>
- <property>"ondataselect"</property>
+ <property>"ondateselect"</property>
</emphasis> attribute is used to define an event that is triggered
before date selection.</para>
<para><emphasis>
@@ -194,7 +194,7 @@
</rich:calendar>
...]]></programlisting>
<para><emphasis>
- <property>"ondataselect"</property>
+ <property>"ondateselect"</property>
</emphasis> could be used for possibility of date selection canceling.
See an example below:</para>
<programlisting role="XML"><![CDATA[...
@@ -202,12 +202,12 @@
...]]></programlisting>
<para>
<emphasis>
- <property>"oncurrentdataselected"</property>
+ <property>"oncurrentdateselected"</property>
</emphasis> event is fired when the "next/previous month" or
"next/previous year" button is pressed, and the value is applied. </para>
<para>
<emphasis>
- <property>"oncurrentdataselect"</property>
+ <property>"oncurrentdateselect"</property>
</emphasis> event is fired when the "next/previous month" or
"next/previous year" button is pressed, but the value is not applied
yet (you can change the logic of applying the value). Also this event
@@ -591,16 +591,21 @@
<ulink
url="http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..."
>resource</ulink> bundle with your JARs defining the same
- properties.
- </para>
+ properties. </para>
<note>
<title>Note:</title>
- <para>Only for Internet Explorer 6 and later.
- To make <emphasis role="bold"><property><rich:calendar></property></emphasis> inside <emphasis role="bold"><property><rich:modalPanel></property></emphasis> rendered properly, enable the standards-compliant mode.
- Explore <ulink url="http://msdn.microsoft.com/en-us/library/ms535242(VS.85).aspx">!DOCTYPE reference at MSDN</ulink> to find out how to do this.
- </para>
+ <para>Only for Internet Explorer 6 and later. To make <emphasis
+ role="bold">
+ <property><rich:calendar></property>
+ </emphasis> inside <emphasis role="bold">
+ <property><rich:modalPanel></property>
+ </emphasis> rendered properly, enable the
+ standards-compliant mode. Explore <ulink
+ url="http://msdn.microsoft.com/en-us/library/ms535242(VS.85).aspx"
+ >!DOCTYPE reference at MSDN</ulink> to find out
+ how to do this. </para>
</note>
-
+
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-09-30 14:09:06 UTC (rev 10625)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2008-09-30 14:31:29 UTC (rev 10626)
@@ -1,54 +1,55 @@
<?xml version='1.0' encoding='UTF-8'?>
<section>
-<sectioninfo>
-<keywordset>
-<keyword>rich:column</keyword>
-<keyword>colspan</keyword>
-<keyword>breakBefore</keyword>
-</keywordset>
-</sectioninfo>
- <table>
- <title>Component identification parameters </title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
- <entry>org.richfaces.Column</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlColumn</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.Column</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.ColumnRenderer</entry>
- </row>
- <row>
- <entry>tag-class</entry>
- <entry>org.richfaces.taglib.ColumnTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <section>
- <title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant of <property>column</property> on a page, use the following syntax:</para>
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:column</keyword>
+ <keyword>colspan</keyword>
+ <keyword>breakBefore</keyword>
+ </keywordset>
+ </sectioninfo>
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.Column</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlColumn</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.Column</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.ColumnRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.ColumnTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>To create the simplest variant of <property>column</property> on a page,
+ use the following syntax:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable var="set">
<rich:column>
<h:outputText value="#{set.property1}"/>
@@ -57,28 +58,32 @@
</rich:dataTable>
...
]]></programlisting>
- </section>
- <section>
- <title>Creating the Component Dynamically Using Java</title>
+ </section>
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlColumn;
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlColumn;
...
HtmlColumn myColumn = new HtmlColumn();
...
]]></programlisting>
-</section>
-<section>
-<title>Details of Usage</title>
-<para>To output a simple table, the <emphasis role="bold"><property><rich:column></property></emphasis> component is used the same way as the standard
-<emphasis role="bold"><property><h:column></property></emphasis>, i.e. the following code on a page is used:</para>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>To output a simple table, the <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> component is used the same way as the standard <emphasis
+ role="bold">
+ <property><h:column></property>
+ </emphasis>, i.e. the following code on a page is used:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
-<programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5">
<rich:column>
<f:facet name="header">State Flag</f:facet>
@@ -99,24 +104,30 @@
</rich:dataTable>
...
]]></programlisting>
- <para>The result is:</para>
- <figure>
- <title>Generated <emphasis role="bold"><property><rich:column></property></emphasis> component</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-<para>Now, in order to group columns with text information into one row in one column with a flag, use
- the <emphasis ><property>"colspan"</property></emphasis> attribute, which is similar to an HTML one, specifying that the first column contains 3 columns.
- In addition, it's necessary to specify that the next column begins from the first row with the help of the
- <code>breakBefore="true"</code>.</para>
+ <para>The result is:</para>
+ <figure>
+ <title>Generated <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Now, in order to group columns with text information into one row in one
+ column with a flag, use the <emphasis>
+ <property>"colspan"</property>
+ </emphasis> attribute, which is similar to an HTML one, specifying
+ that the first column contains 3 columns. In addition, it's
+ necessary to specify that the next column begins from the first row
+ with the help of the
+ <code>breakBefore="true"</code>.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5">
<rich:column colspan="3">
<h:graphicImage value="#{cap.stateFlag}"/>
@@ -133,24 +144,32 @@
</rich:dataTable>
...
]]></programlisting>
-<para>As a result the following structure is rendered:</para>
-<figure>
- <title><emphasis role="bold"><property><rich:column></property></emphasis> modified with <emphasis ><property>"colspan"</property></emphasis> and
- <emphasis><property>"breakbefore"</property></emphasis> attributes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The same way is used for <property>columns</property> grouping with the <emphasis ><property>"rowspan"</property></emphasis>
- attribute that is similar to an HTML one responsible for rows quantity definition occupied with the
- current one. The only thing to add in the example is an instruction to move onto the next row for each next after the second column.</para>
+ <para>As a result the following structure is rendered:</para>
+ <figure>
+ <title><emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> modified with <emphasis>
+ <property>"colspan"</property>
+ </emphasis> and <emphasis>
+ <property>"breakbefore"</property>
+ </emphasis> attributes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The same way is used for <property>columns</property> grouping with the <emphasis>
+ <property>"rowspan"</property>
+ </emphasis> attribute that is similar to an HTML one responsible for
+ rows quantity definition occupied with the current one. The only thing
+ to add in the example is an instruction to move onto the next row for
+ each next after the second column.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5">
<rich:column rowspan="3">
<f:facet name="header">State Flag</f:facet>
@@ -169,34 +188,46 @@
</rich:dataTable>
...
]]></programlisting>
-<para>As a result:</para>
-<figure>
- <title><emphasis role="bold"><property><rich:column></property></emphasis> generated with <emphasis ><property>"rowspan"</property></emphasis> attribute</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Hence, additionally to a standard output of a particular row provided with the <emphasis role="bold"><property><h:column></property></emphasis>
- component, it becomes possible to group easily the rows with special HTML attribute.</para>
- <para>The columns also could be grouped in a particular way with the help of the <emphasis role="bold"><property><h:columnGroup></property></emphasis>
- component that is described in <link linkend="columnGroup">the following chapter</link>.</para>
- <para><ulink url="http://wiki.jboss.org/wiki/DynamicColumns">Here</ulink> you can find additional information about dynamic columns.</para>
-</section>
-
- <section>
- <title>Sorting and Filtering</title>
- <section id="sort">
- <title>Sorting</title>
- <para>
- In order to sort the columns you should use <emphasis><property>"sortBy"</property></emphasis> attribute that indicates what values to be sorted.
- In order to sort the column you should click on its header. See the following example.
- </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>As a result:</para>
+ <figure>
+ <title><emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> generated with <emphasis>
+ <property>"rowspan"</property>
+ </emphasis> attribute</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Hence, additionally to a standard output of a particular row provided with
+ the <emphasis role="bold">
+ <property><h:column></property>
+ </emphasis> component, it becomes possible to group easily the rows
+ with special HTML attribute.</para>
+ <para>The columns also could be grouped in a particular way with the help of the
+ <emphasis role="bold">
+ <property><h:columnGroup></property>
+ </emphasis> component that is described in <link linkend="columnGroup"
+ >the following chapter</link>.</para>
+ <para><ulink url="http://wiki.jboss.org/wiki/DynamicColumns">Here</ulink> you
+ can find additional information about dynamic columns.</para>
+ </section>
+
+ <section>
+ <title>Sorting and Filtering</title>
+ <section id="sort">
+ <title>Sorting</title>
+ <para> In order to sort the columns you should use <emphasis>
+ <property>"sortBy"</property>
+ </emphasis> attribute that indicates what values to be
+ sorted. In order to sort the column you should click on its
+ header. See the following example. </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<h:form>
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" width="300px">
<f:facet name="header">
@@ -217,26 +248,31 @@
</rich:dataTable>
</h:form>
...]]></programlisting>
- <para>This is result:</para>
- <figure>
- <title>
- <emphasis role="bold"><property><rich:column></property></emphasis> with <emphasis><property>"sortBy"</property></emphasis> attribute
- </title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- The <emphasis><property>"selfSorted"</property></emphasis> attribute
- that would add the possibility of automatic sorting by clicking the column header.
- Default value is "true". In the example below the second column is unavailable for sorting.
- </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>This is result:</para>
+ <figure>
+ <title>
+ <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> with <emphasis>
+ <property>"sortBy"</property>
+ </emphasis> attribute </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column5.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para> The <emphasis>
+ <property>"selfSorted"</property>
+ </emphasis> attribute that would add the possibility of
+ automatic sorting by clicking the column header. Default
+ value is "true". In the example below the
+ second column is unavailable for sorting. </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="cap">
<rich:column>
<f:facet name="header">
@@ -251,27 +287,31 @@
<h:outputText value="#{cap.state}"/>
</rich:column>
</rich:dataTable>
-...]]></programlisting>
- <para>
- <emphasis><property>"sortOrder"</property></emphasis> attribute
- is used for changing the sorting of columns by means of external controls.
- </para>
- <para>Possible values are:</para>
- <itemizedlist>
- <listitem><para>
- "ASCENDING" - column is sorted in ascending
- </para></listitem>
- <listitem><para>
- "DESCENDING" - column is sorted in descending
- </para></listitem>
- <listitem><para>
- "UNSORTED" - column isn't sorted
- </para></listitem>
- </itemizedlist>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+...]]></programlisting>
+ <para>
+ <emphasis>
+ <property>"sortOrder"</property>
+ </emphasis> attribute is used for changing the sorting of
+ columns by means of external controls. </para>
+ <para>Possible values are:</para>
+ <itemizedlist>
+ <listitem>
+ <para> "ASCENDING" - column is
+ sorted in ascending </para>
+ </listitem>
+ <listitem>
+ <para> "DESCENDING" - column is
+ sorted in descending </para>
+ </listitem>
+ <listitem>
+ <para> "UNSORTED" - column
+ isn't sorted </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<h:form>
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" width="300px">
<f:facet name="header">
@@ -292,39 +332,47 @@
</rich:dataTable>
</h:form>
...]]></programlisting>
- <para>Below you can see the result:</para>
- <figure>
- <title><emphasis role="bold"><property><rich:column></property></emphasis> with <emphasis><property>"sortOrder"</property></emphasis> attribute</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column6.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- In the example above the first column is sorted in descending order. But if recurring rows appear in the table the relative second column are sorted in ascending order.
- </para>
- <para>You can customize the sorting's icon element using "rich-sort-icon" class.</para>
- <para>
- The <emphasis><property>"sortPriority"</property></emphasis> attribute
- defines a set of column <property>ids</property> in the order the columns could be set.
- </para>
- <para>
- If the columns sort order changed externally sort priorities could be used to define which columns will be sorted first.
- </para>
- <!--para>
+ <para>Below you can see the result:</para>
+ <figure>
+ <title><emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> with <emphasis>
+ <property>"sortOrder"</property>
+ </emphasis> attribute</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column6.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para> In the example above the first column is sorted in descending
+ order. But if recurring rows appear in the table the
+ relative second column are sorted in ascending order. </para>
+ <para>You can customize the sorting's icon element using
+ "rich-sort-icon" class.</para>
+ <!-- <para> The <emphasis>
+ <property>"sortPriority"</property>
+ </emphasis> attribute defines a set of column
+ <property>ids</property> in the order the columns could be
+ set. </para>
+ <para> If the columns sort order changed externally sort priorities
+ could be used to define which columns will be sorted first. </para> -->
+ <!--para>
Note that <emphasis><property>"sortPriority"</property></emphasis> attribute is defined in
the <emphasis role="bold"><property><rich:dataTable></property></emphasis> component!
</para-->
- <para>
- The <emphasis><property>"sortable"</property></emphasis> attribute which is used
- with <emphasis role="bold"><property><rich:scrollableDataTable></property></emphasis> component.
- In the following example only the first column could be sorted.
- </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para> The <emphasis>
+ <property>"sortable"</property>
+ </emphasis> attribute which is used with <emphasis
+ role="bold">
+ <property><rich:scrollableDataTable></property>
+ </emphasis> component. In the following example only the
+ first column could be sorted. </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1"
id="carList" columnClasses="col" value="#{dataTableScrollerBean.allCars}" var="category"
sortMode="single" binding="#{dataTableScrollerBean.table}"
@@ -349,50 +397,67 @@
</rich:column>
</rich:scrollableDataTable>
...]]></programlisting>
- <figure>
- <title>The <emphasis><property>"sortable"</property></emphasis> attribute usage</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column7.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para><emphasis><property>"sortExpression"</property></emphasis> attribute defines a bean property which is used for sorting of a column.</para>
- </section>
-
- <section id="filter">
- <title>Filtering</title>
-
- <para>
- There are two ways to filter the column value:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Using built-in filtering. It uses <code>startsWith()</code> function to make filtering.
- In this case you need to define <emphasis><property>"filterBy"</property></emphasis> attribute
- at column you want to be filterable. This attribute defines iterable object property which is used when filtering performed.
- </para>
- <para>
- The <emphasis><property>"filterValue"</property></emphasis> attribute is used to get or change current filtering value.
- It could be defined with initial filtering value on the page or as value binding to get/change it on server.
- If the <emphasis><property>"filterValue"</property></emphasis> attribute isn't empty from the beginning table is filtered on the first rendering.
- </para>
- <para>
- You can customize the input form using "rich-filter-input" CSS class.
- </para>
- <para>
- In order to change filter event you could use <emphasis><property>"filterEvent"</property></emphasis> attribute
- on column, e.g. "onblur"(default value).
- </para>
- <!--para>
+ <figure>
+ <title>The <emphasis>
+ <property>"sortable"</property>
+ </emphasis> attribute usage</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column7.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para><emphasis>
+ <property>"sortExpression"</property>
+ </emphasis> attribute defines a bean property which is used
+ for sorting of a column.</para>
+ </section>
+
+ <section id="filter">
+ <title>Filtering</title>
+
+ <para> There are two ways to filter the column value: </para>
+ <itemizedlist>
+ <listitem>
+ <para> Using built-in filtering. It uses
+ <code>startsWith()</code>
+ function to make filtering. In this case
+ you need to define <emphasis>
+ <property>"filterBy"</property>
+ </emphasis> attribute at column you want
+ to be filterable. This attribute defines
+ iterable object property which is used
+ when filtering performed. </para>
+ <para> The <emphasis>
+ <property>"filterValue"</property>
+ </emphasis> attribute is used to get or
+ change current filtering value. It could
+ be defined with initial filtering value
+ on the page or as value binding to
+ get/change it on server. If the <emphasis>
+ <property>"filterValue"</property>
+ </emphasis> attribute isn't
+ empty from the beginning table is
+ filtered on the first rendering. </para>
+ <para> You can customize the input form using
+ "rich-filter-input"
+ CSS class. </para>
+ <para> In order to change filter event you could
+ use <emphasis>
+ <property>"filterEvent"</property>
+ </emphasis> attribute on column, e.g.
+ "onblur"(default
+ value). </para>
+ <!--para>
The <emphasis><property>"filterDefaultLabel"</property></emphasis> attribute defines the label that appears instead of input field.
</para-->
- <para>Below you can see the example:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>Below you can see the example:</para>
+ <para>
+ <emphasis role="bold"
+ >Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" width="500px">
<rich:column filterBy="#{cap.state}" filterValue="#{filterName.filterBean}" filterEvent="onkeyup">
<h:outputText value="#{cap.state}"/>
@@ -401,38 +466,47 @@
<h:outputText value="#{cap.name}"/>
</rich:column>
</rich:dataTable>
-...]]></programlisting>
- <para>
- This is the result:
- </para>
- <figure>
- <title>Built-in filtering feature usage</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column8.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>
- Using external filtering. In this case you need to write your custom filtering function or expression and define controls.
- </para>
- <para>
- The <emphasis><property>"filterExpression"</property></emphasis> attribute is used to define expression evaluated to boolean value.
- This expression checks if the object satisfies filtering condition.
- </para>
- <para>
- The <emphasis><property>"filterMethod"</property></emphasis> attribute is defined with method binding.
- This method accepts on Object parameter and return boolean value.
- So, this method also could be used to check if the object satisfies filtering condition.
- The usage of this attribute is the best way for implementing your own complex business logic.
- </para>
- <para>See the following example:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+...]]></programlisting>
+ <para> This is the result: </para>
+ <figure>
+ <title>Built-in filtering feature usage</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/column8.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para> Using external filtering. In this case you
+ need to write your custom filtering
+ function or expression and define
+ controls. </para>
+ <para> The <emphasis>
+ <property>"filterExpression"</property>
+ </emphasis> attribute is used to define
+ expression evaluated to boolean value.
+ This expression checks if the object
+ satisfies filtering condition. </para>
+ <para> The <emphasis>
+ <property>"filterMethod"</property>
+ </emphasis> attribute is defined with
+ method binding. This method accepts on
+ Object parameter and return boolean
+ value. So, this method also could be
+ used to check if the object satisfies
+ filtering condition. The usage of this
+ attribute is the best way for
+ implementing your own complex business
+ logic. </para>
+ <para>See the following example:</para>
+ <para>
+ <emphasis role="bold"
+ >Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" id="table">
<rich:column filterMethod="#{filteringBean.filterStates}">
<f:facet name="header">
@@ -454,126 +528,144 @@
</rich:column>
</rich:dataTable>
...]]></programlisting>
- </listitem>
- </itemizedlist>
- </section>
- </section>
-
- <section>
- <title>Look-and-Feel Customization</title>
-
- <para>For skinnability implementation, the components use a <emphasis>
- <property>style class redefinition method</property>.
- </emphasis> Default style classes are mapped on <emphasis>
- <property>skin parameters.</property>
- </emphasis></para>
-
- <para>There are two ways to redefine the appearance of all <emphasis role="bold">
- <property><rich:column></property>
- </emphasis> components at once:</para>
-
- <itemizedlist>
- <listitem>
- <para>Redefine the corresponding skin parameters</para>
- </listitem>
-
- <listitem>
- <para>Add to your style sheets <emphasis>
- <property>style classes</property>
- </emphasis> used by a <emphasis role="bold">
- <property><rich:column></property>
- </emphasis> component</para>
- </listitem>
- </itemizedlist>
- </section>
-
- <section>
- <title>Skin Parameters Redefinition</title>
-
- <para>Skin parameters redefinition for <emphasis role="bold">
- <property><rich:column></property>
- </emphasis> are the same as for the <emphasis role="bold">
- <property><rich:dataTable></property>
- </emphasis> <link linkend="SPR">component</link>.</para>
- </section>
-
- <section>
- <title>Definition of Custom Style Classes</title>
-
- <para>Custom style classes for <emphasis role="bold">
- <property><rich:column></property>
- </emphasis> are the same as for the <emphasis role="bold">
- <property><rich:dataTable></property>
- </emphasis> <link linkend="DofCCS">component</link>.
- </para>
-
- <para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:column></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
- same names (possible classes could be found in the tables <link linkend="SPR"> above</link>) and define necessary properties in them. </para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+ </listitem>
+ </itemizedlist>
+ </section>
+ </section>
+
+ <section>
+ <title>Look-and-Feel Customization</title>
+
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method</property>.
+ </emphasis> Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
+
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> components at once:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Redefine the corresponding skin parameters</para>
+ </listitem>
+
+ <listitem>
+ <para>Add to your style sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> component</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title>Skin Parameters Redefinition</title>
+
+ <para>Skin parameters redefinition for <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> are the same as for the <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>
+ <link linkend="SPR">component</link>.</para>
+ </section>
+
+ <section>
+ <title>Definition of Custom Style Classes</title>
+
+ <para>Custom style classes for <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> are the same as for the <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis>
+ <link linkend="DofCCS">component</link>. </para>
+
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis> components on a page using CSS, it's enough to
+ create classes with the same names (possible classes could be found in
+ the tables <link linkend="SPR"> above</link>) and define necessary
+ properties in them. </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.rich-table-cell{
font-style: italic;
}
-...]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with predefined classes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column_pc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In the example cells font style was changed.</para>
-
- <para>Also it's possible to change styles of particular <emphasis role="bold"
- ><property><rich:column></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
- ><property><rich:column></property></emphasis> <emphasis><property>styleClass</property></emphasis> attributes. An example is placed below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+...]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column_pc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the example cells font style was changed.</para>
+
+ <para>Also it's possible to change styles of particular <emphasis
+ role="bold">
+ <property><rich:column></property>
+ </emphasis> component. In this case you should create own style
+ classes and use them in corresponding <emphasis role="bold">
+ <property><rich:column></property>
+ </emphasis>
+ <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes. An example is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.myClass{
font-weight: bolder;
}
-...]]></programlisting>
- <para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
- ><property><rich:column> </property></emphasis> is defined as it's shown in the example below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<rich:column styleClass="myClass">
-]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with own classes and <emphasis><property>styleClass</property></emphasis> attributes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column_oc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>As it could be seen on the picture above, the font weight for second column was changed.</para>
- </section>
-
- <section>
- <title>Relevant Resources Links</title>
- <para><ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?c=column"
- >Here</ulink> you can see the example of <emphasis role="bold"
- ><property><rich:column></property></emphasis> usage and sources for the given example. </para>
- </section>
+...]]></programlisting>
+ <para>The <emphasis>
+ <property>"styleClass"</property>
+ </emphasis> attribute for <emphasis role="bold">
+ <property><rich:column> </property>
+ </emphasis> is defined as it's shown in the example below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<rich:column styleClass="myClass">
+]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with own classes and <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column_oc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As it could be seen on the picture above, the font weight for second
+ column was changed.</para>
+ </section>
+
+ <section>
+ <title>Relevant Resources Links</title>
+ <para><ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?c=column"
+ >Here</ulink> you can see the example of <emphasis
+ role="bold">
+ <property><rich:column></property>
+ </emphasis> usage and sources for the given example. </para>
+ </section>
</section>
-
\ No newline at end of file
Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2008-09-30 14:09:06 UTC (rev 10625)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2008-09-30 14:31:29 UTC (rev 10626)
@@ -1,56 +1,56 @@
<?xml version='1.0' encoding='UTF-8'?>
<section>
- <sectioninfo>
- <keywordset>
- <keyword>scroller</keyword>
- <keyword>rich:datascroller</keyword>
- <keyword>Htmldatascroller</keyword>
- <keyword>tables</keyword>
- </keywordset>
- </sectioninfo>
+ <sectioninfo>
+ <keywordset>
+ <keyword>scroller</keyword>
+ <keyword>rich:datascroller</keyword>
+ <keyword>Htmldatascroller</keyword>
+ <keyword>tables</keyword>
+ </keywordset>
+ </sectioninfo>
- <table>
- <title>Component identification parameters </title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
- <entry>org.richfaces.Datascroller</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlDatascroller</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.Datascroller</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.DataScrollerRenderer</entry>
- </row>
- <row>
- <entry>tag-class</entry>
- <entry>org.richfaces.taglib.DatascrollerTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.Datascroller</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlDatascroller</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.Datascroller</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.DataScrollerRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.DatascrollerTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <section>
- <title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it could be used on a page:</para>
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>Here is a simple example as it could be used on a page:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<h:dataTable id="table">
...
</h:dataTable>
@@ -58,64 +58,73 @@
<rich:datascroller for="table"/>
...
]]></programlisting>
- </section>
- <section>
- <title>Creating the Component Dynamically Using Java</title>
+ </section>
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDatascroller;
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDatascroller;
...
HtmlDatascroller myScroll = new HtmlDatascroller();
...
]]></programlisting>
- </section>
- <section>
- <title>Details of Usage</title>
- <para>The <emphasis role="bold">
- <property><rich:datascroller></property>
- </emphasis> component provides table scrolling functionalitity the same as TOMAHAWK scroller but
- with Ajax requests usage.</para>
- <para>The component should be placed into footer of the parent table or be bound to it with the <emphasis>
- <property>"for"</property>
- </emphasis> attribute. Note, that <emphasis><property>"for"</property></emphasis> is evaluated on view build, not on view render, that is why it will ignore JSTL tags.</para>
- <para>The table should also have the defined <emphasis>
- <property>"rows"</property>
- </emphasis> attribute limiting the quantity of inputted table rows.</para>
- <para>The scroller could limit the maximum quantity of rendered links on the table pages with
- the help of the <emphasis>
- <property>"maxPages"</property>
- </emphasis> attribute.</para>
- <para>Component provides two controllers groups for switching:</para>
- <itemizedlist>
- <listitem><para>Page numbers for switching onto a particular page</para></listitem>
- <listitem><para>The controls of fast switching: <emphasis>
- <property>"first",</property>
- </emphasis>
- <emphasis>
- <property>"last",</property>
- </emphasis>
- <emphasis>
- <property>"next",</property>
- </emphasis>
- <emphasis>
- <property>"previous",</property>
- </emphasis>
- <emphasis>
- <property>"fastforward",</property>
- </emphasis>
- <emphasis>
- <property>"fastrewind"</property>
- </emphasis></para></listitem>
- </itemizedlist>
- <para>The controls of fast switching are created adding the facets component with the
- corresponding name:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[ ...
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>The <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> component provides table scrolling functionalitity the
+ same as TOMAHAWK scroller but with Ajax requests usage.</para>
+ <para>The component should be placed into footer of the parent table or be bound
+ to it with the <emphasis>
+ <property>"for"</property>
+ </emphasis> attribute. Note, that <emphasis>
+ <property>"for"</property>
+ </emphasis> is evaluated on view build, not on view render, that is
+ why it will ignore JSTL tags.</para>
+ <para>The table should also have the defined <emphasis>
+ <property>"rows"</property>
+ </emphasis> attribute limiting the quantity of inputted table rows.</para>
+ <para>The scroller could limit the maximum quantity of rendered links on the
+ table pages with the help of the <emphasis>
+ <property>"maxPages"</property>
+ </emphasis> attribute.</para>
+ <para>Component provides two controllers groups for switching:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Page numbers for switching onto a particular
+ page</para>
+ </listitem>
+ <listitem>
+ <para>The controls of fast switching: <emphasis>
+ <property>"first",</property>
+ </emphasis>
+ <emphasis>
+ <property>"last",</property>
+ </emphasis>
+ <emphasis>
+ <property>"next",</property>
+ </emphasis>
+ <emphasis>
+ <property>"previous",</property>
+ </emphasis>
+ <emphasis>
+ <property>"fastforward",</property>
+ </emphasis>
+ <emphasis>
+ <property>"fastrewind"</property>
+ </emphasis></para>
+ </listitem>
+ </itemizedlist>
+ <para>The controls of fast switching are created adding the facets component
+ with the corresponding name:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[ ...
<rich:datascroller for="table" maxPages="10">
<f:facet name="first">
<h:outputText value="First"/>
@@ -126,36 +135,39 @@
</rich:datascroller>
...
]]></programlisting>
- <figure>
- <title><emphasis role="bold"><property><rich:datascroller></property></emphasis> controls of fast switching</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/datascroller2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The screenshot shows one controller from each group.</para>
- <para> There are also facets used to create the disabled states:
- <code>"first_disabled",</code>
- <code>"last_disabled",</code>
- <code>"next_disabled",</code>
- <code>"previous_disabled",</code>
- <code>"fastforward_disabled",</code>
- <code>"fastrewind_disabled"</code>. </para>
- <para>For the <code>"fastforward"/"fastrewind"</code>
- controls customization the additional <emphasis>
- <property>"fastStep"</property>
- </emphasis> attribute is used. The attribute indicates pages quantity to switch onto when fast
- scrolling is used. </para>
-
- <para>
- The <emphasis><property>"page"</property></emphasis> is a value-binding attribute used to
- define and save current page number. The example is placed below.
- </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <figure>
+ <title><emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> controls of fast switching</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/datascroller2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The screenshot shows one controller from each group.</para>
+ <para> There are also facets used to create the disabled states:
+ <code>"first_disabled",</code>
+ <code>"last_disabled",</code>
+ <code>"next_disabled",</code>
+ <code>"previous_disabled",</code>
+ <code>"fastforward_disabled",</code>
+ <code>"fastrewind_disabled"</code>. </para>
+ <para>For the
+ <code>"fastforward"/"fastrewind"</code>
+ controls customization the additional <emphasis>
+ <property>"fastStep"</property>
+ </emphasis> attribute is used. The attribute indicates pages quantity
+ to switch onto when fast scrolling is used. </para>
+
+ <para> The <emphasis>
+ <property>"page"</property>
+ </emphasis> is a value-binding attribute used to define and save
+ current page number. The example is placed below. </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<h:form id="myForm">
<rich:dataTable id="carList" rows="7" value="#{dataTableScrollerBean.allCars}" var="category">
<f:facet name="header">
@@ -193,24 +205,25 @@
...
]]></programlisting>
- <para>
- In the example above you can enter the page number you want and set it by clicking
- on the <emphasis role="bold"><property><h:commandButton></property></emphasis>. By the way,
- if you use <emphasis role="bold"><property><rich:datascroller></property></emphasis> page links
- the input field rerenders and current page number changes.
- </para>
- <para>
- This is a result:
- </para>
- <figure>
- <title>The <emphasis><property>"page"</property></emphasis> attribute usage</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/datascroller3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <!--
+ <para> In the example above you can enter the page number you want and set it by
+ clicking on the <emphasis role="bold">
+ <property><h:commandButton></property>
+ </emphasis>. By the way, if you use <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> page links the input field rerenders and current page
+ number changes. </para>
+ <para> This is a result: </para>
+ <figure>
+ <title>The <emphasis>
+ <property>"page"</property>
+ </emphasis> attribute usage</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/datascroller3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <!--
The <emphasis><property>"pageIndexVar"</property></emphasis> and <emphasis>
<property>&;pagesVar"</property>
</emphasis> attributes provide an ability to show the current page and the number of pages in
@@ -218,23 +231,25 @@
<property><rich:datascroller></property>
</emphasis>.
-->
-
-
- <para>
- The <emphasis><property>"pageIndexVar"</property></emphasis>
- and <emphasis><property>"pagesVar"</property></emphasis> attributes
- define a request scope variables and provide an ability to show the current page
- and the number of pages in the
- <emphasis role="bold"><property><rich:datascroller></property></emphasis>.
- </para>
- <para>
- These attributes are used for definition the names of variables,
- that is used in the facet with name <emphasis><property>"pages"</property></emphasis>.
- An example can be found below: </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+
+
+ <para> The <emphasis>
+ <property>"pageIndexVar"</property>
+ </emphasis> and <emphasis>
+ <property>"pagesVar"</property>
+ </emphasis> attributes define a request scope variables and provide an
+ ability to show the current page and the number of pages in the
+ <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis>. </para>
+ <para> These attributes are used for definition the names of variables, that is
+ used in the facet with name <emphasis>
+ <property>"pages"</property>
+ </emphasis>. An example can be found below: </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<h:form>
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5">
<rich:column>
@@ -251,333 +266,383 @@
</h:form>
...
]]></programlisting>
- <para> It's possible to insert optional separators between controls. For this purpose use a <emphasis>
- <property>"controlSeparator"</property>
- </emphasis> facet. An example is placed below. </para>
- <programlisting role="XML"><![CDATA[ ...
+ <para> It's possible to insert optional separators between controls.
+ For this purpose use a <emphasis>
+ <property>"controlSeparator"</property>
+ </emphasis> facet. An example is placed below. </para>
+ <programlisting role="XML"><![CDATA[ ...
<f:facet name="controlSeparator">
<h:graphicImage value="/image/sep.png"/>
</f:facet>
...
]]></programlisting>
- <para>
- Starting from 3.2.1 of RichFaces multiple <emphasis role="bold"><property><rich:datascroller></property></emphasis> instances behavior and page bindings are corrected. Incorrect page after model changes handling is added.
- Phase Listener called before RenderResponce scans the page for the <emphasis role="bold"><property><rich:datascroller></property></emphasis> and performs the following operations:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Checks if the <emphasis role="bold"><property><rich:datascroller></property></emphasis> is rendered. (If the checking generates an exception, the <emphasis role="bold"><property><rich:datascroller></property></emphasis> is considered to be not rendered )
- </para>
- </listitem>
- <listitem>
- <para>
- If the <emphasis role="bold"><property><rich:datascroller></property></emphasis> is rendered - the table to which the <emphasis role="bold"><property><rich:datascroller></property></emphasis> is attached gets the value of the page attribute of <emphasis role="bold"><property><rich:datascroller></property></emphasis>.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- Information about the <emphasis><property>"process"</property></emphasis> attribute usage you can find <link linkend="process">here</link>.
- </para>
- <note>
- <title>Note:</title>
- <para>Make sure, that all <emphasis role="bold"><property><rich:datascroller></property></emphasis> components, defined for a table, have same values for <emphasis><property>"pages"</property></emphasis> attributes.
- The page, specified in the last <emphasis><property>"page"</property></emphasis>, will be rendered in browser.
- </para>
- </note>
- </section>
-
- <section>
- <title>Look-and-Feel Customization</title>
-
- <para>For skinnability implementation, the components use a <emphasis>
- <property>style class redefinition method.</property>
- </emphasis> Default style classes are mapped on <emphasis>
- <property>skin parameters.</property>
- </emphasis></para>
-
- <para>There are two ways to redefine the appearance of all <emphasis role="bold">
- <property><rich:datascroller></property>
- </emphasis> components at once:</para>
-
- <itemizedlist>
- <listitem>
- <para>Redefine the corresponding skin parameters</para>
- </listitem>
-
- <listitem>
- <para>Add to your style sheets <emphasis>
- <property>style classes</property>
- </emphasis> used by a <emphasis role="bold">
- <property><rich:datascroller></property>
- </emphasis> component</para>
- </listitem>
- </itemizedlist>
- </section>
-
- <section>
- <title>Skin Parameters Redefinition</title>
- <table>
- <title>Skin parameters redefinition for a wrapper element</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>tableBackgroundColor</entry>
- <entry>background-color</entry>
- </row>
- <row>
- <entry>panelBorderColor</entry>
- <entry>border-color</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <para> Starting from 3.2.1 of RichFaces multiple <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> instances behavior and page bindings are corrected.
+ Incorrect page after model changes handling is added. Phase Listener
+ called before RenderResponce scans the page for the <emphasis
+ role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> and performs the following operations: </para>
+ <itemizedlist>
+ <listitem>
+ <para> Checks if the <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> is rendered. (If the checking
+ generates an exception, the <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> is considered to be not rendered )
+ </para>
+ </listitem>
+ <listitem>
+ <para> If the <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> is rendered - the table to which the
+ <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> is attached gets the value of the page
+ attribute of <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis>. </para>
+ </listitem>
+ </itemizedlist>
+ <para> Information about the <emphasis>
+ <property>"process"</property>
+ </emphasis> attribute usage you can find <link linkend="process"
+ >here</link>. </para>
+ <note>
+ <title>Note:</title>
+ <para>Make sure, that all <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> components, defined for a table, have same
+ values for all<emphasis>
+ <property>"page"</property>
+ </emphasis> attributes. The page, specified in the last <emphasis>
+ <property>"page"</property>
+ </emphasis>, will be rendered in browser. </para>
+ </note>
+ </section>
- <table>
- <title>Skin parameters redefinition for a button</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>additionalBackgroundColor</entry>
- <entry>background-color</entry>
- </row>
- <row>
- <entry>panelBorderColor</entry>
- <entry>border-color</entry>
- </row>
- <row>
- <entry>generalFamilyFont</entry>
- <entry>font-family</entry>
- </row>
- <row>
- <entry>generalSizeFont</entry>
- <entry>font-size</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <section>
+ <title>Look-and-Feel Customization</title>
- <table>
- <title>Skin parameters redefinition for an active button</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>generalTextColor</entry>
- <entry>border-top-color</entry>
- </row>
- <row>
- <entry>generalTextColor</entry>
- <entry>color</entry>
- </row>
- <row>
- <entry>generalFamilyFont</entry>
- <entry>font-family</entry>
- </row>
- <row>
- <entry>generalSizeFont</entry>
- <entry>font-size</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis> Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
- <table>
- <title>Skin parameters redefinition for an inactive button</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>headerBackgroundColor</entry>
- <entry>border-top-color</entry>
- </row>
- <row>
- <entry>headerBackgroundColor</entry>
- <entry>color</entry>
- </row>
- <row>
- <entry>generalFamilyFont</entry>
- <entry>font-family</entry>
- </row>
- <row>
- <entry>generalSizeFont</entry>
- <entry>font-size</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> components at once:</para>
- <section>
- <title>Definition of Custom Style Classes</title>
+ <itemizedlist>
+ <listitem>
+ <para>Redefine the corresponding skin parameters</para>
+ </listitem>
- <para>On the screenshot there are classes names that define styles for component elements.</para>
+ <listitem>
+ <para>Add to your style sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> component</para>
+ </listitem>
+ </itemizedlist>
+ </section>
- <figure>
- <title>Style classes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/datascroller_cn.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <section>
+ <title>Skin Parameters Redefinition</title>
+ <table>
+ <title>Skin parameters redefinition for a wrapper element</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tableBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <table id="tab_cn2">
- <title>Classes names that define a component appearance</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-datascr</entry>
- <entry>Defines styles for a wrapper <div> element of a datascroller</entry>
- </row>
- <row>
- <entry>rich-dtascroller-table</entry>
- <entry>Defines styles for a wrapper table element of a datascroller</entry>
- </row>
- <row>
- <entry>rich-datascr-button</entry>
- <entry>Defines styles for a button</entry>
- </row>
-
- <row>
- <entry>rich-datascr-ctrls-separator</entry>
- <entry>Defines styles for a separator between buttons</entry>
- </row>
- </tbody>
+ <table>
+ <title>Skin parameters redefinition for a button</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>additionalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- </tgroup>
- </table>
- <table>
- <title>Classes names that define a buttons appearance</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-datascr-act</entry>
- <entry>Defines styles for an active button</entry>
- </row>
- <row>
- <entry>rich-datascr-inact</entry>
- <entry>Defines styles for an inactive button</entry>
- </row>
- <row>
- <entry>rich-datascr-button-dsbld</entry>
- <entry>Defines styles for a disabled button</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:datascroller></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
- same names (possible classes could be found in the table <link linkend="tab_cn2">above</link>) and define necessary properties in them. An example is placed below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+ <table>
+ <title>Skin parameters redefinition for an active button</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>border-top-color</entry>
+ </row>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for an inactive button</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>border-top-color</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ <section>
+ <title>Definition of Custom Style Classes</title>
+
+ <para>On the screenshot there are classes names that define styles for component
+ elements.</para>
+
+ <figure>
+ <title>Style classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/datascroller_cn.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <table id="tab_cn2">
+ <title>Classes names that define a component appearance</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-datascr</entry>
+ <entry>Defines styles for a wrapper
+ <div> element of
+ a datascroller</entry>
+ </row>
+ <row>
+ <entry>rich-dtascroller-table</entry>
+ <entry>Defines styles for a wrapper
+ table element of a
+ datascroller</entry>
+ </row>
+ <row>
+ <entry>rich-datascr-button</entry>
+ <entry>Defines styles for a
+ button</entry>
+ </row>
+
+ <row>
+ <entry>rich-datascr-ctrls-separator</entry>
+ <entry>Defines styles for a separator
+ between buttons</entry>
+ </row>
+ </tbody>
+
+ </tgroup>
+ </table>
+ <table>
+ <title>Classes names that define a buttons appearance</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-datascr-act</entry>
+ <entry>Defines styles for an active
+ button</entry>
+ </row>
+ <row>
+ <entry>rich-datascr-inact</entry>
+ <entry>Defines styles for an inactive
+ button</entry>
+ </row>
+ <row>
+ <entry>rich-datascr-button-dsbld</entry>
+ <entry>Defines styles for a disabled
+ button</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> components on a page using CSS, it's enough to
+ create classes with the same names (possible classes could be found in
+ the table <link linkend="tab_cn2">above</link>) and define necessary
+ properties in them. An example is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.rich-datascr-button{
color: #CD6600;
}
-...]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with predefined classes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/datascroller_pc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In the example an input text font style was changed.</para>
-
- <para>Also it's possible to change styles of particular <emphasis role="bold"
- ><property><rich:datascroller></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
- ><property><rich:datascroller></property></emphasis> <emphasis role="italic"><property>styleClass</property></emphasis> attributes. An example is placed below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+...]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/datascroller_pc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the example an input text font style was changed.</para>
+
+ <para>Also it's possible to change styles of particular <emphasis
+ role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> component. In this case you should create own style
+ classes and use them in corresponding <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis>
+ <emphasis role="italic">
+ <property>styleClass</property>
+ </emphasis> attributes. An example is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.myClass{
background-color: #C6E2FF;
}
-...]]></programlisting>
- <para>The <emphasis role="italic"><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
- ><property><rich:datascroller> </property></emphasis> is defined as it's shown in the example below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<rich:datascroller ... selectedStyleClass="myClass"/>
-]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with own classes and <emphasis><property>styleClass</property></emphasis> attributes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/datascroller_oc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>As it could be seen on the picture above, background color of the selected cell on scroller was changed.</para>
-
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para>
- <ulink
- url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTableScroller.jsf..."
- >Here</ulink> you can see the example of <emphasis role="bold"
- ><property><rich:datascroller></property></emphasis> usage and sources for the given example. </para>
- <para> The solution about how to do correct pagination using datascroller (load a part of data from
- database) can be found on the <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060199#..."
- >RichFaces Users Forum</ulink>. </para>
- <para>How to use <emphasis role="bold"><property><rich:dataTable></property></emphasis> and <emphasis
- role="bold"><property><rich:datascroller></property></emphasis> in a context of Extended
- Data Model see <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115636"
- >here</ulink>.</para>
- </section>
+...]]></programlisting>
+ <para>The <emphasis role="italic">
+ <property>"styleClass"</property>
+ </emphasis> attribute for <emphasis role="bold">
+ <property><rich:datascroller> </property>
+ </emphasis> is defined as it's shown in the example below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<rich:datascroller ... selectedStyleClass="myClass"/>
+]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with own classes and <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/datascroller_oc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As it could be seen on the picture above, background color of the selected
+ cell on scroller was changed.</para>
+
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>
+ <ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTableScroller.jsf..."
+ >Here</ulink> you can see the example of <emphasis
+ role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> usage and sources for the given example. </para>
+ <para> The solution about how to do correct pagination using datascroller (load
+ a part of data from database) can be found on the <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060199#..."
+ >RichFaces Users Forum</ulink>. </para>
+ <para>How to use <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis> and <emphasis role="bold">
+ <property><rich:datascroller></property>
+ </emphasis> in a context of Extended Data Model see <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115636"
+ >here</ulink>.</para>
+ </section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2008-09-30 14:09:06 UTC (rev 10625)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2008-09-30 14:31:29 UTC (rev 10626)
@@ -1,53 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<section>
- <sectioninfo>
- <keywordset>
- <keyword>rich:menuItem</keyword>
- </keywordset>
- </sectioninfo>
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:menuItem</keyword>
+ </keywordset>
+ </sectioninfo>
- <table>
- <title>Component identification parameters</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
- <entry>org.richfaces.MenuItem</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlMenuItem</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.DropDownMenu</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.MenuItemRenderer</entry>
- </row>
- <row>
- <entry>tag-class</entry>
- <entry>org.richfaces.taglib.MenuItemTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <table>
+ <title>Component identification parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.MenuItem</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlMenuItem</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.DropDownMenu</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.MenuItemRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.MenuItemTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <section>
- <title>Creating the Component with a Page Tag</title>
- <para>Here is a simple example as it could be used on a page:</para>
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>Here is a simple example as it could be used on a page:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dropDownMenu>
...
<rich:menuItem value="Active"/>
@@ -55,91 +55,98 @@
<rich:dropDownMenu>
...
]]></programlisting>
- </section>
+ </section>
- <section>
- <title>Creating the Component Dynamically Using Java</title>
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlMenuItem;
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlMenuItem;
...
HtmlMenuItem myMenuItem = new HtmlMenuItem();
...
]]></programlisting>
- </section>
+ </section>
- <section>
- <title>Details of Usage</title>
- <para> The <emphasis>
- <property>"value"</property>
- </emphasis> attribute defines the text representation for an item element. </para>
- <para> There are two icon-related attributes. The <emphasis>
- <property>"icon"</property>
- </emphasis> attribute defines an icon. The <emphasis>
- <property>"iconDisabled"</property>
- </emphasis> attribute defines an icon for a disabled item. Also you can use the <emphasis>
- <property>"icon"</property>
- </emphasis> and <emphasis>
- <property>"iconDisabled"</property>
- </emphasis> facets. If the facets are defined, the corresponding <emphasis>
- <property>"icon"</property>
- </emphasis> and <emphasis>
- <property>"iconDisabled"</property>
- </emphasis> attributes are ignored and the facets content is shown as an icon. It could
- be used for an item check box implementation. </para>
- <para> Here is an example: </para>
- <programlisting role="XML"><![CDATA[...
+ <section>
+ <title>Details of Usage</title>
+ <para> The <emphasis>
+ <property>"value"</property>
+ </emphasis> attribute defines the text representation for an item
+ element. </para>
+ <para> There are two icon-related attributes. The <emphasis>
+ <property>"icon"</property>
+ </emphasis> attribute defines an icon. The <emphasis>
+ <property>"iconDisabled"</property>
+ </emphasis> attribute defines an icon for a disabled item. Also you
+ can use the <emphasis>
+ <property>"icon"</property>
+ </emphasis> and <emphasis>
+ <property>"iconDisabled"</property>
+ </emphasis> facets. If the facets are defined, the corresponding <emphasis>
+ <property>"icon"</property>
+ </emphasis> and <emphasis>
+ <property>"iconDisabled"</property>
+ </emphasis> attributes are ignored and the facets content is shown as
+ an icon. It could be used for an item check box implementation. </para>
+ <para> Here is an example: </para>
+ <programlisting role="XML"><![CDATA[...
<f:facet name="icon">
<h:selectBooleanCheckbox value="#{bean.property}"/>
</f:facet>
...
]]></programlisting>
- <para>The <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis>
- <emphasis>
- <property>"submitMode"</property>
- </emphasis> attribute can be set to three possible parameters:</para>
+ <para>The <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis>
+ <emphasis>
+ <property>"submitMode"</property>
+ </emphasis> attribute can be set to three possible parameters:</para>
- <itemizedlist>
- <listitem>
- <para><code>Server</code> (default)</para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para><code>Server</code> (default)</para>
+ </listitem>
+ </itemizedlist>
- <para>Regular form submission request is used.</para>
+ <para>Regular form submission request is used.</para>
- <itemizedlist>
- <listitem>
- <para><code>Ajax</code></para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>Ajax</code>
+ </para>
+ </listitem>
+ </itemizedlist>
- <para>Ajax submission is used for switching.</para>
+ <para>Ajax submission is used for switching.</para>
- <itemizedlist>
- <listitem>
- <para><code>None</code></para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>None</code>
+ </para>
+ </listitem>
+ </itemizedlist>
- <para>The <emphasis>
- <property>"action"</property>
- </emphasis> and <emphasis>
- <property>"actionListener"</property>
- </emphasis> item's attributes are ignored. Menu items don' fire any
- submits themselves. The behavior is fully defined by the components nested into items.</para>
- <para> For example, you can put any content into an item, but, in this case, you should set
- the <emphasis>
- <property>"mode"</property>
- </emphasis> attribute as <emphasis>
- <property>"none"</property>
- </emphasis>.</para>
- <para> Here is an example: </para>
- <programlisting role="XML"><![CDATA[...
+ <para>The <emphasis>
+ <property>"action"</property>
+ </emphasis> and <emphasis>
+ <property>"actionListener"</property>
+ </emphasis> item's attributes are ignored. Menu items
+ don' fire any submits themselves. The behavior is fully
+ defined by the components nested into items.</para>
+ <para> For example, you can put any content into an item, but, in this case, you
+ should set the <emphasis>
+ <property>"submitMode"</property>
+ </emphasis> attribute as <emphasis>
+ <property>"none"</property>
+ </emphasis>.</para>
+ <para> Here is an example: </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dropDownMenu>
...
<rich:menuItem submitMode="none">
@@ -149,293 +156,327 @@
<rich:dropDownMenu>
...
]]></programlisting>
- <para> You can use the <emphasis>
- <property>"disabled"</property>
- </emphasis> attribute to set the item state. </para>
- <para> Here is an example: </para>
- <programlisting role="XML"><![CDATA[...
+ <para> You can use the <emphasis>
+ <property>"disabled"</property>
+ </emphasis> attribute to set the item state. </para>
+ <para> Here is an example: </para>
+ <programlisting role="XML"><![CDATA[...
<rich:dropDownMenu>
<rich:menuItem value="Disable" disabled="true"/>
<rich:dropDownMenu>
...
]]></programlisting>
- <note><title>Note:</title><para> The <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> component was designed to be used only for pop-up menu list creation.</para></note>
- <para>
- Information about the <emphasis><property>"process"</property></emphasis> attribute usage you can find <link linkend="process">here</link>.
- </para>
- </section>
+ <note>
+ <title>Note:</title>
+ <para> The <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> component was designed to be used only for
+ pop-up menu list creation.</para>
+ </note>
+ <para> Information about the <emphasis>
+ <property>"process"</property>
+ </emphasis> attribute usage you can find <link linkend="process"
+ >here</link>. </para>
+ </section>
- <section>
- <title>Look-and-Feel Customization</title>
+ <section>
+ <title>Look-and-Feel Customization</title>
- <para>For skinnability implementation, the components use a <emphasis>
- <property>style class redefinition method.</property>
- </emphasis> Default style classes are mapped on <emphasis>
- <property>skin parameters.</property>
- </emphasis></para>
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis> Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
- <para>There are two ways to redefine the appearance of all <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> components at once:</para>
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> components at once:</para>
- <itemizedlist>
- <listitem>
- <para>Redefine the corresponding skin parameters</para>
- </listitem>
+ <itemizedlist>
+ <listitem>
+ <para>Redefine the corresponding skin parameters</para>
+ </listitem>
- <listitem>
- <para>Add to your style sheets <emphasis>
- <property>style classes</property>
- </emphasis> used by a <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> component</para>
- </listitem>
- </itemizedlist>
- </section>
+ <listitem>
+ <para>Add to your style sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> component</para>
+ </listitem>
+ </itemizedlist>
+ </section>
- <section>
- <title>Skin Parameters Redefinition</title>
- <table>
- <title>Skin parameters redefinition for an item</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>generalFamilyFont</entry>
- <entry>font-family</entry>
- </row>
- <row>
- <entry>generalSizeFont</entry>
- <entry>font-size</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <section>
+ <title>Skin Parameters Redefinition</title>
+ <table>
+ <title>Skin parameters redefinition for an item</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <table>
- <title>Skin parameters redefinition for a hovered item</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>tipBorderColor</entry>
- <entry>border-color</entry>
- </row>
- <row>
- <entry>tipBackgroundColor</entry>
- <entry>background-color</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <table>
+ <title>Skin parameters redefinition for a hovered item</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tipBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>tipBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <table>
- <title>Skin parameters redefinition for a disabled item</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>tabDisabledTextColor</entry>
- <entry>color</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <table>
+ <title>Skin parameters redefinition for a disabled item</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tabDisabledTextColor</entry>
+ <entry>color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <table>
- <title>Skin parameters redefinition for a label</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>generalTextColor</entry>
- <entry>color</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
+ <table>
+ <title>Skin parameters redefinition for a label</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
- <section>
- <title> Definition of Custom Style Classes </title>
- <para> On the screenshot there are classes names that define styles for component elements.</para>
- <figure>
- <title>Classes names</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/menuItem_cn.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <table id="tab_mI">
- <title>Classes names that define an appearance of item elements</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-menu-item</entry>
- <entry>Defines styles for a wrapper <div> element for an
- item</entry>
- </row>
- <row>
- <entry>rich-menu-item-label</entry>
- <entry>Defines styles for a label of an item</entry>
- </row>
- <row>
- <entry>rich-menu-item-icon</entry>
- <entry>Defines styles for the left icon of an item</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names that define different states</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-menu-item-disabled</entry>
- <entry>Defines styles for a wrapper <div> element of an
- item</entry>
- </row>
- <row>
- <entry>rich-menu-item-enabled</entry>
- <entry>Defines styles for a wrapper <div> element of an
- enabled item</entry>
- </row>
- <row>
- <entry>rich-menu-item-hover</entry>
- <entry>Defines styles for a wrapper <div> element of a hover
- item</entry>
- </row>
+ <section>
+ <title> Definition of Custom Style Classes </title>
+ <para> On the screenshot there are classes names that define styles for
+ component elements.</para>
+ <figure>
+ <title>Classes names</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/menuItem_cn.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <table id="tab_mI">
+ <title>Classes names that define an appearance of item elements</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-menu-item</entry>
+ <entry>Defines styles for a wrapper
+ <div> element
+ for an item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-label</entry>
+ <entry>Defines styles for a label of an
+ item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-icon</entry>
+ <entry>Defines styles for the left icon
+ of an item</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>Classes names that define different states</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-menu-item-disabled</entry>
+ <entry>Defines styles for a wrapper
+ <div> element of
+ an item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-enabled</entry>
+ <entry>Defines styles for a wrapper
+ <div> element of
+ an enabled item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-hover</entry>
+ <entry>Defines styles for a wrapper
+ <div> element of
+ a hover item</entry>
+ </row>
- <row>
- <entry>rich-menu-item-label-disabled</entry>
- <entry>Defines styles for a label of a disabled item</entry>
- </row>
- <row>
- <entry>rich-menu-item-icon-disabled</entry>
- <entry>Defines styles for the left icon of a disabled item</entry>
- </row>
- <row>
- <entry>rich-menu-item-label-enabled</entry>
- <entry>Defines styles for a label of an enabled item</entry>
- </row>
- <row>
- <entry>rich-menu-item-icon-enabled</entry>
- <entry>Defines styles for the left icon of an enabled item</entry>
- </row>
- <row>
- <entry>rich-menu-item-label-selected</entry>
- <entry>Defines styles for a label of a selected item</entry>
- </row>
- <row>
- <entry>rich-menu-item-icon-selected</entry>
- <entry>Defines styles for the left icon of a selected item</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
- same names (possible classes could be found in the tables <link linkend="tab_mI"> above</link>) and define necessary properties in them. </para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+ <row>
+ <entry>rich-menu-item-label-disabled</entry>
+ <entry>Defines styles for a label of a
+ disabled item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-icon-disabled</entry>
+ <entry>Defines styles for the left icon
+ of a disabled item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-label-enabled</entry>
+ <entry>Defines styles for a label of an
+ enabled item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-icon-enabled</entry>
+ <entry>Defines styles for the left icon
+ of an enabled item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-label-selected</entry>
+ <entry>Defines styles for a label of a
+ selected item</entry>
+ </row>
+ <row>
+ <entry>rich-menu-item-icon-selected</entry>
+ <entry>Defines styles for the left icon
+ of a selected item</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> components on a page using CSS, it's enough to
+ create classes with the same names (possible classes could be found in
+ the tables <link linkend="tab_mI"> above</link>) and define necessary
+ properties in them. </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.rich-menu-item-disabled{
font-style: italic;
}
-...]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with predefined classes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/menuItem_pc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In the example a disabled item font style was changed.</para>
-
- <para>Also it's possible to change styles of particular <emphasis role="bold"
- ><property><rich:menuItem></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
- ><property><rich:menuItem></property></emphasis> <emphasis><property>styleClass</property></emphasis> attributes. An example is placed below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+...]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/menuItem_pc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the example a disabled item font style was changed.</para>
+
+ <para>Also it's possible to change styles of particular <emphasis
+ role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> component. In this case you should create own style
+ classes and use them in corresponding <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis>
+ <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes. An example is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.myClass{
border-color: #bed6f8;
background-color: #ffffff;
}
-...]]></programlisting>
- <para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
- ><property><rich:menuItem></property></emphasis> is defined as it's shown in the example below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<rich:menuItem ... selectStyle="myClass">
-]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with own classes and <emphasis><property>styleClass</property></emphasis> attributes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/menuItem_oc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>As it could be seen on the picture above, the background color and border color for selected item were changed. </para>
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para><ulink
- url="http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMenu.jsf?c=me..."
- >Here</ulink> you can see the example of <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> usage and sources for the given example. </para>
- </section>
+...]]></programlisting>
+ <para>The <emphasis>
+ <property>"styleClass"</property>
+ </emphasis> attribute for <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> is defined as it's shown in the example below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<rich:menuItem ... selectStyle="myClass">
+]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with own classes and <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/menuItem_oc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As it could be seen on the picture above, the background color and border
+ color for selected item were changed. </para>
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para><ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMenu.jsf?c=me..."
+ >Here</ulink> you can see the example of <emphasis
+ role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> usage and sources for the given example. </para>
+ </section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/messages.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/messages.xml 2008-09-30 14:09:06 UTC (rev 10625)
+++ trunk/docs/userguide/en/src/main/docbook/included/messages.xml 2008-09-30 14:31:29 UTC (rev 10626)
@@ -1,105 +1,155 @@
<?xml version='1.0' encoding='UTF-8'?>
<section>
- <sectioninfo>
- <keywordset>
- <keyword>messages</keyword>
- <keyword>rich:messages</keyword>
- <keyword>HtmlMessages</keyword>
- </keywordset>
- </sectioninfo>
+ <sectioninfo>
+ <keywordset>
+ <keyword>messages</keyword>
+ <keyword>rich:messages</keyword>
+ <keyword>HtmlMessages</keyword>
+ </keywordset>
+ </sectioninfo>
- <table>
- <title>Component identification parameters </title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
- <entry>org.richfaces.component.RichMessages</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlRichMessages</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.component.RichMessages</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.renderkit.html.HtmlRichMessagesRendere</entry>
- </row>
- <row>
- <entry>tag-class</entry>
- <entry>org.richfaces.taglib.RichMessagesTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.component.RichMessages</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlRichMessages</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.component.RichMessages</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.renderkit.html.HtmlRichMessagesRendere</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.RichMessagesTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <section>
- <title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant of <property>message</property> on a page, use the
- following syntax:</para>
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>To create the simplest variant of <property>message</property> on a page,
+ use the following syntax:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:messages/>
...
]]></programlisting>
- </section>
+ </section>
- <section>
- <title>Creating the Component Dynamically Using Java</title>
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlRichMessages;
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlRichMessages;
...
HtmlRichMessages myMessages = new HtmlRichMessages();
...
]]></programlisting>
- </section>
+ </section>
- <section>
- <title>Details of Usage</title>
- <para> The component has the same behavior as standard <emphasis role="bold">
- <property><h:message></property>
- </emphasis>component except next features: <itemizedlist>
- <listitem><para>It's ajaxRendered. It means that the component is reRendered after Ajax
- request automatically without outputPanel usage.</para></listitem>
- <listitem><para>The component optionally provides "passed" state which will be
- shown if no message to be displayed.</para></listitem>
- <listitem><para>Provides possibility to add some marker to message. By default, a marker element
- isn't shown.</para></listitem>
- </itemizedlist>
- </para>
- <para>The component provides two parts to be optionally defined: marker and informational label
- before the marker for every message.</para>
- <para> Set of facet which can be used for a marker defining: <itemizedlist>
- <listitem><para><emphasis><property>"passedMarker"</property></emphasis>. This facet is provided to allow setting a marker to be displayed if there is no message.</para></listitem>
- <listitem><para><emphasis><property>"errorMarker"</property></emphasis>. This facet is provided to allow setting a marker to be displayed if there is a message with a severity class of "ERROR".</para></listitem>
- <listitem><para><emphasis><property>"fatalMarker"</property></emphasis>. This facet is provided to allow setting a marker to be displayed if there is a message with a severity class of "FATAL".</para></listitem>
- <listitem><para><emphasis><property>"infoMarker"</property></emphasis>. This facet is provided to allow setting a marker to be displayed if there is a message with a severity class of "INFO".</para></listitem>
- <listitem><para><emphasis><property>"warnMarker"</property></emphasis>. This facet is provided to allow setting a marker to be displayed if there is an message with a severity class of "WARN".</para></listitem>
- </itemizedlist>
- </para>
+ <section>
+ <title>Details of Usage</title>
+ <para> The component has the same behavior as standard <emphasis role="bold">
+ <property><h:message></property>
+ </emphasis>component except next features: <itemizedlist>
+ <listitem>
+ <para>It's ajaxRendered. It means that
+ the component is reRendered after Ajax
+ request automatically without
+ outputPanel usage.</para>
+ </listitem>
+ <listitem>
+ <para>The component optionally provides
+ "passed" state which
+ will be shown if no message to be
+ displayed.</para>
+ </listitem>
+ <listitem>
+ <para>Provides possibility to add some marker to
+ message. By default, a marker element
+ isn't shown.</para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>The component provides two parts to be optionally defined: marker and
+ informational label before the marker for every message.</para>
+ <para> Set of facet which can be used for a marker defining: <itemizedlist>
+ <listitem>
+ <para><emphasis>
+ <property>"passedMarker"</property>
+ </emphasis>. This facet is provided to
+ allow setting a marker to be displayed
+ if there is no message.</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>
+ <property>"errorMarker"</property>
+ </emphasis>. This facet is provided to
+ allow setting a marker to be displayed
+ if there is a message with a severity
+ class of
+ "ERROR".</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>
+ <property>"fatalMarker"</property>
+ </emphasis>. This facet is provided to
+ allow setting a marker to be displayed
+ if there is a message with a severity
+ class of
+ "FATAL".</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>
+ <property>"infoMarker"</property>
+ </emphasis>. This facet is provided to
+ allow setting a marker to be displayed
+ if there is a message with a severity
+ class of
+ "INFO".</para>
+ </listitem>
+ <listitem>
+ <para><emphasis>
+ <property>"warnMarker"</property>
+ </emphasis>. This facet is provided to
+ allow setting a marker to be displayed
+ if there is an message with a severity
+ class of
+ "WARN".</para>
+ </listitem>
+ </itemizedlist>
+ </para>
- <para>The following example shows different variants of customization of the component.</para>
+ <para>The following example shows different variants of customization of the
+ component.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
- <rich:messages layout="table" tooltip="true" showDetail="false" showSummary="true" passedLabel="No Errors" var="messages">
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:messages layout="table" tooltip="true" showDetail="false" showSummary="true" passedLabel="No Errors"
<f:facet name="errorMarker">
<h:graphicImage url="/image/error.png"/>
</f:facet>
@@ -113,146 +163,167 @@
...
]]></programlisting>
- </section>
+ </section>
- <section>
- <title>Look-and-Feel Customization</title>
-
- <para>For skinnability implementation, the components use a <emphasis>
- <property>style class redefinition method.</property>
- </emphasis></para>
-
- <para>There are no skin parameters and default predefined values. To redefine the appearance of all <emphasis
- role="bold">
- <property><rich:messages></property>
- </emphasis> components at once, you should only add to your style sheets <emphasis>
- <property>style classes</property>
- </emphasis> used by a <emphasis
- role="bold">
- <property><rich:messages></property>
- </emphasis> component.</para>
-
- </section>
+ <section>
+ <title>Look-and-Feel Customization</title>
- <section>
- <title>Definition of Custom Style Classes</title>
-
- <para>On the screenshot there are classes names that define styles for component elements.</para>
-
- <figure>
- <title>Classes names</title>
-
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/messages_cn.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <table id="tab_msC">
- <title>Classes names that define a component appearance</title>
-
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
-
- <entry>Description</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>rich-messages</entry>
-
- <entry>Defines styles for a wrapper element</entry>
- </row>
-
- <row>
- <entry>rich-messages-marker</entry>
-
- <entry>Defines styles for a marker</entry>
- </row>
-
- <row>
- <entry>rich-messages-label</entry>
-
- <entry>Defines styles for a label</entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis></para>
- <para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:messages></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
- same names (possible classes could be found in the tables <link linkend="tab_msC"> above</link>) and define necessary properties in them. </para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+ <para>There are no skin parameters and default predefined values. To redefine
+ the appearance of all <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> components at once, you should only add to your style
+ sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> component.</para>
+
+ </section>
+
+ <section>
+ <title>Definition of Custom Style Classes</title>
+
+ <para>On the screenshot there are classes names that define styles for component
+ elements.</para>
+
+ <figure>
+ <title>Classes names</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/messages_cn.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <table id="tab_msC">
+ <title>Classes names that define a component appearance</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+
+ <entry>Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>rich-messages</entry>
+
+ <entry>Defines styles for a wrapper
+ element</entry>
+ </row>
+
+ <row>
+ <entry>rich-messages-marker</entry>
+
+ <entry>Defines styles for a
+ marker</entry>
+ </row>
+
+ <row>
+ <entry>rich-messages-label</entry>
+
+ <entry>Defines styles for a
+ label</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> components on a page using CSS, it's enough to
+ create classes with the same names (possible classes could be found in
+ the tables <link linkend="tab_msC"> above</link>) and define necessary
+ properties in them. </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.rich-messages-label{
font-style:italic;
}
-...]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with predefined classes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/messages_pc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In the example the font style for messages was changed.</para>
-
- <para>Also it's possible to change styles of particular <emphasis role="bold"
- ><property><rich:messages></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
- ><property><rich:messages></property></emphasis> <emphasis><property>styleClass</property></emphasis> attributes. An example is placed below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+...]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/messages_pc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the example the font style for messages was changed.</para>
+
+ <para>Also it's possible to change styles of particular <emphasis
+ role="bold">
+ <property><rich:messages></property>
+ </emphasis> component. In this case you should create own style
+ classes and use them in corresponding <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis>
+ <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes. An example is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.myClass{
color:red;
}
-...]]></programlisting>
- <para>The <emphasis><property>"errorClass"</property></emphasis> attribute for <emphasis role="bold"
- ><property><rich:messages></property></emphasis> is defined as it's shown in the example below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<rich:messages ... errorClass="myClass"/>
-]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with own classes and <emphasis><property>styleClass</property></emphasis> attributes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/messages_oc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>As it could be seen on the picture above, color of messages was changed.</para>
-
-
-
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para><ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/messsages.jsf?c=messages"
- >Here</ulink> you can see the example of <emphasis role="bold"
- ><property><rich:messages></property></emphasis> usage and sources for the given example. </para>
- </section>
+...]]></programlisting>
+ <para>The <emphasis>
+ <property>"errorClass"</property>
+ </emphasis> attribute for <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> is defined as it's shown in the example below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<rich:messages ... errorClass="myClass"/>
+]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with own classes and <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/messages_oc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As it could be seen on the picture above, color of messages was changed.</para>
+
+
+
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para><ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/messsages.jsf?c=messages"
+ >Here</ulink> you can see the example of <emphasis
+ role="bold">
+ <property><rich:messages></property>
+ </emphasis> usage and sources for the given example. </para>
+ </section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2008-09-30 14:09:06 UTC (rev 10625)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2008-09-30 14:31:29 UTC (rev 10626)
@@ -1,138 +1,143 @@
<?xml version="1.0" encoding="UTF-8"?>
<section>
- <sectioninfo>
- <keywordset>
- <keyword>rich:panelMenuItem</keyword>
- </keywordset>
- </sectioninfo>
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:panelMenuItem</keyword>
+ </keywordset>
+ </sectioninfo>
- <table>
- <title>Component identification parameters</title>
+ <table>
+ <title>Component identification parameters</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
+ <entry>Value</entry>
+ </row>
+ </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
- <entry>org.richfaces.PanelMenuItem</entry>
- </row>
+ <entry>org.richfaces.PanelMenuItem</entry>
+ </row>
- <row>
- <entry>component-class</entry>
+ <row>
+ <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlPanelMenuItem</entry>
- </row>
+ <entry>org.richfaces.component.html.HtmlPanelMenuItem</entry>
+ </row>
- <row>
- <entry>component-family</entry>
+ <row>
+ <entry>component-family</entry>
- <entry>org.richfaces.PanelMenuItem</entry>
- </row>
+ <entry>org.richfaces.PanelMenuItem</entry>
+ </row>
- <row>
- <entry>renderer-type</entry>
+ <row>
+ <entry>renderer-type</entry>
- <entry>org.richfaces.PanelMenuItemRenderer</entry>
- </row>
+ <entry>org.richfaces.PanelMenuItemRenderer</entry>
+ </row>
- <row>
- <entry>tag-class</entry>
+ <row>
+ <entry>tag-class</entry>
- <entry>org.richfaces.taglib.PanelMenuItemTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <entry>org.richfaces.taglib.PanelMenuItemTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <section>
- <title>Creating the Component with a Page Tag</title>
+ <section>
+ <title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant on a page use the following syntax:</para>
+ <para>To create the simplest variant on a page use the following syntax:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:panelMenu>
...
<rich:panelMenuItem value="Item1"/>
...
</rich:panelMenu>
...]]></programlisting>
- </section>
+ </section>
- <section>
- <title>Creating the Component Dynamically Using Java</title>
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlPanelMenuItem;
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlPanelMenuItem;
...
HtmlPanelMenuItem myPanelMenuItem = new HtmlPanelMenuItem();
...
]]></programlisting>
- </section>
+ </section>
- <section>
- <title>Details of Usage</title>
+ <section>
+ <title>Details of Usage</title>
- <para>All attributes except <emphasis>
- <property>"label"</property>
- </emphasis> are optional. The <emphasis>
- <property>"label"</property>
- </emphasis> attribute defines text to be represented.</para>
- <para>The <emphasis>
- <property>"mode"</property>
- </emphasis> attribute could be used with three possible parameters:</para>
+ <para>All attributes except <emphasis>
+ <property>"label"</property>
+ </emphasis> are optional. The <emphasis>
+ <property>"label"</property>
+ </emphasis> attribute defines text to be represented.</para>
+ <para>The <emphasis>
+ <property>"mode"</property>
+ </emphasis> attribute could be used with three possible parameters:</para>
- <itemizedlist>
- <listitem>
- <para><code>Server</code> (default)</para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para><code>Server</code> (default)</para>
+ </listitem>
+ </itemizedlist>
- <para>Regular form submission request is used.</para>
+ <para>Regular form submission request is used.</para>
- <itemizedlist>
- <listitem>
- <para><code>Ajax</code></para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>Ajax</code>
+ </para>
+ </listitem>
+ </itemizedlist>
- <para>Ajax submission is used for switching.</para>
+ <para>Ajax submission is used for switching.</para>
- <itemizedlist>
- <listitem>
- <para><code>None</code></para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>None</code>
+ </para>
+ </listitem>
+ </itemizedlist>
- <para><emphasis>
- <property>"Action"</property>
- </emphasis> and <emphasis>
- <property>"actionListener"</property>
- </emphasis> attributes are ignored. Items don't fire any submits itself. Behavior is
- fully defined by the components nested into items.</para>
+ <para><emphasis>
+ <property>"Action"</property>
+ </emphasis> and <emphasis>
+ <property>"actionListener"</property>
+ </emphasis> attributes are ignored. Items don't fire any
+ submits itself. Behavior is fully defined by the components nested
+ into items.</para>
- <para>Here is an example for value "none":</para>
+ <para>Here is an example for value "none":</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:panelMenu>
...
- <rich:panelMenuItem submitMode="none" onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/">
+ <rich:panelMenuItem mode="none" onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/">
<h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
<h:outputText value="RichFaces Home Page"></h:outputText>
</h:outputLink>
@@ -141,63 +146,67 @@
</rich:panelMenu>
...]]></programlisting>
- <para>There are two icon-related attributes. The <emphasis>
- <property>"icon"</property>
- </emphasis> attribute defines an icon. The <emphasis>
- <property>"iconDisabled"</property>
- </emphasis> attribute defines an icon for a disabled item.</para>
+ <para>There are two icon-related attributes. The <emphasis>
+ <property>"icon"</property>
+ </emphasis> attribute defines an icon. The <emphasis>
+ <property>"iconDisabled"</property>
+ </emphasis> attribute defines an icon for a disabled item.</para>
- <para>Default icons are shown on the picture below:</para>
+ <para>Default icons are shown on the picture below:</para>
- <figure>
- <title>Default icons</title>
+ <figure>
+ <title>Default icons</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenuItem2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelMenuItem2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>Here is an example:</para>
+ <para>Here is an example:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:panelMenu>
...
- <rich:panelMenuItem ="Item 1.1" icon="chevronUp" />
+ <rich:panelMenuItem value="Item 1.1" icon="chevronUp" />
...
</rich:panelMenu>
...]]></programlisting>
- <para> As the result the picture is shown below:</para>
+ <para> As the result the picture is shown below:</para>
- <figure>
- <title>Using an <emphasis><property>"icon"</property></emphasis> attribute</title>
+ <figure>
+ <title>Using an <emphasis>
+ <property>"icon"</property>
+ </emphasis> attribute</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenuItem3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelMenuItem3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>It's also possible to define a path to the icon. Simple code is placed below.</para>
+ <para>It's also possible to define a path to the icon. Simple code is
+ placed below.</para>
- <programlisting role="XML"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
<rich:panelMenu>
...
- <rich:panelMenuItem ="Item 1.1" icon="\images\img1.png" />
+ <rich:panelMenuItem value="Item 1.1" icon="\images\img1.png" />
...
</rich:panelMenu>
...]]></programlisting>
- <para>
- Information about the <emphasis><property>"process"</property></emphasis> attribute usage you can find <link linkend="process">here</link>.
- </para>
- </section>
+ <para> Information about the <emphasis>
+ <property>"process"</property>
+ </emphasis> attribute usage you can find <link linkend="process"
+ >here</link>. </para>
+ </section>
- <!--section>
+ <!--section>
<title>JavaScript API</title>
<para>In Java Script code for expanding/collapsing group element creation it's
necessary to use doExpand()/doCollapse() function.</para>
@@ -233,299 +242,325 @@
</section-->
- <section>
- <title>Look-and-Feel Customization</title>
-
- <para>For skinnability implementation, the components use a <emphasis>
- <property>style class redefinition method.</property>
- </emphasis> Default style classes are mapped on <emphasis>
- <property>skin parameters.</property>
- </emphasis></para>
-
- <para>There are two ways to redefine the appearance of all <emphasis role="bold">
- <property><rich:panelMenuItem></property>
- </emphasis> components at once:</para>
-
- <itemizedlist>
- <listitem>
- <para>Redefine the corresponding skin parameters</para>
- </listitem>
-
- <listitem>
- <para>Add to your style sheets <emphasis>
- <property>style classes</property>
- </emphasis> used by a <emphasis role="bold">
- <property><rich:panelMenuItem></property>
- </emphasis> component</para>
- </listitem>
- </itemizedlist>
- </section>
+ <section>
+ <title>Look-and-Feel Customization</title>
- <section>
- <title> Skin Parameters Redefinition</title>
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis> Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
- <table>
- <title>Skin parameters redefinition for a table element of the first level item</title>
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> components at once:</para>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
+ <itemizedlist>
+ <listitem>
+ <para>Redefine the corresponding skin parameters</para>
+ </listitem>
- <entry>CSS properties</entry>
- </row>
- </thead>
+ <listitem>
+ <para>Add to your style sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> component</para>
+ </listitem>
+ </itemizedlist>
+ </section>
- <tbody>
- <row>
- <entry>generalFamilyFont</entry>
+ <section>
+ <title> Skin Parameters Redefinition</title>
- <entry>font-family</entry>
- </row>
+ <table>
+ <title>Skin parameters redefinition for a table element of the first
+ level item</title>
- <row>
- <entry>generalWeightFont</entry>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
- <entry>font-weight</entry>
- </row>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
- <row>
- <entry>generalSizeFont</entry>
+ <tbody>
+ <row>
+ <entry>generalFamilyFont</entry>
- <entry>font-size</entry>
- </row>
+ <entry>font-family</entry>
+ </row>
- <row>
- <entry>generalTextColor</entry>
+ <row>
+ <entry>generalWeightFont</entry>
- <entry>color</entry>
- </row>
+ <entry>font-weight</entry>
+ </row>
- <row>
- <entry>panelBorderColor</entry>
+ <row>
+ <entry>generalSizeFont</entry>
- <entry>border-top-color</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <entry>font-size</entry>
+ </row>
- <table>
- <title>Skin parameter redefinition for a disabled item </title>
+ <row>
+ <entry>generalTextColor</entry>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Parameter for disabled item</entry>
+ <entry>color</entry>
+ </row>
- <entry>CSS properties</entry>
- </row>
- </thead>
+ <row>
+ <entry>panelBorderColor</entry>
- <tbody>
- <row>
- <entry>tabDisabledTextColor</entry>
+ <entry>border-top-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <entry>color</entry>
- </row>
+ <table>
+ <title>Skin parameter redefinition for a disabled item </title>
- </tbody>
- </tgroup>
- </table>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Parameter for disabled item</entry>
- </section>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
- <section>
- <title>Definition of Custom Style Classes</title>
- <para>On the screenshot there are classes names that define styles for component elements.</para>
- <figure>
- <title>Classes names</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenuItem_cn.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <figure>
- <title>Classes names</title>
+ <tbody>
+ <row>
+ <entry>tabDisabledTextColor</entry>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenuItem_cn2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <entry>color</entry>
+ </row>
- <table id="tab_cn_pMI">
- <title>Classes names that define the first level items</title>
+ </tbody>
+ </tgroup>
+ </table>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
+ </section>
- <entry>Description</entry>
- </row>
- </thead>
+ <section>
+ <title>Definition of Custom Style Classes</title>
+ <para>On the screenshot there are classes names that define styles for component
+ elements.</para>
+ <figure>
+ <title>Classes names</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelMenuItem_cn.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <figure>
+ <title>Classes names</title>
- <tbody>
- <row>
- <entry>rich-pmenu-top-item</entry>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelMenuItem_cn2.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
- <entry>Defines styles for a top panel menu item</entry>
- </row>
+ <table id="tab_cn_pMI">
+ <title>Classes names that define the first level items</title>
- <row>
- <entry>rich-pmenu-top-item-icon</entry>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
- <entry>Defines styles for a top panel menu item icon</entry>
- </row>
+ <entry>Description</entry>
+ </row>
+ </thead>
- <row>
- <entry>rich-pmenu-top-item-label</entry>
+ <tbody>
+ <row>
+ <entry>rich-pmenu-top-item</entry>
- <entry>Defines styles for a top panel menu item label</entry>
- </row>
+ <entry>Defines styles for a top panel
+ menu item</entry>
+ </row>
- </tbody>
- </tgroup>
- </table>
+ <row>
+ <entry>rich-pmenu-top-item-icon</entry>
- <table>
- <title>Classes names that define the second and lower level items</title>
-
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
-
- <entry>Description</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>rich-pmenu-item</entry>
-
- <entry>Defines styles for a panel menu item</entry>
- </row>
-
- <row>
- <entry>rich-pmenu-item-icon</entry>
-
- <entry>Defines styles for a panel menu item icon</entry>
- </row>
-
- <row>
- <entry>rich-pmenu-item-label</entry>
-
- <entry>Defines styles for a panel menu item label</entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
+ <entry>Defines styles for a top panel
+ menu item icon</entry>
+ </row>
- <table>
- <title>Classes names that define items state</title>
-
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
-
- <entry>Description</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>rich-pmenu-item-selected</entry>
-
- <entry>Defines styles for a panel menu selected item</entry>
- </row>
-
- <row>
- <entry>rich-pmenu-disabled-element</entry>
-
- <entry>Defines styles for a disabled panel menu item</entry>
- </row>
-
- <row>
- <entry>rich-pmenu-hovered-element</entry>
-
- <entry>Defines styles for a hovered panel menu item</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:panelMenuItem></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
- same names (possible classes could be found in the tables <link linkend="tab_cn_pMI"> above</link>) and define necessary properties in them. </para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+ <row>
+ <entry>rich-pmenu-top-item-label</entry>
+
+ <entry>Defines styles for a top panel
+ menu item label</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define the second and lower level items</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+
+ <entry>Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>rich-pmenu-item</entry>
+
+ <entry>Defines styles for a panel menu
+ item</entry>
+ </row>
+
+ <row>
+ <entry>rich-pmenu-item-icon</entry>
+
+ <entry>Defines styles for a panel menu
+ item icon</entry>
+ </row>
+
+ <row>
+ <entry>rich-pmenu-item-label</entry>
+
+ <entry>Defines styles for a panel menu
+ item label</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Classes names that define items state</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+
+ <entry>Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>rich-pmenu-item-selected</entry>
+
+ <entry>Defines styles for a panel menu
+ selected item</entry>
+ </row>
+
+ <row>
+ <entry>rich-pmenu-disabled-element</entry>
+
+ <entry>Defines styles for a disabled
+ panel menu item</entry>
+ </row>
+
+ <row>
+ <entry>rich-pmenu-hovered-element</entry>
+
+ <entry>Defines styles for a hovered
+ panel menu item</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> components on a page using CSS, it's enough to
+ create classes with the same names (possible classes could be found in
+ the tables <link linkend="tab_cn_pMI"> above</link>) and define
+ necessary properties in them. </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.rich-pmenu-hovered-element {
background-color: #ff7800;
}
-...]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with predefined classes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenuItem_pc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In the example a hovered element background color was changed.</para>
-
- <para>Also it's possible to change styles of particular <emphasis role="bold"
- ><property><rich:panelMenuItem></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
- ><property><rich:panelMenuItem></property></emphasis> <emphasis><property>styleClass</property></emphasis> attributes. An example is placed below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="CSS"><![CDATA[...
+...]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelMenuItem_pc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the example a hovered element background color was changed.</para>
+
+ <para>Also it's possible to change styles of particular <emphasis
+ role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> component. In this case you should create own style
+ classes and use them in corresponding <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis>
+ <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes. An example is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
.myClass {
color: #a0a0a0;
}
-...]]></programlisting>
- <para>The <emphasis><property>"disabledClass"</property></emphasis> attribute for <emphasis role="bold"
- ><property><rich:panelMenuItem></property></emphasis> is defined as it's shown in the example below:</para>
-
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[<rich:panelMenuItem ... disabledClass="myClass"/>
-]]></programlisting>
-
- <para>This is a result:</para>
-
- <figure>
- <title>Redefinition styles with own classes and <emphasis><property>styleClass</property></emphasis> attributes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenuItem_oc.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>As it could be seen on the picture above, the text color for disabled item was changed.</para>
- </section>
- <section>
- <title>Relevant resources links</title>
- <para>
- Some additional information about usage of component can be found
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/panelMenu.jsf?c=panel...">here</ulink>.
- </para>
- </section>
+...]]></programlisting>
+ <para>The <emphasis>
+ <property>"disabledClass"</property>
+ </emphasis> attribute for <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> is defined as it's shown in the example below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<rich:panelMenuItem ... disabledClass="myClass"/>
+]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with own classes and <emphasis>
+ <property>styleClass</property>
+ </emphasis> attributes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelMenuItem_oc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As it could be seen on the picture above, the text color for disabled item
+ was changed.</para>
+ </section>
+ <section>
+ <title>Relevant resources links</title>
+ <para> Some additional information about usage of component can be found <ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/panelMenu.jsf?c=panel..."
+ >here</ulink>. </para>
+ </section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2008-09-30 14:09:06 UTC (rev 10625)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2008-09-30 14:31:29 UTC (rev 10626)
@@ -211,7 +211,7 @@
interval in seconds minimally permissible between
responses. </para>
<para><emphasis>
- <property>"eventsQueue"</property>
+ <property>"eventQueue"</property>
</emphasis> is an attribute for naming of the
queue where the next response is kept in till its
processing, but if the next event comes in till
15 years, 11 months
JBoss Rich Faces SVN: r10625 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-09-30 10:09:06 -0400 (Tue, 30 Sep 2008)
New Revision: 10625
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
Log:
https://jira.jboss.org/jira/browse/RF-4190 api description is changed
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-09-30 14:05:27 UTC (rev 10624)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-09-30 14:09:06 UTC (rev 10625)
@@ -463,7 +463,7 @@
<row>
<entry >setValue(newValue)</entry>
- <entry >Sets the current value (to be implemented)</entry>
+ <entry >Sets the current value and name</entry>
</row>
</tbody>
15 years, 11 months
JBoss Rich Faces SVN: r10624 - in trunk/test-applications/seleniumTest/richfaces/src/main: webapp/pages/dnd and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-09-30 10:05:27 -0400 (Tue, 30 Sep 2008)
New Revision: 10624
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDListener.java
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/dnd/dndTest.xhtml
Log:
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java 2008-09-30 13:36:30 UTC (rev 10623)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java 2008-09-30 14:05:27 UTC (rev 10624)
@@ -5,17 +5,18 @@
import org.richfaces.component.Dropzone;
import org.richfaces.event.DragEvent;
-import org.richfaces.event.DragListener;
import org.richfaces.event.DropEvent;
-import org.richfaces.event.DropListener;
/**
* copied from demo and tailored
*/
-public class DnDBean implements DropListener, DragListener {
+public class DnDBean {
private List<Framework> containerPHP;
+
private List<Framework> containerCF;
+
private List<Framework> containerDNET;
+
private List<Framework> frameworks;
public DnDBean() {
@@ -79,27 +80,15 @@
containerDNET = new ArrayList<Framework>();
}
-//
-// DropListener implementation
-//
- /**
- * @see DragListener#processDrag(DragEvent)
- */
- public void processDrag(DragEvent event) {
- // TODO Auto-generated method stub
- }
-
-//
-// DropListener implementation
-//
- /**
- * @see DropListener#processDrop(DropEvent)
- */
- public void processDrop(DropEvent event) {
+ public void processDropMethod(DropEvent event) {
Dropzone dropzone = (Dropzone) event.getComponent();
moveFramework(event.getDragValue(), dropzone.getDropValue());
}
+ public void processDragMethod(DragEvent event) {
+ // TODO Auto-generated method stub
+ }
+
/**
* Framework
*/
Added: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDListener.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDListener.java (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDListener.java 2008-09-30 14:05:27 UTC (rev 10624)
@@ -0,0 +1,39 @@
+package org.ajax4jsf.bean;
+
+import javax.faces.context.FacesContext;
+
+import org.richfaces.component.Dropzone;
+import org.richfaces.event.DragEvent;
+import org.richfaces.event.DragListener;
+import org.richfaces.event.DropEvent;
+import org.richfaces.event.DropListener;
+
+public class DnDListener implements DragListener, DropListener {
+
+ private DnDBean instance;
+
+ protected DnDBean getDnDBean() {
+ if (null == instance) {
+ FacesContext fc = FacesContext.getCurrentInstance();
+ instance = (DnDBean) fc.getApplication().evaluateExpressionGet(fc, "#{dndBean}", DnDBean.class);
+ }
+
+ return instance;
+ }
+
+//
+// DropListener implementation
+//
+ public void processDrag(DragEvent event) {
+ // TODO Auto-generated method stub
+ }
+
+//
+// DropListener implementation
+//
+ public void processDrop(DropEvent event) {
+ Dropzone dropzone = (Dropzone) event.getComponent();
+ getDnDBean().moveFramework(event.getDragValue(), dropzone.getDropValue());
+ }
+
+}
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDListener.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/dnd/dndTest.xhtml
===================================================================
(Binary files differ)
15 years, 11 months
JBoss Rich Faces SVN: r10623 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-09-30 09:36:30 -0400 (Tue, 30 Sep 2008)
New Revision: 10623
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/modalPanel/modalPanelTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java
Log:
Modal Panel: Test minWidth and minHeight attributes
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/modalPanel/modalPanelTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java 2008-09-30 13:15:08 UTC (rev 10622)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java 2008-09-30 13:36:30 UTC (rev 10623)
@@ -149,7 +149,37 @@
Assert.assertTrue(((Integer)getTopById(cIdvId)).equals(top), "Modal Panel drag failured");
}
+
+ @Test
+ public void testMinWidthAndMinHeight(Template template) {
+ renderPage(template);
+
+ clickShow();
+
+ String resizerId = getParentId() + FORM_ID + PANEL_ID + "ResizerSEL";
+ String contentId = getParentId() + FORM_ID + PANEL_CONTENT_DIV_ID;
+
+ selenium.dragAndDrop(resizerId, "-100,-100");
+
+ String width = getWidth(contentId);
+ String height = getHeight(contentId);
+
+ Assert.assertTrue(width.equals("70px"), "Modal Panel width ["+width+"] does not equal to min width");
+ Assert.assertTrue(height.equals("70px"), "Modal Panel height ["+height+"] does not equal to min height");
+
+ }
+
+ private String getWidth(String id) {
+ String w = runScript("$('"+id+"').style.width", false);
+ return w;
+ }
+
+ private String getHeight(String id) {
+ String h = runScript("$('"+id+"').style.height", false);
+ return h;
+ }
+
private void clickReset() {
String buttonId = getParentId() + FORM_ID + RESET_ID;
writeStatus("Click reset button");
15 years, 11 months
JBoss Rich Faces SVN: r10622 - in trunk/sandbox: samples/editor-sample/src/main/webapp/WEB-INF and 17 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-09-30 09:15:08 -0400 (Tue, 30 Sep 2008)
New Revision: 10622
Added:
trunk/sandbox/samples/editorSeam-sample/
trunk/sandbox/samples/editorSeam-sample/pom.xml
trunk/sandbox/samples/editorSeam-sample/src/
trunk/sandbox/samples/editorSeam-sample/src/main/
trunk/sandbox/samples/editorSeam-sample/src/main/java/
trunk/sandbox/samples/editorSeam-sample/src/main/java/org/
trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/
trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java
trunk/sandbox/samples/editorSeam-sample/src/main/resources/
trunk/sandbox/samples/editorSeam-sample/src/main/resources/components.properties
trunk/sandbox/samples/editorSeam-sample/src/main/resources/seam.properties
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/jboss-web.xml
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/index.jsp
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/editor.jsp
trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/editor.xhtml
trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java
Modified:
trunk/sandbox/samples/editor-sample/src/main/webapp/WEB-INF/web.xml
trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp
trunk/sandbox/ui/editor/pom.xml
trunk/sandbox/ui/editor/src/main/config/component/editor.xml
trunk/sandbox/ui/editor/src/main/config/resources/resources-config.xml
trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
trunk/sandbox/ui/editor/src/main/templates/editor.jspx
Log:
Add Editor Seam example
Add Seam Text Converter for Editor
Modified: trunk/sandbox/samples/editor-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/editor-sample/src/main/webapp/WEB-INF/web.xml 2008-09-30 13:04:51 UTC (rev 10621)
+++ trunk/sandbox/samples/editor-sample/src/main/webapp/WEB-INF/web.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -47,7 +47,7 @@
</servlet>
<servlet-mapping>
<servlet-name>TinyMCELoaderServlet</servlet-name>
- <url-pattern>/a4j/g/3_3_0-SNAPSHOTscripts/tiny_mce/*</url-pattern>
+ <url-pattern>/a4j/g/3_3_0-SNAPSHOTorg/richfaces/renderkit/html/scripts/tiny_mce/*</url-pattern>
</servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
Modified: trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp
===================================================================
--- trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp 2008-09-30 13:04:51 UTC (rev 10621)
+++ trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp 2008-09-30 13:15:08 UTC (rev 10622)
@@ -18,7 +18,6 @@
binding="#{editorBean.editor}"
theme="advanced" />
- <ed:editor ></ed:editor>
<h:outputText value="Editor value: #{editorBean.value}" />
<br/>
<h:commandButton value="h:commandButton" action="#{editorBean.action1}"/>
Property changes on: trunk/sandbox/samples/editorSeam-sample
___________________________________________________________________
Name: svn:ignore
+ target
.classpath
.project
copy-web-pages.bat
.settings
Added: trunk/sandbox/samples/editorSeam-sample/pom.xml
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/pom.xml (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/pom.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,213 @@
+<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>samples</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.3.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>editorSeam-sample</artifactId>
+ <packaging>war</packaging>
+ <name>Editor with Seam sample Maven Webapp</name>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <artifactId>editor</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <version>2.0.2.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>el-api</artifactId>
+ <groupId>javax.el</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>javassist</artifactId>
+ <groupId>jboss</groupId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>servlet-api</artifactId>
+ <groupId>javax.servlet</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>el-api</artifactId>
+ <groupId>javax.el</groupId>
+ </exclusion>
+ <exclusion>
+ <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ui</artifactId>
+ <version>2.0.2.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>javassist</artifactId>
+ <groupId>jboss</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-api</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-impl</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ioc</artifactId>
+ <version>2.0.2.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>javassist</artifactId>
+ <groupId>jboss</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-api</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-impl</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-debug</artifactId>
+ <version>2.0.2.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>javassist</artifactId>
+ <groupId>jboss</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-api</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-impl</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-mail</artifactId>
+ <version>2.0.2.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>javassist</artifactId>
+ <groupId>jboss</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-api</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-impl</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-pdf</artifactId>
+ <version>2.0.2.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>javassist</artifactId>
+ <groupId>jboss</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-api</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-impl</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-remoting</artifactId>
+ <version>2.0.2.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>javassist</artifactId>
+ <groupId>jboss</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-api</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jsf-impl</artifactId>
+ <groupId>javax.faces</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>editor-sample</finalName>
+
+ </build>
+</project>
\ No newline at end of file
Property changes on: trunk/sandbox/samples/editorSeam-sample/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,72 @@
+package org.richfaces;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.richfaces.component.UIEditor;
+
+public class EditorBean {
+
+ private String value = "Some value....";
+ private UIEditor editor;
+ private boolean rendered = true;
+
+ private Map<String, Object> dataMap;
+
+ public EditorBean () {
+ dataMap = new HashMap<String, Object>();
+ dataMap.put("name1", "value1");
+ dataMap.put("name2", false);
+ }
+
+ public String getValue() {
+ return value;
+ }
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public String action1(){
+ value += "1";
+ return null;
+ }
+
+ public String action2(){
+ editor.setValue(editor.getValue() + "1");
+ return null;
+ }
+
+ public String changeRendered(){
+ if(rendered) {
+ rendered = false;
+ }else{
+ rendered = true;
+ }
+ return null;
+ }
+
+ public Map<String, Object> getDataMap() {
+ return dataMap;
+ }
+ public void setDataMap(Map<String, Object> dataMap) {
+ this.dataMap = dataMap;
+ }
+
+ public UIEditor getEditor() {
+ return editor;
+ }
+
+ public void setEditor(UIEditor editor) {
+ this.editor = editor;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+
+}
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/sandbox/samples/editorSeam-sample/src/main/resources/components.properties
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/resources/components.properties (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/resources/components.properties 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,4 @@
+#
+#Thu Jun 05 10:59:06 EEST 2008
+jndiPattern=\#{ejbName}/local
+embeddedEjb=false
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/resources/components.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/sandbox/samples/editorSeam-sample/src/main/resources/seam.properties
===================================================================
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/resources/seam.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns="http://jboss.com/products/seam/components"
+ xmlns:core="http://jboss.com/products/seam/core"
+ xmlns:persistence="http://jboss.com/products/seam/persistence"
+ xmlns:drools="http://jboss.com/products/seam/drools"
+ xmlns:bpm="http://jboss.com/products/seam/bpm"
+ xmlns:security="http://jboss.com/products/seam/security"
+ xmlns:mail="http://jboss.com/products/seam/mail"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:pdf="http://jboss.com/products/seam/pdf"
+ xsi:schemaLocation=
+ "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
+ http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
+ http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
+ http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
+ http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
+ http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd
+ http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
+ <core:init debug="true" jndi-pattern="@jndiPattern@"/>
+
+ <core:manager concurrent-request-timeout="500"
+ conversation-timeout="120000"
+ conversation-id-parameter="cid"
+ parent-conversation-id-parameter="pid"/>
+
+
+</components>
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Added: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,12 @@
+<?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>editorBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.EditorBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+</faces-config>
+
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/jboss-web.xml (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/jboss-web.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,9 @@
+ <!DOCTYPE jboss-web PUBLIC
+ "-//JBoss//DTD Web Application 4.2//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">
+
+<jboss-web>
+
+
+
+</jboss-web>
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <description>Richfaces Editor Sample</description>
+ <display-name>editor-sample</display-name>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <listener>
+ <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
+ </listener>
+<filter>
+ <filter-name>Seam Filter</filter-name>
+ <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>Seam Filter</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <servlet>
+ <display-name>TinyMCE Loader Servlet</display-name>
+ <servlet-name>TinyMCELoaderServlet</servlet-name>
+ <servlet-class>org.richfaces.component.TinyMceLoaderServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>TinyMCELoaderServlet</servlet-name>
+ <url-pattern>/a4j/g/3_3_0-SNAPSHOTorg/richfaces/renderkit/html/scripts/tiny_mce/*</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/index.jsp
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/webapp/index.jsp (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/webapp/index.jsp 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head></head>
+ <body>
+ <jsp:forward page="/pages/editor.jsf" />
+ </body>
+</html>
\ No newline at end of file
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/index.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/editor.jsp
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/editor.jsp (rev 0)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/editor.jsp 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,37 @@
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/editor" prefix="ed"%>
+<html>
+ <head>
+ <title>Richfaces Editor Sample</title>
+ </head>
+ <body>
+ <f:view >
+ <h:form id="formId">
+
+ <ed:editor id="editorId"
+ value="#{editorBean.value}"
+ width="300"
+ height="175"
+ rendered="#{editorBean.rendered}"
+ binding="#{editorBean.editor}"
+ theme="advanced"
+ useSeamText="true"/>
+
+ <h:outputText value="Editor value: #{editorBean.value}" />
+ <br/>
+ <h:commandButton value="h:commandButton" action="#{editorBean.action1}"/>
+ <a4j:commandButton value="a4j:commandButton" action="#{editorBean.action1}"
+ reRender="editorId"/>
+ <br/>
+ <h:commandButton value="h:commandButton2" action="#{editorBean.action2}"/>
+ <a4j:commandButton value="a4j:commandButton2" action="#{editorBean.action2}"
+ reRender="editorId"/>
+
+ <br/>
+ <h:commandButton value="change rendered" action="#{editorBean.changeRendered}"/>
+ </h:form>
+ </f:view>
+ </body>
+</html>
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/editor.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/editor.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/sandbox/samples/editorSeam-sample/src/main/webapp/pages/editor.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/sandbox/ui/editor/pom.xml
===================================================================
--- trunk/sandbox/ui/editor/pom.xml 2008-09-30 13:04:51 UTC (rev 10621)
+++ trunk/sandbox/ui/editor/pom.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -47,5 +47,16 @@
<artifactId>richfaces-impl</artifactId>
<version>3.3.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>antlr</groupId>
+ <artifactId>antlr</artifactId>
+ <version>2.7.7</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <version>2.0.2.GA</version>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
Modified: trunk/sandbox/ui/editor/src/main/config/component/editor.xml
===================================================================
--- trunk/sandbox/ui/editor/src/main/config/component/editor.xml 2008-09-30 13:04:51 UTC (rev 10621)
+++ trunk/sandbox/ui/editor/src/main/config/component/editor.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -64,5 +64,13 @@
</description>
<defaultvalue>"textareas"</defaultvalue>
</property>
+ <property>
+ <name>useSeamText</name>
+ <classname>java.lang.Boolean</classname>
+ <description>
+ Attribute defines if model value should be converted to Seam Text
+ </description>
+ <defaultvalue>false</defaultvalue>
+ </property>
</component>
</components>
Modified: trunk/sandbox/ui/editor/src/main/config/resources/resources-config.xml
===================================================================
--- trunk/sandbox/ui/editor/src/main/config/resources/resources-config.xml 2008-09-30 13:04:51 UTC (rev 10621)
+++ trunk/sandbox/ui/editor/src/main/config/resources/resources-config.xml 2008-09-30 13:15:08 UTC (rev 10622)
@@ -1,4 +1,1092 @@
<?xml version="1.0" encoding="UTF-8"?>
<resource-config>
-
-</resource-config>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/langs/en.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/langs/en.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/license.txt</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/license.txt</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/css/advhr.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/css/advhr.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/js/rule.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/js/rule.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/rule.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advhr/rule.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/css/advimage.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/css/advimage.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/image.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/image.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/img/sample.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/img/sample.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/js/image.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/js/image.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advimage/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/css/advlink.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/css/advlink.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/js/advlink.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/js/advlink.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/link.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/advlink/link.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/autosave/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/autosave/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/autosave/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/autosave/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/bbcode/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/bbcode/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/bbcode/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/bbcode/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/compat2x/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/compat2x/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/compat2x/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/compat2x/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/contextmenu/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/contextmenu/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/directionality/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/directionality/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/directionality/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/directionality/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/emotions.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/emotions.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-cool.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-cool.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-cry.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-cry.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-frown.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-frown.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-smile.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-smile.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-wink.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-wink.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-yell.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/img/smiley-yell.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/js/emotions.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/js/emotions.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/emotions/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/dialog.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/dialog.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/img/example.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/img/example.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/js/dialog.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/js/dialog.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/langs/en.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/langs/en.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/example/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/css/fullpage.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/css/fullpage.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/fullpage.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/fullpage.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/js/fullpage.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/js/fullpage.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullpage/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullscreen/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullscreen/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullscreen/fullscreen.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/fullscreen/fullscreen.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/iespell/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/iespell/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/iespell/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/iespell/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/template.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/inlinepopups/template.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/insertdatetime/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/insertdatetime/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/layer/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/layer/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/layer/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/layer/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/css/content.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/css/content.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/css/media.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/css/media.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/flash.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/flash.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/flv_player.swf</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/flv_player.swf</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/quicktime.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/quicktime.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/realmedia.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/realmedia.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/shockwave.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/shockwave.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/trans.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/trans.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/windowsmedia.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/img/windowsmedia.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/js/embed.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/js/embed.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/js/media.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/js/media.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/media.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/media/media.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/nonbreaking/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/nonbreaking/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/noneditable/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/noneditable/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/noneditable/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/noneditable/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/css/content.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/css/content.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/img/trans.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/pagebreak/img/trans.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/blank.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/blank.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/css/blank.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/css/blank.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/css/pasteword.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/css/pasteword.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/js/pastetext.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/js/pastetext.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/js/pasteword.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/js/pasteword.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/pastetext.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/pastetext.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/pasteword.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/paste/pasteword.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/example.html</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/example.html</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/jscripts/embed.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/jscripts/embed.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/preview.html</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/preview/preview.html</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/print/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/print/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/print/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/print/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/safari/blank.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/safari/blank.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/safari/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/safari/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/safari/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/safari/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/save/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/save/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/save/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/save/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/css/searchreplace.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/css/searchreplace.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/js/searchreplace.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/js/searchreplace.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/searchreplace.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/searchreplace/searchreplace.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/spellchecker/css/content.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/spellchecker/css/content.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/spellchecker/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/spellchecker/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/spellchecker/img/wline.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/spellchecker/img/wline.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/css/props.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/css/props.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/js/props.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/js/props.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/props.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/style/props.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/cell.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/cell.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/css/cell.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/css/cell.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/css/row.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/css/row.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/css/table.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/css/table.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/js/cell.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/js/cell.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/js/merge_cells.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/js/merge_cells.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/js/row.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/js/row.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/js/table.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/js/table.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/merge_cells.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/merge_cells.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/row.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/row.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/table.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/table/table.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/blank.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/blank.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/css/template.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/css/template.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/js/template.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/js/template.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/template.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/template/template.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/visualchars/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/visualchars/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/visualchars/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/visualchars/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/abbr.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/abbr.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/acronym.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/acronym.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/attributes.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/attributes.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/cite.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/cite.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/css/popup.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/css/popup.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/del.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/del.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/ins.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/ins.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/cite.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/cite.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/del.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/del.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/ins.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/js/ins.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/about.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/about.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/anchor.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/anchor.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/charmap.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/charmap.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/color_picker.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/color_picker.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/editor_template.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/editor_template.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/editor_template_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/editor_template_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/image.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/image.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/img/colorpicker.jpg</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/img/colorpicker.jpg</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/img/icons.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/img/icons.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/about.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/about.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/anchor.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/anchor.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/charmap.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/charmap.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/color_picker.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/color_picker.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/image.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/image.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/link.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/link.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/source_editor.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/js/source_editor.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/langs/en.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/langs/en.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/langs/en_dlg.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/langs/en_dlg.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/link.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/link.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/content.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/content.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/dialog.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/dialog.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/buttons.png</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/buttons.png</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/items.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/items.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/progress.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/progress.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/ui.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/default/ui.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/content.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/content.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/ui.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/ui.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/source_editor.htm</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/source_editor.htm</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/editor_template.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/editor_template.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/editor_template_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/editor_template_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/img/icons.gif</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/img/icons.gif</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/langs/en.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/langs/en.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/default/content.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/default/content.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/default/ui.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/default/ui.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/o2k7/content.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/o2k7/content.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/o2k7/ui.css</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/simple/skins/o2k7/ui.css</path>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_popup.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_popup.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_src.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_src.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/utils/editable_selects.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/utils/editable_selects.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/utils/form_utils.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/utils/form_utils.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/utils/mctabs.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/utils/mctabs.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/scripts/tiny_mce/utils/validate.js</name>
+ <path>org/richfaces/renderkit/html/scripts/tiny_mce/utils/validate.js</path>
+ <renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
+ </resource>
+ </resource-config>
Added: trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java (rev 0)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java 2008-09-30 13:15:08 UTC (rev 10622)
@@ -0,0 +1,73 @@
+/*
+ * SeamTextConverter.java Date created: 26.09.2008
+ * Last modified by: $Author$
+ * $Revision$ $Date$
+ */
+
+package org.richfaces.component;
+
+import java.io.Reader;
+import java.io.StringReader;
+import java.lang.reflect.Constructor;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+import org.jboss.seam.text.SeamTextLexer;
+import org.jboss.seam.text.SeamTextParser;
+
+import antlr.TokenStream;
+
+/**
+ * TODO Class description goes here.
+ *
+ * @author Alexandr Levkovsky
+ *
+ */
+public class SeamTextConverter implements Converter {
+
+ /**
+ * <p>
+ * The standard converter id for this converter.
+ * </p>
+ */
+ public static final String CONVERTER_ID = SeamTextConverter.class.getName();
+
+ /**
+ * @see javax.faces.convert.Converter#getAsObject(javax.faces.context.FacesContext,
+ * javax.faces.component.UIComponent, java.lang.String)
+ */
+ @SuppressWarnings("unchecked")
+ public Object getAsObject(FacesContext context, UIComponent component,
+ String value) {
+ try {
+ Reader r = new StringReader(value);
+ Class seamTextLexerClass = Class.forName("org.jboss.seam.text.SeamTextLexer");
+ Class seamTextParserClass = Class.forName("org.jboss.seam.text.SeamTextParser");
+ Constructor seamTextLexerConstructor = seamTextLexerClass.getConstructor(Reader.class);
+ SeamTextLexer lexer = (SeamTextLexer) seamTextLexerConstructor.newInstance(new Object[] { r });
+ Constructor seamTextParserConstructor = seamTextParserClass.getConstructor(TokenStream.class);
+ SeamTextParser parser = (SeamTextParser) seamTextParserConstructor.newInstance(new Object[] { lexer });
+
+ parser.startRule();
+ return parser.toString();
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ return null;
+ } catch (Exception e) {
+ e.printStackTrace();
+ return null;
+ }
+ }
+
+ /**
+ * @see javax.faces.convert.Converter#getAsString(javax.faces.context.FacesContext,
+ * javax.faces.component.UIComponent, java.lang.Object)
+ */
+ public String getAsString(FacesContext context, UIComponent component,
+ Object value) {
+ return value.toString();
+ }
+
+}
Property changes on: trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java 2008-09-30 13:04:51 UTC (rev 10621)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java 2008-09-30 13:15:08 UTC (rev 10622)
@@ -7,6 +7,7 @@
package org.richfaces.component;
import javax.faces.component.UIInput;
+import javax.faces.convert.Converter;
/**
* JSF component class
@@ -38,8 +39,23 @@
public abstract void setMode(String mode);
public abstract String getMode();
+
+ public abstract void setUseSeamText(Boolean useSeamText);
+ public abstract Boolean getUseSeamText();
+
public boolean getRendersChildren() {
return true;
}
+
+ @Override
+ public Converter getConverter() {
+ if(getUseSeamText()){
+ return new SeamTextConverter();
+ }else{
+ return super.getConverter();
+ }
+ }
+
+
}
Modified: trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-09-30 13:04:51 UTC (rev 10621)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-09-30 13:15:08 UTC (rev 10622)
@@ -79,5 +79,4 @@
UIEditor component, Object value) {
return InputUtils.getConvertedStringValue(context, component, value);
}
-
}
Modified: trunk/sandbox/ui/editor/src/main/templates/editor.jspx
===================================================================
--- trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-09-30 13:04:51 UTC (rev 10621)
+++ trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-09-30 13:15:08 UTC (rev 10622)
@@ -12,7 +12,7 @@
<f:clientid var="clientId"/>
<h:styles>css/editor.xcss</h:styles>
- <h:scripts>scripts/tiny_mce/tiny_mce_src.js, scripts/editor.js</h:scripts>
+ <h:scripts>org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_src.js, scripts/editor.js</h:scripts>
<div id="#{clientId}" x:passThruWithExclusions="id,value"
class="rich-editor">
15 years, 11 months
JBoss Rich Faces SVN: r10621 - in trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces: testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-09-30 09:04:51 -0400 (Tue, 30 Sep 2008)
New Revision: 10621
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java
Log:
Modal Panel Test: test drag by header
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-09-30 12:28:56 UTC (rev 10620)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-09-30 13:04:51 UTC (rev 10621)
@@ -554,6 +554,28 @@
public Number getHeightById(String id) {
return selenium.getElementHeight("id=" + id);
}
+
+ /**
+ * Returns element's left
+ *
+ * @param id -
+ * DOM element id
+ * @return
+ */
+ public Number getLeftById(String id) {
+ return selenium.getElementPositionLeft("id=" + id);
+ }
+
+ /**
+ * Returns element's top
+ *
+ * @param id -
+ * DOM element id
+ * @return
+ */
+ public Number getTopById(String id) {
+ return selenium.getElementPositionTop("id=" + id);
+ }
/**
* Clicks on element
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java 2008-09-30 12:28:56 UTC (rev 10620)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java 2008-09-30 13:04:51 UTC (rev 10621)
@@ -8,6 +8,7 @@
import org.ajax4jsf.template.Template;
import org.richfaces.SeleniumTestBase;
+import org.testng.Assert;
import org.testng.annotations.Test;
/**
@@ -27,6 +28,7 @@
private final static String PANEL_C_DIV_ID = PANEL_ID + "CDiv";
private final static String PANEL_CONTENT_DIV_ID = PANEL_ID + "ContentDiv";
private final static String PANEL_CONTAINER_DIV_ID = PANEL_ID + "Container";
+ private final static String PANEL_HEADER_ID = PANEL_ID + "Header";
/**
@@ -123,7 +125,31 @@
// test height attribute - should be 104
assertStyleAttribute(panelContentId, "height: 104");
}
+
+ @Test
+ public void testDragByHeader(Template template) {
+ renderPage(template);
+
+ clickShow();
+ String headerId = getParentId() + FORM_ID + PANEL_HEADER_ID;
+ String cIdvId = getParentId() + FORM_ID + PANEL_C_DIV_ID;
+
+ Integer left = (Integer)getLeftById(cIdvId);
+ Integer top = (Integer)getTopById(cIdvId);
+
+ selenium.dragAndDrop(headerId, "+10,+10");
+
+ Assert.assertTrue((Integer)getLeftById(cIdvId) - left == 10, "Modal Panel drag failured");
+ Assert.assertTrue((Integer)getTopById(cIdvId) - top == 10, "Modal Panel drag failured");
+
+ selenium.dragAndDrop(headerId, "-10,-10");
+
+ Assert.assertTrue(((Integer)getLeftById(cIdvId)).equals(left), "Modal Panel drag failured");
+ Assert.assertTrue(((Integer)getTopById(cIdvId)).equals(top), "Modal Panel drag failured");
+
+ }
+
private void clickReset() {
String buttonId = getParentId() + FORM_ID + RESET_ID;
writeStatus("Click reset button");
15 years, 11 months
JBoss Rich Faces SVN: r10620 - trunk/ui/dataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-09-30 08:28:56 -0400 (Tue, 30 Sep 2008)
New Revision: 10620
Modified:
trunk/ui/dataTable/src/main/config/component/subTable.xml
Log:
https://jira.jboss.org/jira/browse/RF-696 unnecessary attributes are deleted
Modified: trunk/ui/dataTable/src/main/config/component/subTable.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/subTable.xml 2008-09-30 11:49:47 UTC (rev 10619)
+++ trunk/ui/dataTable/src/main/config/component/subTable.xml 2008-09-30 12:28:56 UTC (rev 10620)
@@ -145,51 +145,6 @@
<description>HTML: a script expression; a pointer is moved within of row
</description>
</property>
- <property>
- <name>sortExpression</name>
- <classname>java.lang.String</classname>
- <description>DEPRECATED(use sortBy)Attribute defines a bean property which is used for sorting of a column</description>
- </property>
- <property>
- <name>sortOrder</name>
- <classname>org.richfaces.model.Ordering</classname>
- <description>SortOrder is an enumeration of the possible sort orderings.
- Default value is "Ordering.UNSORTED".
- </description>
- <defaultvalue>Ordering.UNSORTED</defaultvalue>
- </property>
- <property>
- <name>selfSorted</name>
- <classname>boolean</classname>
- <description>Manages if the header of the column is clickable, icons rendered and sorting is fired after click on the header. You need to define this attribute inside <rich:dataTable> component.
- Default value is "true".</description>
- <defaultvalue>true</defaultvalue>
- </property>
- <property elonly="true">
- <name>filterMethod</name>
- <classname>javax.el.MethodExpression</classname>
- <methodargs>java.lang.Object</methodargs>
- <returntype>boolean</returntype>
- <description>This attribute is defined with method binding. This method accepts on Object parameter and return boolean value</description>
- </property>
- <property>
- <name>filterValue</name>
- <classname>java.lang.String</classname>
- <description>Defines current filtering value</description>
- </property>
- <property>
- <name>sortPriority</name>
- <classname>java.util.Collection</classname>
- <description>Defines a set of column ids in the order the columns could be set</description>
- </property>
- <property>
- <name>sortMode</name>
- <classname>java.lang.String</classname>
- <description>
- Defines mode of sorting. Possible values are 'single' for sorting of one column and 'multi' for some.
- </description>
- </property>
-
<property hidden="true" existintag="false" exist="false" >
<name>summary</name>
<classname>java.lang.Object</classname>
15 years, 11 months