Author: msorokin
Date: 2009-06-02 10:21:38 -0400 (Tue, 02 Jun 2009)
New Revision: 14440
Added:
branches/community/3.3.X/test-applications/richfaces-docs/pom.xml
branches/community/3.3.X/test-applications/richfaces-docs/readme.txt
branches/community/3.3.X/test-applications/richfaces-docs/src/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Bean.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ColorPicker.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Editor.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Layout.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Page.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ProgressBar.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Queue.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/fileUpload/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/fileUpload/FileUpload.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Hujations.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Shelf.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Tree.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/TreeBean.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/hujations.xml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/stations.xml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/GlobalQueue.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/MenuBean.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/MenuState.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/Skin.java
branches/community/3.3.X/test-applications/richfaces-docs/src/main/resources/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/web.xml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/queue.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/framework/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/framework/framework.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/home.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/Thumbs.db
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/close.png
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/contextMenuImages/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/contextMenuImages/pic1.png
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/contextMenuImages/pic2.png
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/dtpick.gif
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/error.gif
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/fileUploadImages/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/jQuery/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/jQuery/dog1.jpg
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/jQuery/dog2.jpg
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/index.jsp
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/display.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/edit.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/menu.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/template.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/misc/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/calendar.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/colorPicker.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/comboBox.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/contextMenu.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/datatable.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/editor.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/fileUpload.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/inplaceInput.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/jQuery.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/layout.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/modalPanel.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/page.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/pickList.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/progressBar.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/richPage.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/tree.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/skinning/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/skinning/stskinning.xhtml
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/stylesheet/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/stylesheet/theme.css
branches/community/3.3.X/test-applications/richfaces-docs/src/test/
branches/community/3.3.X/test-applications/richfaces-docs/src/test/java/
branches/community/3.3.X/test-applications/richfaces-docs/src/test/java/org/
branches/community/3.3.X/test-applications/richfaces-docs/src/test/java/org/docs/
branches/community/3.3.X/test-applications/richfaces-docs/src/test/java/org/docs/richfaces/
branches/community/3.3.X/test-applications/richfaces-docs/src/test/java/org/docs/richfaces/BeanTest.java
Log:
https://jira.jboss.org/jira/browse/RF-6419
Changed to the new, optimized app
Added: branches/community/3.3.X/test-applications/richfaces-docs/pom.xml
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/pom.xml
(rev 0)
+++ branches/community/3.3.X/test-applications/richfaces-docs/pom.xml 2009-06-02 14:21:38
UTC (rev 14440)
@@ -0,0 +1,177 @@
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.docs.richfaces</groupId>
+ <artifactId>richfaces-docs</artifactId>
+ <packaging>war</packaging>
+ <name>richfaces-docs Maven Webapp</name>
+ <version>1</version>
+ <build>
+ <finalName>richfaces-docs</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+<dependencies>
+
+ <dependency>
+
+ <groupId>junit</groupId>
+
+ <artifactId>junit</artifactId>
+
+ <version>3.8.1</version>
+
+ <scope>test</scope>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>javax.servlet</groupId>
+
+ <artifactId>servlet-api</artifactId>
+
+ <version>2.4</version>
+
+ <scope>provided</scope>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>javax.servlet</groupId>
+
+ <artifactId>jsp-api</artifactId>
+
+ <version>2.0</version>
+
+ <scope>provided</scope>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>jstl</groupId>
+
+ <artifactId>jstl</artifactId>
+
+ <version>1.1.2</version>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>javax.servlet.jsp</groupId>
+
+ <artifactId>jsp-api</artifactId>
+
+ <version>2.1</version>
+
+ <scope>provided</scope>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>javax.faces</groupId>
+
+ <artifactId>jsf-api</artifactId>
+
+ <version>1.2_12</version>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>javax.faces</groupId>
+
+ <artifactId>jsf-impl</artifactId>
+
+ <version>1.2_12</version>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>javax.el</groupId>
+
+ <artifactId>el-api</artifactId>
+
+ <version>1.0</version>
+
+ <scope>provided</scope>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>el-impl</groupId>
+
+ <artifactId>el-impl</artifactId>
+
+ <version>1.0</version>
+
+ <scope>provided</scope>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>javax.annotation</groupId>
+
+ <artifactId>jsr250-api</artifactId>
+
+ <version>1.0</version>
+
+ </dependency>
+
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.11</version>
+ </dependency>
+
+
+ <!-- RichFaces libraries -->
+
+ <dependency>
+
+ <groupId>org.richfaces.framework</groupId>
+
+ <artifactId>richfaces-api</artifactId>
+
+ <version>3.3.1-SNAPSHOT</version>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>org.richfaces.framework</groupId>
+
+ <artifactId>richfaces-impl</artifactId>
+
+ <version>3.3.1-SNAPSHOT</version>
+
+ </dependency>
+
+ <dependency>
+
+ <groupId>org.richfaces.ui</groupId>
+
+ <artifactId>richfaces-ui</artifactId>
+
+ <version>3.3.1-SNAPSHOT</version>
+
+ </dependency>
+
+</dependencies>
+</project>
Added: branches/community/3.3.X/test-applications/richfaces-docs/readme.txt
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/readme.txt
(rev 0)
+++ branches/community/3.3.X/test-applications/richfaces-docs/readme.txt 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,4 @@
+This is a test application for RichFaces doc team
+
+Running
+mvn clean install eclipse:eclipse -Dwtpverion=2.0
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Bean.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Bean.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Bean.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,29 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.docs.richfaces;
+/**
+ * @author $Autor$
+ *
+ */
+public class Bean {
+
+}
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ColorPicker.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ColorPicker.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ColorPicker.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,45 @@
+package org.docs.richfaces;
+
+public class ColorPicker {
+
+ String value;
+
+ String showEvent;
+
+ String colorMode;
+
+ String flat;
+
+ public String getValue() {
+ return value;
+ }
+ public void setValue(String value) {
+ this.value = value;
+ }
+ public String getShowEvent() {
+ return showEvent;
+ }
+ public void setShowEvent(String showEvent) {
+ this.showEvent = showEvent;
+ }
+ public String getColorMode() {
+ return colorMode;
+ }
+ public void setColorMode(String colorMode) {
+ this.colorMode = colorMode;
+ }
+ public String getFlat() {
+ return flat;
+ }
+ public void setFlat(String flat) {
+ this.flat = flat;
+ }
+
+
+
+
+
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Editor.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Editor.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Editor.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,18 @@
+package org.docs.richfaces;
+
+public class Editor {
+
+ String edit;
+
+ public String getEdit() {
+ return edit;
+ }
+
+ public void setEdit(String edit) {
+ this.edit = edit;
+ }
+
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Layout.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Layout.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Layout.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,17 @@
+/**
+ *
+ */
+package org.docs.richfaces;
+
+/**
+ * @author Michael Sorokin
+ *
+ */
+public class Layout {
+
+
+
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Page.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Page.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Page.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,47 @@
+/**
+ *
+ */
+package org.docs.richfaces;
+
+/**
+ * @author Michael Sorokin
+ *
+ */
+public class Page {
+
+ private String markupType;
+ private String theme;
+private String pageTitle;
+
+
+
+
+ public String getPageTitle() {
+ return pageTitle;
+}
+
+public void setPageTitle(String pageTitle) {
+ this.pageTitle = pageTitle;
+}
+
+ public String getTheme() {
+ return theme;
+ }
+
+ public void setTheme(String theme) {
+ this.theme = theme;
+ }
+
+
+
+ public String getMarkupType() {
+ return markupType;
+ }
+
+ public void setMarkupType(String markupType) {
+ this.markupType = markupType;
+ }
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ProgressBar.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ProgressBar.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/ProgressBar.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,21 @@
+package org.docs.richfaces;
+
+public class ProgressBar {
+ private int progress;
+
+
+
+ public ProgressBar(int progress) {
+
+ this.progress = 50;
+ }
+
+ public int getProgress() {
+ return progress;
+ }
+
+ public void setProgress(int progress) {
+ this.progress = progress;
+ }
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Queue.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Queue.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/Queue.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,47 @@
+package org.docs.richfaces;
+
+public class Queue {
+
+ String a="";
+ String b="";
+ String c="";
+
+ boolean check;
+
+ public String getA() {
+ return a;
+ }
+
+ public void setA(String a) {
+ this.a = a;
+ }
+
+ public String getB() {
+ return b;
+ }
+
+ public void setB(String b) {
+ this.b = b;
+ }
+
+ public String getC() {
+ return c;
+ }
+
+ public void setC(String c) {
+ this.c = c;
+ }
+
+ public boolean isCheck() {
+ return check;
+ }
+
+ public void setCheck(boolean check) {
+ this.check = check;
+ }
+
+
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/fileUpload/FileUpload.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/fileUpload/FileUpload.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/fileUpload/FileUpload.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,160 @@
+package org.docs.richfaces.fileUpload;
+
+import java.io.ByteArrayOutputStream;
+import java.io.DataOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.context.FacesContext;
+import javax.servlet.ServletContext;
+import javax.swing.JPopupMenu.Separator;
+
+import org.richfaces.event.UploadEvent;
+import org.richfaces.model.UploadItem;
+
+
+import com.sun.facelets.FaceletContext;
+import com.sun.facelets.util.Path;
+
+
+
+
+public class FileUpload {
+
+
+private List data;
+
+ private String realImageFilePath;
+
+
+
+
+ private String[] strFilesDirs;
+
+ private static final String IMAGE_URL =
File.separator+"img"+File.separator+"fileUploadImages"+File.separator;
+
+
+// File f1 = new File(
+//
+// "C:\\Projects\\RichFaces\\test-applications\\richfaces-docs\\web\\src\\main\\webapp\\img\\fileUploadImages\\");
+//String[] strFilesDirs = f1.list();
+
+
+
+ public FileUpload() {
+ initrealImageFilePath();
+
+ System.out.println(realImageFilePath);
+
+
+ data = new ArrayList();
+
+ File f1 = new File(realImageFilePath);
+
+ String[] strFilesDirs = f1.list();
+
+ for(int i= 0; i< strFilesDirs.length; i++){
+
+ System.out.println(strFilesDirs[i]);
+ }
+
+ }
+
+ public String getRealImageFilePath() {
+ return realImageFilePath;
+ }
+
+ public void setRealImageFilePath(String realImageFilePath) {
+ this.realImageFilePath = realImageFilePath;
+ }
+
+ private void initrealImageFilePath() {
+ // Perform application initialization that must complete
+ // *before* managed components are initialized
+ // TODO - add your own initialiation code here
+
+ // Managed Component Initialization
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ ServletContext theApplicationsServletContext =
+ (ServletContext)
FacesContext.getCurrentInstance().getExternalContext().getContext();
+ this.realImageFilePath = theApplicationsServletContext.getRealPath(IMAGE_URL);
+
+
+ }
+
+public String[] getStrFilesDirs() {
+ return strFilesDirs;
+ }
+
+ public void setStrFilesDirs(String[] strFilesDirs) {
+ this.strFilesDirs = strFilesDirs;
+}
+
+ public void fileUploadListener(UploadEvent event) throws Exception {
+ UploadItem upload = event.getUploadItem();
+
+ if (upload.isTempFile()) {
+ File file = upload.getFile();
+ System.out.println(upload.getFileName());
+
+ // FileReader in = new FileReader(upload.getFile());
+ InputStream in = new FileInputStream(upload.getFile());
+ // ByteInputStream in = new ByteInputStream(upload.getData(), 1000);
+ FileOutputStream outputFile = new FileOutputStream(
+ realImageFilePath+File.separator+ upload.getFileName());
+ // FileWriter out = new FileWriter(outputFile);
+ DataOutputStream filewr = new DataOutputStream(outputFile);
+
+ int c;
+ while ((c = in.read()) != -1) {
+
+ filewr.write(c);
+ }
+ in.close();
+ filewr.close();
+ //
+ //
+ // ByteArrayOutputStream b = new ByteArrayOutputStream();
+ // b.write(upload.getData());
+
+ } else {
+ ByteArrayOutputStream b = new ByteArrayOutputStream();
+ b.write(upload.getData());
+ }
+
+ }
+
+ public void listener(UploadEvent event) throws Exception {
+
+ try {
+ UploadItem item = event.getUploadItem();
+ System.out
+ .println("File : " + item.getFileName() + " was uploaded");
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ public List getData() {
+ for (int i = 0; i < data.size(); i++)
+ System.out.println(data.get(i));
+ return data;
+ }
+
+ public void setData(List data) {
+ this.data = data;
+ }
+
+
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Hujations.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Hujations.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Hujations.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,24 @@
+package org.docs.richfaces.tree;
+
+import org.richfaces.model.TreeNode;
+import org.richfaces.component.xml.XmlTreeDataBuilder;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import java.io.IOException;
+
+public class Hujations {
+
+ private TreeNode data;
+
+ public Hujations() throws SAXException, IOException {
+ data = XmlTreeDataBuilder.build(new
InputSource(getClass().getResourceAsStream("hujations.xml")));
+ }
+
+ public void setData(TreeNode data) {
+ this.data = data;
+ }
+
+ public TreeNode getData() {
+ return data;
+ }
+ }
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Shelf.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Shelf.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Shelf.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,28 @@
+package org.docs.richfaces.tree;
+/**
+ *
+ */
+
+/**
+ * @author atsebro
+ *
+ */
+public class Shelf {
+
+ String[] albSet = {"Vacations", "New Year"};
+ String[] imgSet = {"Start", "Middle", "Finish"};
+
+ public String[] getAlbSet() {
+ return albSet;
+ }
+ public void setAlbSet(String[] albSet) {
+ this.albSet = albSet;
+ }
+ public String[] getImgSet() {
+ return imgSet;
+ }
+ public void setImgSet(String[] imgSet) {
+ this.imgSet = imgSet;
+ }
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Tree.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Tree.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/Tree.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,139 @@
+
+package org.docs.richfaces.tree;
+
+import javax.faces.context.FacesContext;
+
+import org.richfaces.component.xml.XmlTreeDataBuilder;
+import org.richfaces.model.TreeNode;
+import org.richfaces.model.TreeNodeImpl;
+import org.xml.sax.InputSource;
+
+
+public class Tree {
+
+
+
+ private TreeNodeImpl<String> stationRoot = new TreeNodeImpl<String>();
+
+ private TreeNodeImpl<String> stationNodes = new TreeNodeImpl<String>();
+
+ private String[] kickRadioFeed = { "Hall & Oates - Kiss On My List",
+
+ "David Bowie - Let's Dance", "Lyn Collins - Think (About
It)",
+
+ "Kim Carnes - Bette Davis Eyes",
+
+ "KC & the Sunshine Band - Give It Up" };
+
+
+ private TreeNode data;
+
+
+
+
+
+
+
+ public Tree() {
+
+
+
+
+ stationRoot.setData("KickRadio");
+
+ stationNodes.addChild(0, stationRoot);
+
+ for (int i = 0; i < kickRadioFeed.length; i++){
+
+ TreeNodeImpl<String> child = new TreeNodeImpl<String>();
+
+ child.setData(kickRadioFeed[i]);
+
+ stationRoot.addChild(i, child);
+
+ }
+
+
+
+ FacesContext context = FacesContext.getCurrentInstance();
+
+ try {
+ data = XmlTreeDataBuilder.build(new
InputSource(getClass().getResourceAsStream("stations.xml")));
+ }catch (Exception e){}
+ }
+
+
+
+
+
+
+
+ public TreeNode getData() {
+ return data;
+ }
+
+
+
+
+
+
+
+ public void setData(TreeNode data) {
+ this.data = data;
+ }
+
+
+
+
+
+
+
+ public TreeNodeImpl<String> getStationRoot() {
+ return stationRoot;
+ }
+
+
+
+
+
+
+
+ public void setStationRoot(TreeNodeImpl<String> stationRoot) {
+ this.stationRoot = stationRoot;
+ }
+
+
+
+
+
+
+
+ public TreeNodeImpl<String> getStationNodes() {
+ return stationNodes;
+ }
+
+
+
+
+
+
+
+ public void setStationNodes(TreeNodeImpl<String> stationNodes) {
+ this.stationNodes = stationNodes;
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/TreeBean.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/TreeBean.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/TreeBean.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,150 @@
+package org.docs.richfaces.tree;
+
+import java.util.Set;
+import java.util.TreeSet;
+
+import javax.faces.context.FacesContext;
+
+import org.richfaces.component.xml.XmlTreeDataBuilder;
+import org.richfaces.model.TreeNode;
+import org.richfaces.model.TreeNodeImpl;
+import org.xml.sax.InputSource;
+
+public class TreeBean {
+ private TreeNode<String> data;
+
+ public TreeBean() {
+
+ String[] components = {"< a4j:ajaxListener >", "< a4j:keepAlive
>", "< a4j:actionparam >" };
+ String[][] attributes = {{"type"},
+ {"ajaxOnly", "beanName"},
+ {"actionListener", "assignTo", "binding",
"converter", "id", "name", "noEscape",
"value"}};
+
+ if (data == null) {
+ data = new TreeNodeImpl<String>();
+
+ for (int i = 0; i < components.length; i++) {
+ TreeNode<String> child = new TreeNodeImpl<String>();
+ child.setData(components[i]);
+ data.addChild(components[i], child);
+
+ for (int j = 0; j < attributes[i].length; j++) {
+ TreeNode<String> grandChild = new TreeNodeImpl<String>();
+ grandChild.setData(attributes[i][j]);
+ child.addChild(attributes[i][j], grandChild);
+ }
+ }
+ }
+ }
+
+ public TreeNode<String> getData() {
+ return data;
+ }
+
+ public static boolean[] checkNameChars() {
+ Set<Integer> result = new TreeSet<Integer>();
+ boolean[] chars = new boolean[0xFFFF + 1];
+
+ result.add(Character.getType(':'));
+ chars[':'] = true;
+ for (char i = 'A'; i <= 'Z'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ result.add(Character.getType('_'));
+ for (char i = 'a'; i <= 'z'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+
+ for (char i = '\u00c0'; i <= '\u00d6'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u00d8'; i <= '\u00f6'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u00f8'; i <= '\u02ff'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u0370'; i <= '\u037d'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u037f'; i <= '\u1fff'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u200c'; i <= '\u200d'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u2070'; i <= '\u218f'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u2c00'; i <= '\u2fef'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u3001'; i <= '\ud7ff'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\uf900'; i <= '\ufdcf'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\ufdf0'; i <= '\ufffd'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '-'; i <= '-'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '.'; i <= '.'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '0'; i <= '9'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u00b7'; i <= '\u00b7'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u0300'; i <= '\u036f'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+ for (char i = '\u203f'; i <= '\u2040'; i++) {
+ result.add(Character.getType(i));
+ chars[i] = true;
+ }
+
+ System.out.println(result);
+
+ return chars;
+ }
+
+ public static void checkChars(boolean[] skipSet) {
+ Set<Integer> result = new TreeSet<Integer>();
+ for (char c = '\u0000'; c < '\uffff'; c++) {
+ if (!skipSet[c]) {
+ result.add(Character.getType(c));
+ }
+ }
+ System.out.println(result);
+ }
+
+ public static void main(String[] args) {
+ boolean[] skipChars = checkNameChars();
+ System.out.println("Bean.main()");
+ checkChars(skipChars);
+ }
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/hujations.xml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/hujations.xml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/hujations.xml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<hujations>
+ <song>List</song>
+ <song>Dance</song>
+ <song>It</song>
+ <song>Eyes</song>
+ <song>Up</song>
+</hujations>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/stations.xml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/stations.xml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/tree/stations.xml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<station name="KickRadio">
+ <feed date="today">
+ <song time="07:00">Hall Oates - Kiss On My
List</song>
+ <song time="07:03">David Bowie - Let's Dance</song>
+ <song time="07:06">Lyn Collins - Think (About
It)</song>
+ <song time="07:10">Kim Carnes - Bette Davis
Eyes</song>
+ <song time="07:15">KC the Sunshine Band - Give It
Up</song>
+ </feed>
+</station>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/GlobalQueue.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/GlobalQueue.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/GlobalQueue.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,21 @@
+package org.docs.richfaces.util;
+
+public class GlobalQueue {
+
+
+ private boolean globalQueue;
+
+ public boolean isGlobalQueue() {
+ return globalQueue;
+ }
+
+ public void setGlobalQueue(boolean globalQueue) {
+ this.globalQueue = globalQueue;
+ }
+
+
+
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/MenuBean.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/MenuBean.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/MenuBean.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,22 @@
+package org.docs.richfaces.util;
+
+import javax.faces.event.ActionEvent;
+
+
+
+public class MenuBean {
+
+ private MenuState menuState;
+
+ public MenuState getMenuState() {
+ return menuState;
+ }
+ public void setMenuState(MenuState menuState) {
+ this.menuState = menuState;
+ }
+ public MenuBean() {}
+
+ public void select (ActionEvent event) {
+ menuState.setSelectedMenuItem(event.getComponent().getId());
+ }
+}
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/MenuState.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/MenuState.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/MenuState.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,40 @@
+package org.docs.richfaces.util;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.PostConstruct;
+
+
+public class MenuState {
+
+
+ private Map <String, Boolean> menu;
+
+ private String selectedMenuItem;
+
+ public String getSelectedMenuItem() {
+ return selectedMenuItem;
+ }
+ public Map<String, Boolean> getMenu() {
+ return menu;
+ }
+ public void setMenu(Map<String, Boolean> menu) {
+ this.menu = menu;
+ }
+ public void setSelectedMenuItem(String selectedMenuItem) {
+ this.selectedMenuItem = selectedMenuItem;
+ }
+ public MenuState() {
+ }
+ @PostConstruct
+ public void init () {
+ menu = new HashMap <String, Boolean>();
+ menu.put("group1", false);
+ menu.put("group2", false);
+ menu.put("group3", false);
+ menu.put("group4", false);
+ }
+
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/Skin.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/Skin.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/java/org/docs/richfaces/util/Skin.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,24 @@
+package org.docs.richfaces.util;
+
+public class Skin {
+ private String skin;
+ private String standardSkinning;
+
+
+
+
+ public String getStandardSkinning() {
+ return standardSkinning;
+ }
+ public void setStandardSkinning(String standardSkinning) {
+ this.standardSkinning = standardSkinning;
+ }
+ public String getSkin() {
+ return skin;
+ }
+ public void setSkin(String skin) {
+ this.skin = skin;
+ }
+
+
+}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess"/>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/faces-config.xml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,164 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.1//EN"
+
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>editor</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.Editor</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ <managed-property>
+ <property-name>edit</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>colorPicker</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.ColorPicker</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>colorMode</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>flat</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>showEvent</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>value</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>queue</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.Queue</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>skin</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.util.Skin</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>skin</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>blueSky</value>
+ </managed-property>
+ <managed-property>
+ <property-name>standardSkinning</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>enable</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>menuState</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.util.MenuState</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>menu</property-name>
+ <property-class>java.util.Map</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>selectedMenuItem</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>menuBean</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.util.MenuBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>menuState</property-name>
+ <property-class>org.docs.richfaces.util.MenuState</property-class>
+ <value>#{menuState}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>tree</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Tree</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>nodes</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Nodes</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>node</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ <managed-property>
+ <property-name>root</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>globalQueue</managed-bean-name>
+
<managed-bean-class>org.docs.richfaces.util.GlobalQueue</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>globalQueue</property-name>
+ <property-class>boolean</property-class>
+ <value>false</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>fileUpload</managed-bean-name>
+
<managed-bean-class>org.docs.richfaces.fileUpload.FileUpload</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>layout</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.Layout</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>theme</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>shelf</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Shelf</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>hujations</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Hujations</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>authentification</managed-bean-name>
+
<managed-bean-class>org.docs.richfaces.authentification.Authentification</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>treeBean</managed-bean-name>
+ <managed-bean-class>org.docs.richfaces.tree.TreeBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+
+ <application>
+ <view-handler>
+ com.sun.facelets.FaceletViewHandler
+ </view-handler>
+ </application>
+
+</faces-config>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/web.xml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/WEB-INF/web.xml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,75 @@
+<?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">
+ <display-name>Archetype Created Web Application</display-name>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+
+ <context-param>
+
+ <param-name>org.richfaces.queue.global.enabled</param-name>
+ <param-value>#{globalQueue.globalQueue}</param-value>
+
+ </context-param>
+
+
+ <context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>#{skin.skin}</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING</param-name>
+ <param-value>#{skin.standardSkinning}</param-value>
+ </context-param>
+ <!--
+ -->
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ <dispatcher>ERROR</dispatcher>
+ </filter-mapping>
+
+
+
+
+
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+
+ <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>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.xhtml</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+
+
+
+</web-app>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/queue.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/queue.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/a4j/queue.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,42 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">a4j:queue</f:facet>
+
+<h:form prependId="false" >
+<a4j:queue size="3" oncomplete="alert(request.queue.this)"
onsizeexceeded="alert('onsizeexceeded')" />
+
+<h:inputText value="#{queue.a}" >
+<a4j:support reRender="a" event="onkeyup" id="queue"
/>
+</h:inputText><br />
+<h:outputText value="#{queue.a}" id="a" />
+<br />
+
+<h:inputText value="#{queue.b}" >
+<a4j:support reRender="b" event="onchange" />
+</h:inputText><br />
+<h:outputText value="#{queue.b}" id="b" />
+<br />
+</h:form>
+
+
+
+</rich:panel>
+</ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/framework/framework.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/framework/framework.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/framework/framework.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,25 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">Framework</f:facet>
+
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/home.xhtml
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/home.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/home.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:rich="http://richfaces.org/rich">
+<head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>RichFaces Documentation Application</title>
+ <link href="stylesheet/theme.css" rel="stylesheet"
type="text/css" />
+</head>
+
+<body>
+
+ <ui:include src="layout/menu.xhtml">
+ <ui:param name="projectName" value="RichFaces Docs"/>
+ </ui:include>
+ <div class="richcomponentsmenu">
+
+ <ui:include src="layout/mainMenu.xhtml" />
+
+</div>
+
+ <div class="body" >
+ <rich:panel>
+ <f:facet name="header">RichFaces Documentation Application
</f:facet>
+
+ <p>
+ RichFaces documentation team from now on (3.3.1 version of RichFaces)
+ will be using RDA while documenting RichFaces components.
+ The main idea of the application is to make sure that all code snippets we provide
in the Guide are working in a real application. Besides, it will help us keep the
examples in one place so that any doc team member can continue what the other has started.
+ </p>
+
+ </rich:panel>
+
+ </div>
+
+ <div class="footer" style="display: block; float: none;
clear:both;">
+
+ <p>Developed and maintained by Michael Sorokin. Feel free to email me:
msorokin(a)exadel.com</p>
+ </div>
+
+</body>
+</html>
+
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/Thumbs.db
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/Thumbs.db
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/close.png
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/close.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/contextMenuImages/pic1.png
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/contextMenuImages/pic1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/contextMenuImages/pic2.png
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/contextMenuImages/pic2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/dtpick.gif
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/dtpick.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/error.gif
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/error.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/jQuery/dog1.jpg
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/jQuery/dog1.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/jQuery/dog2.jpg
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/img/jQuery/dog2.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/index.jsp
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/index.jsp
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/index.jsp 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,11 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+
+<head></head>
+
+ <body>
+ <jsp:forward page="home.xhtml" />
+ </body>
+
+</html>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/display.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/display.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/display.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,16 @@
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:s="http://jboss.com/products/seam/taglib">
+
+ <div class="prop">
+ <span class="name">
+ <ui:insert name="label"/>
+ </span>
+ <span class="value">
+ <ui:insert/>
+ </span>
+ </div>
+
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/edit.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/edit.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/edit.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,27 @@
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:s="http://jboss.com/products/seam/taglib">
+
+ <div class="prop">
+
+ <s:label styleClass="name
#{invalid?'errors':''}">
+ <ui:insert name="label"/>
+ <s:span styleClass="required"
rendered="#{required}">*</s:span>
+ </s:label>
+
+ <span class="value #{invalid?'errors':''}">
+ <s:validateAll>
+ <ui:insert/>
+ </s:validateAll>
+ </span>
+
+ <span class="error">
+ <h:graphicImage value="/img/error.gif"
rendered="#{invalid}" styleClass="errors"/>
+ <s:message styleClass="errors"/>
+ </span>
+
+ </div>
+
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/mainMenu.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,104 @@
+<!-- mainMenu -->
+
+<rich:panelMenu
+xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
+ mode="client"
+ iconExpandedGroup="disc"
+ iconCollapsedGroup="disc"
+ iconExpandedTopGroup="chevronUp"
+ iconGroupTopPosition="right"
+ iconCollapsedTopGroup="chevronDown"
+ iconCollapsedTopPosition="right"
+ id="mainMenu">
+ <rich:panelMenuGroup label="Rich Components" id="group1"
value="#{menuState.menu['group1']}" >
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/calendar.xhtml"
>rich:calendar</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/colorPicker.xhtml"
>rich:colorPicker</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/comboBox.xhtml"
>rich:comboBox</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/contextMenu.xhtml"
>rich:contextMenu</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/editor.xhtml"
>rich:editor</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/fileUpload.xhtml"
>rich:fileUpload</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/jQuery.xhtml"
>rich:jQuery</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/inplaceInput.xhtml"
>rich:inplaceInput</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/modalPanel.xhtml"
>rich:modalPanel</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/layout.xhtml"
>rich:layout</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/page.xhtml"
>rich:page</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/pickList.xhtml"
>rich:pickList</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/progressBar.xhtml"
>rich:progressBar</h:outputLink>
+ </rich:panelMenuItem>
+
+ <rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/rich/tree.xhtml"
>rich:tree</h:outputLink>
+ </rich:panelMenuItem>
+
+ </rich:panelMenuGroup>
+
+<rich:panelMenuGroup label="A4J Components" id="group2"
value="#{menuState.menu['group2']}">
+
+<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+<h:outputLink
value="#{facesContext.externalContext.requestContextPath}/a4j/queue.xhtml"
>a4j:queue</h:outputLink>
+</rich:panelMenuItem>
+
+
+
+</rich:panelMenuGroup>
+<rich:panelMenuGroup label="Framework" id="group3"
value="#{menuState.menu['group3']}">
+
+<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+<h:outputLink
value="#{facesContext.externalContext.requestContextPath}/framework/framework.xhtml"
>Framework</h:outputLink>
+</rich:panelMenuItem>
+
+</rich:panelMenuGroup>
+
+<rich:panelMenuGroup label="Skinnability" id="group4"
value="#{menuState.menu['group4']}">
+
+<rich:panelMenuItem actionListener="#{menuBean.select}"
mode="server">
+<h:outputLink
value="#{facesContext.externalContext.requestContextPath}/skinning/stskinning.xhtml"
>Standard Skinning</h:outputLink>
+</rich:panelMenuItem>
+
+</rich:panelMenuGroup>
+
+</rich:panelMenu>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/menu.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/menu.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/menu.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,68 @@
+<rich:toolBar
+
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:rich="http://richfaces.org/rich"
+ styleClass="menuToolBar"
+
+ >
+
+ <rich:toolBarGroup>
+ <h:outputText value="#{projectName}:"/>
+ <s:link view="/home.xhtml" value="Home"/>
+ <span>|</span>
+
+ <s:link view="/conventions.xhtml" value="Conventions"
/>
+
+
+ </rich:toolBarGroup>
+ <!-- @newMenuItem@ -->
+ <rich:toolBarGroup location="right">
+
+
+
+ <h:outputText value="Global Queue:" style="margin: 0px;
padding: 0px;"/>
+ <h:form>
+
+
+ <h:selectOneMenu value="#{globalQueue.globalQueue}"
onchange="submit()">
+ <f:selectItem itemLabel="Enable" itemValue="true"
/>
+ <f:selectItem itemLabel="Disable" itemValue="false" />
+
+ </h:selectOneMenu>
+ </h:form>
+
+ <span>|</span>
+
+
+ <h:outputText value="Standard controls skinning:" />
+ <h:form>
+ <h:selectOneMenu value="#{skin.standardSkinning}">
+ <f:selectItem itemLabel="Enable" itemValue="enable"/>
+ <f:selectItem itemLabel="Disable" itemValue="disable"
/>
+ </h:selectOneMenu>
+
+ </h:form>
+ <span>|</span>
+
+ <h:outputText value="Select skin:" />
+<h:form>
+
+ <h:selectOneMenu id="select" value="#{skin.skin}"
onchange="submit()">
+ <f:selectItem itemLabel="plain" itemValue="plain" />
+ <f:selectItem itemLabel="emeraldTown" itemValue="emeraldTown"
/>
+ <f:selectItem itemLabel="blueSky" itemValue="blueSky" />
+ <f:selectItem itemLabel="wine" itemValue="wine" />
+ <f:selectItem itemLabel="japanCherry" itemValue="japanCherry"
/>
+ <f:selectItem itemLabel="ruby" itemValue="ruby" />
+ <f:selectItem itemLabel="classic" itemValue="classic" />
+ <f:selectItem itemLabel="deepMarine" itemValue="deepMarine"
/>
+ </h:selectOneMenu>
+
+ </h:form>
+ </rich:toolBarGroup>
+</rich:toolBar>
+
+
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/template.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/template.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/layout/template.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:rich="http://richfaces.org/rich">
+<head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>RichFaces Documentation Application</title>
+ <link href="../stylesheet/theme.css" rel="stylesheet"
type="text/css" />
+
+</head>
+
+<body>
+
+ <ui:include src="menu.xhtml">
+ <ui:param name="projectName" value="RichFaces Docs"/>
+ </ui:include>
+ <div class="richcomponentsmenu">
+
+ <ui:include src="/layout/mainMenu.xhtml" />
+
+
+</div>
+
+ <div class="body" >
+ <ui:insert name="body"/>
+
+
+ </div>
+
+ <div class="footer" style="display: block; float: none;
clear:both;">
+
+ <p>Developed and maintained by Michael Sorokin. Feel free to email me:
msorokin(a)exadel.com</p>
+ </div>
+
+</body>
+</html>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/calendar.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/calendar.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/calendar.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,26 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+ <ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:calendar</f:facet>
+
+ <h:form>
+ <rich:calendar oninputselect="alert('hi!')"/>
+ </h:form>
+
+
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/colorPicker.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/colorPicker.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/colorPicker.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,28 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">rich:colorPicker</f:facet>
+
+ <h:form>
+ <rich:colorPicker value="#F0F8FF" colorMode="rgb"
flat="true" />
+ </h:form>
+ <h:outputText value="#{colorPicker.value}" />
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/comboBox.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/comboBox.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/comboBox.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,28 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+ <ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:comboBox</f:facet>
+
+ <rich:comboBox defaultLabel="Enter some value">
+ <f:selectItem itemValue="suggestion 1"/>
+ <f:selectItem itemValue="suggestion 2"/>
+ <f:selectItem itemValue="suggestion 3"/>
+ <f:selectItem itemValue="suggestion 4"/>
+ <f:selectItem itemValue="suggestion 5"/>
+ </rich:comboBox>
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/contextMenu.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/contextMenu.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/contextMenu.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,49 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+
+ <ui:define name="body">
+ <script type="text/javascript">
+ function enlarge(){
+
document.getElementById('pic').width=document.getElementById('pic').width*1.1;
+
document.getElementById('pic').height=document.getElementById('pic').height*1.1;
+ }
+
+ function decrease(){
+
document.getElementById('pic').width=document.getElementById('pic').width*0.9;
+
document.getElementById('pic').height=document.getElementById('pic').height*0.9;
+ }
+ </script>
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:contextMenu</f:facet>
+
+ <rich:contextMenu event="oncontextmenu" attachTo="pic1"
submitMode="none" ongroupactivate="alert('hey')">
+ <rich:menuItem value="Zoom In" onclick="enlarge();"
id="zin"/>
+ <rich:menuItem value="Zoom Out" onclick="decrease();"
id="zout"/>
+ </rich:contextMenu>
+
+ <h:panelGrid columns="1" columnClasses="cent">
+ <h:panelGroup id="picture">
+ <h:graphicImage value="/img/contextMenuImages/pic1.png"
id="pic"/>
+ </h:panelGroup>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1" columnClasses="cent">
+ <h:panelGroup id="picture1">
+ <h:graphicImage
value="/img/contextMenuImages/pic2.png" id="pic1"/>
+ </h:panelGroup>
+ </h:panelGrid>
+
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/datatable.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/datatable.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/datatable.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,27 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
template="../layout/template.xhtml">
+
+ <ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message" />
+ <h:form>
+ Please enter your name:<br />
+ <h:inputText value="#{person.name}" size="15" />
+ <br />
+ <h:commandButton type="submit" value="Say Hello"
+ action="#{manager.sayHello}" />
+ </h:form>
+ <h:dataTable value="#{fans}" var="fan">
+ <h:column>
+ <h:outputText value="#{fan.name}" />
+ </h:column>
+ </h:dataTable>
+
+ </ui:define>
+</ui:composition>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/editor.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/editor.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/editor.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,28 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+
+ <ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:editor</f:facet>
+
+ <rich:editor theme="advanced" plugins="save,paste">
+ <f:param name="theme_advanced_buttons1"
value="bold,italic,underline, cut,copy,paste,pasteword"/>
+ <f:param name="theme_advanced_toolbar_location"
value="top"/>
+ <f:param name="theme_advanced_toolbar_align"
value="left"/>
+ </rich:editor>
+
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/fileUpload.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/fileUpload.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/fileUpload.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,44 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">rich:fileUpload</f:facet>
+
+ <h:outputText value="Simple rich:fileUpload" />
+ <rich:fileUpload fileUploadListener="#{fileUpload.fileUploadListener}"
+ uploadData="#{fileUpload.data}"
+
+ immediateUpload="true"/>
+
+<rich:panel>
+<h1>repeat</h1>
+<ul>
+<ui:repeat value="#{fileupload.strFilesDirs}" var="files">
+<li>#{files}</li>
+
+</ui:repeat>
+<h:outputText value="#{fileupload.realImageFilePath}" />
+</ul>
+</rich:panel>
+
+ </rich:panel>
+
+
+</ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/inplaceInput.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/inplaceInput.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/inplaceInput.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,33 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+ <ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:inplaceInput</f:facet>
+
+ <rich:panel style="width:220px;">
+ <f:facet name="header">
+ <h:outputText value="Person Info"></h:outputText>
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText value="Name: "/>
+ <rich:inplaceInput defaultLabel="click to enter your
name"/>
+ <h:outputText value="Email:"/>
+ <rich:inplaceInput defaultLabel="click to enter your
email"/>
+ </h:panelGrid>
+ </rich:panel>
+
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/jQuery.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/jQuery.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/jQuery.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,37 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+ <ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:jQuery</f:facet>
+
+ <h:panelGrid columns="1" columnClasses="cent">
+ <h:panelGroup id="picture1">
+ <h:graphicImage width="50"
value="/img/jQuery/dog1.jpg"
+ onmouseover="enlargePic(this, {pwidth:'200px'})"
onmouseout="releasePic(this)" />
+ </h:panelGroup>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1" columnClasses="cent">
+ <h:panelGroup id="picture2">
+ <h:graphicImage width="50"
value="/img/jQuery/dog2.jpg"
+ onmouseover="enlargePic(this, {pwidth:'200px'})"
onmouseout="releasePic(this)" />
+ </h:panelGroup>
+ </h:panelGrid>
+
+ <rich:jQuery name="enlargePic" timing="onJScall"
query="animate({width:param.pwidth})" />
+ <rich:jQuery name="releasePic" timing="onJScall"
query="animate({width:'50px'})"/>
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/layout.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/layout.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/layout.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,123 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">Layout Components: rich:layout and
rich:layoutPanel </f:facet>
+
+<h3>Listing 1: top, left, center, right, bottom</h3>
+
+<rich:layout>
+ <rich:layoutPanel position="top">
+ <p>top</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="left">
+ <p>left</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="center">
+ <rich:layout>
+ <rich:layoutPanel position="top">
+ <p>top1</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="left">
+ <p>left1</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="center">
+ <p>center1</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="right">
+ <p>right1</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="bottom">
+ <p>bottom1</p>
+
+</rich:layoutPanel>
+</rich:layout>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="right">
+ <p>right</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="bottom">
+ <p>bottom</p>
+</rich:layoutPanel>
+</rich:layout>
+
+
+ <h3>Listing 2: center</h3>
+<rich:layout>
+
+ <rich:layoutPanel position="center">
+ <!--center-->
+</rich:layoutPanel>
+
+
+</rich:layout>
+
+
+ <h3>Listing 3: left + right</h3>
+<rich:layout>
+
+ <rich:layoutPanel position="left">
+ <p>left</p>
+</rich:layoutPanel>
+
+
+<rich:layoutPanel position="right">
+ <p>right</p>
+</rich:layoutPanel>
+
+</rich:layout>
+
+
+
+<table class="tableofattributes" cellpadding="0"
cellspacing="0">
+<thead>
+
+
+ <tr>
+ <td>
+ Attribute
+ </td>
+ <td>
+ Value
+ </td>
+ </tr>
+</thead>
+ <tbody>
+ <tr>
+ <td>
+ Theme
+ </td>
+ <td>
+
+ </td>
+ </tr>
+
+
+ </tbody>
+
+
+</table>
+
+
+
+
+
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/modalPanel.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/modalPanel.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/modalPanel.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,70 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j"
+ template="../layout/template.xhtml">
+
+ <script>
+ function getRightTop(ref) {
+ var position = new Object();
+ position.top = 0; //ref.offsetTop;
+ position.left =0; // ref.offsetLeft+ref.clientWidth+6;
+ return position;
+ }
+ </script>
+
+ <ui:define name="body">
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:modalPanel</f:facet>
+
+ <rich:modalPanel id="panel" width="350"
height="100" >
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Modal
Panel"></h:outputText>
+ </h:panelGroup>
+ </f:facet>
+
+ <f:facet name="controls">
+ <h:panelGroup>
+ <h:graphicImage value="/img/close.png"
styleClass="hidelink" id="hidelink"/>
+ <rich:componentControl for="panel"
attachTo="hidelink" operation="hide" event="onclick"/>
+ </h:panelGroup>
+ </f:facet>
+
+ <h:outputText value="This panel is called using Component Control
Component"></h:outputText>
+ <br/>
+ <h:outputText value="Closure link (X) works also through Component
Control"></h:outputText>
+
+ <a onclick="Richfaces.showModalPanel('pnl');"
href="#">Show ModalPanel</a>
+
+ <a4j:form>
+ <rich:modalPanel id="pnl">
+ <f:facet name="header">
+ <h:outputText value="This is a panel header" />
+ </f:facet>
+
+ <p>The <rich:modalPanel> accepts different types of
information:
+ from simple text to iterative components such as
<rich:dataTable>, etc.
+ </p>
+
+ <a onclick="Richfaces.hideModalPanel('pnl');"
href="#">Hide</a>
+ <a onclick="Richfaces.hideTopModalPanel();" href="#">Hide
Top Modal Panel</a>
+ </rich:modalPanel>
+ </a4j:form>
+ </rich:modalPanel>
+
+ <h:outputLink value="#" id="link">
+ Show Modal Panel
+ <rich:componentControl for="panel" attachTo="link"
operation="show" event="onclick"/>
+ </h:outputLink>
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/page.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/page.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/page.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,185 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <p>A page with the rich:page component can be found <a
href="richPage.xhtml"
style="display:inline">here</a>.</p>
+ <f:facet name="header">Layout Components: rich:page, rich:layout,
rich:layoutPanel </f:facet>
+<h3>Listing 1: pageTitle, markupType and pageHeader facet</h3>
+
+<rich:page markupType="#{page.markupType}"
pageTitle="#{page.pageTitle}" contentType="text/html; charset=UTF-8"
>
+ <f:facet name="pageHeader" title="advisory" >
+ <meta content="The rich:page component" name="keywords" />
+ <link rel="shortcut icon" href="/images/favicon.ico"/>
+ <link href="/css/style.css" rel="stylesheet"
type="text/css" />
+ <script type="text/javascript"
src="/js/menu.js"></script>
+ </f:facet>
+ <!-- page content -->
+ <p> page content </p>
+</rich:page>
+
+
+
+
+<h3>Listing 2: facets "header", "sidebar" and
"footer"</h3>
+
+
+<rich:page sidebarPosition="right" sidebarWidth="300">
+ <f:facet name="header" >
+ header content
+
+ </f:facet>
+
+ <f:facet name="sidebar">
+side bar content
+ </f:facet>
+ <p>body content</p>
+
+ <f:facet name="footer">
+ footer content
+ </f:facet>
+ </rich:page>
+
+
+<h3>Listing 3: with classes attributes</h3>
+
+
+
+ <rich:page sidebarPosition="right" sidebarWidth="300"
+bodyClass="myBodyClass"
+footerClass="myFooterClass"
+headerClass="myHeaderClass"
+sidebarClass="mySidebarClass"
+>
+ <f:facet name="header" >
+ header content
+
+ </f:facet>
+
+ <f:facet name="sidebar">
+side bar content
+ </f:facet>
+ <p>body content</p>
+
+ <f:facet name="footer">
+ footer content
+ </f:facet>
+ </rich:page>
+
+
+
+ <h3>Listing 4: t</h3>
+
+
+
+ <rich:page sidebarPosition="right" sidebarWidth="300"
+theme="#{page.theme}"
+>
+ <f:facet name="header" >
+ header content
+
+ </f:facet>
+
+ <f:facet name="sidebar">
+side bar content
+ </f:facet>
+ <p>body content</p>
+
+ <f:facet name="footer">
+ footer content
+ </f:facet>
+ </rich:page>
+
+
+
+
+
+<table class="tableofattributes" cellpadding="0"
cellspacing="0" >
+<thead>
+
+
+ <tr>
+ <td>
+ Attribute
+ </td>
+ <td>
+ Value
+ </td>
+ </tr>
+</thead>
+ <tbody>
+ <tr>
+ <td>
+ Theme
+ </td>
+ <td>
+ <h:form>
+ <h:selectOneMenu value="#{page.theme}"
onchange="submit()">
+ <f:selectItem itemLabel="Default" itemValue="" />
+ <f:selectItem itemLabel="simple" itemValue="simple"
/>
+ <f:selectItem itemLabel="csszend" itemValue="csszend" />
+
+
+ </h:selectOneMenu>
+ </h:form>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td>
+ markupType
+ </td>
+ <td>
+ <h:form>
+ <h:selectOneMenu value="#{page.markupType}"
onchange="submit()">
+ <f:selectItem itemLabel="html" itemValue="html"
/>
+ <f:selectItem itemLabel="xhtml" itemValue="xhtml"
/>
+ <f:selectItem itemLabel="html-transitional"
itemValue="html-transitional" />
+ <f:selectItem itemLabel="html-3.2" itemValue="html-3.2" />
+
+ </h:selectOneMenu>
+ </h:form>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td>
+ page title
+ </td>
+ <td>
+ <h:form>
+ <h:inputText value="#{page.pageTitle}"
onchange="submit()"/>
+ </h:form>
+ </td>
+ </tr>
+
+
+ </tbody>
+
+
+</table>
+
+
+
+
+
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/pickList.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/pickList.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/pickList.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,41 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+<ui:define name="body">
+ <style>
+ .rich-picklist-target-cell{
+ background: grey;
+ font-size: 16px;
+ }
+ </style>
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:pickList</f:facet>
+
+ <h:form>
+ <rich:pickList>
+ <f:selectItem itemLabel="Bentley"
itemValue="1"/>
+ <f:selectItem itemLabel="Ford" itemValue="2"/>
+ <f:selectItem itemLabel="Chevrolet"
itemValue="3"/>
+ <f:selectItem itemLabel="Lincoln"
itemValue="4"/>
+ <f:selectItem itemLabel="Mazda" itemValue="5"/>
+ <f:selectItem itemLabel="BMV" itemValue="6"/>
+ <f:selectItem itemLabel="Volkwagen"
itemValue="7"/>
+ <f:selectItem itemLabel="Audi" itemValue="8"/>
+ <f:selectItem itemLabel="Mercedes"
itemValue="9"/>
+ <f:selectItem itemLabel="Toyota"
itemValue="10"/>
+ </rich:pickList>
+ </h:form>
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/progressBar.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/progressBar.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/progressBar.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,30 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">rich:progressBar</f:facet>
+
+ <h:form id="form">
+ <rich:progressBar value="30" mode="client"
id="progressBar">
+ <h:outputText value="{value}"/>
+ </rich:progressBar>
+ <button type="button" onclick="startProgress();"
style="margin: 9px 0px 5px;" id="button">Start
Progress</button>
+ </h:form>
+ </rich:panel>
+ </ui:define>
+</ui:composition>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/richPage.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/richPage.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/richPage.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,72 @@
+<f:view
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:ui="http://java.sun.com/jsf/facelets">
+
+
+<rich:page sidebarPosition="left" sidebarWidth="300"
title="advisory" pageTitle="Page Title"
+theme="simple"
+ >
+ <f:facet name="pageHeader" >
+ </f:facet>
+
+ <f:facet name="header" >
+ <ui:include src="layout/menu.xhtml">
+ <ui:param name="projectName" value="RichFaces Docs"/>
+
+ <!--Header-->
+ </ui:include>
+
+ </f:facet>
+
+ <f:facet name="subheader" >
+ <!--Subheader-->
+
+ </f:facet>
+
+ <f:facet name="sidebar">
+<ui:include src="layout/mainMenu.xhtml" />
+<!--Side panel-->
+
+ </f:facet>
+
+<rich:layout>
+
+ <rich:layoutPanel position="top">
+
+ <!--Top-->
+
+ </rich:layoutPanel>
+
+ <rich:layoutPanel position="left">
+
+ <!--Left-->
+
+ </rich:layoutPanel>
+
+ <rich:layoutPanel position="center">
+
+ <!--Center-->
+
+ </rich:layoutPanel>
+
+ <rich:layoutPanel position="right">
+
+ <!--Right-->
+
+ </rich:layoutPanel>
+
+ <rich:layoutPanel position="bottom">
+
+ <!--Bottom-->
+
+ </rich:layoutPanel>
+
+</rich:layout>
+ <f:facet name="footer">
+ <!--Footer-->
+ </f:facet>
+ </rich:page>
+
+</f:view>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/tree.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/tree.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/rich/tree.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,88 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml">
+
+ <ui:define name="body">
+ <h:messages globalOnly="true" styleClass="message" />
+ <rich:panel>
+ <f:facet name="header">rich:tree</f:facet>
+ <h4>Case 1. rich:tree is built from a simple org.richfaces.model.TreeNode
+ model</h4>
+ <h:form>
+ <rich:tree value="#{tree.stationNodes}" var="station">
+ <rich:treeNode>
+ <h:outputText value="#{station}" />
+ </rich:treeNode>
+ </rich:tree>
+ </h:form>
+
+ <h4>Case 2. A simple rich:tree from a local XML file</h4>
+ <h:form>
+ <rich:tree id="treeXML" value="#{tree.data}"
var="vardata">
+ <rich:treeNode>
+ <h:outputText value="#{vardata.attributes['name']}" />
+ <h:outputText value="#{vardata.attributes['date']}" />
+ <h:outputText value="#{vardata.attributes['time']}" />
+ <h:outputText value=" #{vardata.text}" />
+ </rich:treeNode>
+
+ </rich:tree>
+ </h:form>
+
+ <br></br>
+ <h4>Case 3. Tree built with treeNodesAdaptors</h4>
+ <p>Using the <rich:treeNodesAdaptor> means that the typical tree
hierarchy should be built directly in the component tree.<br></br>
+ </p>
+ <h:form>
+ <rich:tree id="adaptor_based" >
+ <rich:treeNodesAdaptor id="adaptor"
+ nodes="#{shelf.albSet}"
+ var="album">
+ <rich:treeNode>
+ <h:outputText value="#{album}" />
+ </rich:treeNode>
+
+ <rich:treeNodesAdaptor id="adaptor2"
+ nodes="#{shelf.imgSet}"
+ var="image">
+ <rich:treeNode>
+ <h:outputText value="#{image}" />
+ </rich:treeNode>
+ </rich:treeNodesAdaptor>
+ </rich:treeNodesAdaptor>
+ </rich:tree>
+ </h:form>
+
+ <br></br>
+ <h4>Case 4. Tree built from XML (simple example)</h4>
+ <p>The <code>org.richfaces.model.TreeNode</code> interface, which is
used in following case, accepts data worked with
<code>org.richfaces.component.xml.XmlTreeDataBuilder</code> class and renders
it as tree nodes.</p>
+ <h:form>
+ <rich:tree id="tree"
+ value="#{hujatiorns.data}"
+ var="vardata" >
+ <rich:treeNode>
+ <h:outputText value="#{vardata.text}" />
+ </rich:treeNode>
+ </rich:tree>
+ </h:form>
+
+ <br></br>
+ <h4>Case 5. The tree with
<code>org.richfaces.TreeRowKeyConverter</code> usage</h4>
+
+ <h:form>
+ <rich:tree value="#{treeBean.data}" var="node"
switchType="ajax"
rowKeyConverter="org.richfaces.TreeRowKeyConverter">
+ <rich:treeNode ajaxSingle="true">
+ <h:outputText value="#{node}"/>
+ </rich:treeNode>
+ </rich:tree>
+ </h:form>
+
+ </rich:panel>
+ </ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/skinning/stskinning.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/skinning/stskinning.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/skinning/stskinning.xhtml 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,72 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">Standard Controls Skinning</f:facet>
+
+<h:selectOneRadio id="subscriptions1" value="">
+ <f:selectItem itemLabel="News" itemValue="1" />
+ <f:selectItem itemLabel="Sports" itemValue="2" />
+ <f:selectItem itemLabel="Music" itemValue="3" />
+ <f:selectItem itemLabel="Java" itemValue="4" />
+ <f:selectItem itemLabel="Web" itemValue="5" />
+</h:selectOneRadio>
+
+
+<h:selectManyCheckbox id="subscriptions2" value=""
layout="pageDirection">
+ <f:selectItem itemLabel="News" itemValue="1" />
+ <f:selectItem itemLabel="Sports" itemValue="2" />
+ <f:selectItem itemLabel="Music" itemValue="3" />
+ <f:selectItem itemLabel="Java" itemValue="4" />
+ <f:selectItem itemLabel="Web" itemValue="5" />
+</h:selectManyCheckbox>
+
+<h:selectManyListbox id="subscriptions3" value="">
+ <f:selectItem itemLabel="News" itemValue="1" />
+ <f:selectItem itemLabel="Sports" itemValue="2" />
+ <f:selectItem itemLabel="Music" itemValue="3" />
+ <f:selectItem itemLabel="Java" itemValue="4" />
+ <f:selectItem itemLabel="Web" itemValue="5" />
+</h:selectManyListbox>
+
+
+<h:commandButton value="Submit" />
+
+
+<select id="form:menu" name="form:menu" multiple="true"
size="1">
+ <option value="1">News</option>
+ <option value="2">Sports</option>
+ <option value="3">Music</option>
+ <option value="4">Java</option>
+ <option value="5">Web</option>
+</select>
+
+
+<select id="form:subscriptions" name="form:subscriptions"
size="1">
+ <option value="1">News</option>
+ <option value="2">Sports</option>
+ <option value="3">Music</option>
+ <option value="4">Java</option>
+ <option value="5">Web</option>
+</select>
+
+
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/stylesheet/theme.css
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/stylesheet/theme.css
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/stylesheet/theme.css 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,153 @@
+body {
+ font-size: 12px;
+ text-align: left;
+}
+
+a:active, a:link, a:visited {
+ color: #0D5798;
+}
+a:hover {
+ color: #8CAFCD;
+}
+
+input, textarea {
+ border: 1px solid #BBBBBB;
+ font-size: 10px;
+ background: #F0F8FF;
+ color: black;
+}
+
+input[type='submit'], input[type='button'] {
+ background: #4477AA;
+ color: white;
+ margin: 5px;
+ border-color: gray;
+}
+
+.tableControl, .actionButtons {
+ width: 100%;
+}
+
+.tableControl a {
+ padding-left: 10px;
+}
+
+.tableControl {
+ text-align: right;
+}
+
+.footer {
+ text-align: center;
+ font-size: 10px;
+}
+
+.rich-table {
+ width:100%;
+}
+
+h1 {
+ font-family: Arial,sans-serif;
+ color: #578BB8;
+ font-size: 1.6em;
+ margin-top: 0;
+}
+
+body {
+ margin: 0px;
+ font-family: Arial,sans-serif;
+ color: #616161;
+
+}
+
+.body {
+ padding: 30px;
+ display:block; float:left;
+ width:75%;
+
+}
+a {display:block}
+.columnHeader:hover
+{
+ color: #FF6600;
+}
+
+.message {
+ border: 1px solid #FFCC00;
+ padding: 5px;
+ margin-top: 5px;
+ margin-bottom: 5px;
+ background-color: #F0F8FF;
+ font-size: 12px;
+}
+
+.name {
+ vertical-align: top;
+ font-weight: bold;
+ width: 115px;
+ float: left;
+ padding: 5px;
+ margin-top: 3px;
+ clear: left;
+}
+.value {
+ float: left;
+ padding: 5px;
+}
+
+.error {
+ float: left;
+ padding: 5px;
+}
+.errors {
+ color: red;
+ vertical-align: middle;
+}
+img.errors {
+ padding-right: 5px;
+}
+.errors input {
+ border: 1px solid red;
+}
+.errors textarea {
+ border: 1px solid red;
+}
+.clear{
+
+}
+.required {
+ color: red;
+ padding-left: 2px;
+}
+
+.rich-stglpanel-body {
+ overflow: auto;
+}
+
+.richcomponentsmenu {
+display: block;
+float:left; width: 200px;
+height: 600px;
+padding-top: 30px;
+
+}
+.richcomponentsmenu a:HOVER {background: #FFFFFF; display: block}
+.dr-pmenu-hovered-element {background-color: #FFFFFF;}
+
+.dr-toolbar-int {padding: 2px 3px 2px 3px;}
+
+
+.dr-pnl-b .simpletext p {font-size: 12px;}
+#mainMenu {text-align: left;}
+
+.tableofattributes {padding: 0px; margin: 0px; width: 400px; margin-top: 20px; border:
1px solid #8fbde6; border-bottom: none;}
+
+
+.tableofattributes thead td {background: #F0F8FF; font-weight: 900; padding-left: 5px;}
+.tableofattributes tbody td {padding-left: 5px; border-bottom: 1px solid #8fbde6 }
+.bodyClass {border: 1px solid black;}
+
+.rich-page {margin: 0px; padding: 0px;}
+.rich-page-main{float:right;margin-left:-25em;}
+.rich-page-sidebar{float:left;width:23.076923em;*width:22.500563em;}
+.rich-page-body{margin-left:24.076923em;*marginleft:23.475563em;}
+.rich-page-body{float:none;width:auto;}
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/test/java/org/docs/richfaces/BeanTest.java
===================================================================
---
branches/community/3.3.X/test-applications/richfaces-docs/src/test/java/org/docs/richfaces/BeanTest.java
(rev 0)
+++
branches/community/3.3.X/test-applications/richfaces-docs/src/test/java/org/docs/richfaces/BeanTest.java 2009-06-02
14:21:38 UTC (rev 14440)
@@ -0,0 +1,46 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.docs.richfaces;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+*/
+public class BeanTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public BeanTest( String testName )
+ {
+ super( testName );
+ }
+
+ public void testStub() throws Exception {
+
+ }
+}