Author: ilya_shaikovsky
Date: 2008-07-23 09:46:23 -0400 (Wed, 23 Jul 2008)
New Revision: 9749
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
Log:
validators demos
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2008-07-23
13:41:37 UTC (rev 9748)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2008-07-23
13:46:23 UTC (rev 9749)
@@ -10,7 +10,7 @@
private String address;
private String city;
private String zip;
-
+ private int age;
public UserBean() {
super();
}
@@ -80,4 +80,12 @@
this.zip = zip;
}
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+
}
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2008-07-23
13:41:37 UTC (rev 9748)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2008-07-23
13:46:23 UTC (rev 9749)
@@ -125,6 +125,10 @@
return ret;
}
+ public List getValidatorsComponents() {
+ return getFilteredComponents("richValidators");
+ }
+
public List getSelectComponents() {
return getFilteredComponents("richSelect");
}
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,56 @@
+/**
+ *
+ */
+package org.richfaces.demo.validation;
+
+import org.hibernate.validator.Email;
+import org.hibernate.validator.Length;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author Ilya Shaikovsky
+ *
+ */
+public class ValidationBean {
+
+ @NotEmpty
+ @Length(min=3,max=12)
+ private String name;
+ @Email
+ @NotEmpty
+ private String email;
+ @NotNull
+ @Min(18)
+ @Max(100)
+ private int age;
+
+ public ValidationBean() {
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+}
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
---
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-07-23
13:41:37 UTC (rev 9748)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-07-23
13:46:23 UTC (rev 9749)
@@ -83,4 +83,7 @@
fileUpload =richInputs, \t File Upload, \t\t/images/ico_FileUpload.gif,
\t\t/images/cn_FileUpload.gif, fileUpload.html,
jbossrichfaces/freezone/docs/tlddoc/rich/fileUpload.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIFileUpload.html,
\t\t\t\t\t/richfaces/fileUpload.jsf
StandardSkinning =richMisc, \t Standard Skinning,
\t\t/images/ico_StandardComponentsSkinning.gif,
\t\t/images/cn_StandardComponentsSkinning.gif,
ArchitectureOverview.html\#StControlsSkinning,
jbossrichfaces/freezone/docs/tlddoc/rich/StandardSkinning.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIfileUpload.html,
\t\t\t\t\t/richfaces/standardSkinning.jsf
plugnskin =richMisc, \t Plug'n'Skin, \t\t/images/ico_plugnskin.gif,
\t\t/images/cn_plugnskin.gif, ArchitectureOverview.html\#plugnskin,
jbossrichfaces/freezone/docs/tlddoc/rich/plugnskin.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIfileUpload.html,
\t\t\t\t\t/richfaces/plugnskin.jsf
-hotKey=richMisc, \t Hot Key, \t\t/images/ico_hotkey.gif,
\t\t/images/cn_hotkey.gif, ArchitectureOverview.html\#hotkey,
jbossrichfaces/freezone/docs/tlddoc/rich/hotkey.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html,
\t\t\t\t\t/richfaces/hotKey.jsf
\ No newline at end of file
+hotKey=richMisc, \t Hot Key, \t\t/images/ico_hotkey.gif,
\t\t/images/cn_hotkey.gif, ArchitectureOverview.html\#hotkey,
jbossrichfaces/freezone/docs/tlddoc/rich/hotkey.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html,
\t\t\t\t\t/richfaces/hotKey.jsf
+ajaxValidator=richValidators, \t Ajax Validator,
\t\t/images/ico_ajaxValidator.gif, \t\t/images/cn_ajaxValidator.gif,
ArchitectureOverview.html\#ajaxValidator,
jbossrichfaces/freezone/docs/tlddoc/rich/ajaxValidator.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html,
\t\t\t\t\t/richfaces/ajaxValidator.jsf
+beanValidator=richValidators, \t Bean Validator,
\t\t/images/ico_beanValidator.gif, \t\t/images/cn_beanValidator.gif,
ArchitectureOverview.html\#beanValidator,
jbossrichfaces/freezone/docs/tlddoc/rich/beanValidator.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html,
\t\t\t\t\t/richfaces/beanValidator.jsf
+graphValidator=richValidators, \t Graph Validator,
\t\t/images/ico_graphValidator.gif, \t\t/images/cn_graphValidator.gif,
ArchitectureOverview.html\#graphValidator,
jbossrichfaces/freezone/docs/tlddoc/rich/graphValidator.html,
jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html,
\t\t\t\t\t/richfaces/graphValidator.jsf
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-07-23
13:41:37 UTC (rev 9748)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -328,6 +328,11 @@
<managed-bean-class>org.richfaces.demo.tree.SimpleTreeDndBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>validationBean</managed-bean-name>
+
<managed-bean-class>org.richfaces.demo.validation.ValidationBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
<navigation-rule>
<from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
<navigation-case>
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,32 @@
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+
+ <h:form>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="User Info:" />
+ </f:facet>
+ <h:panelGrid columns="3">
+ <h:outputText value="Name:" />
+ <h:inputText value="#{validationBean.name}" id="name"
required="true">
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="name" />
+ <h:outputText value="Email:" />
+ <h:inputText value="#{validationBean.email}" id="email">
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="email" />
+ <h:outputText value="Age:" />
+ <h:inputText value="#{validationBean.age}" id="age">
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="age" />
+ </h:panelGrid>
+ </rich:panel>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,33 @@
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+
+ <h:form>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="User Info:" />
+ </f:facet>
+ <h:panelGrid columns="3">
+
+ <h:outputText value="Name:" />
+ <h:inputText value="#{userBean.name}" id="name"
required="true">
+ <f:validateLength minimum="3" maximum="12"/>
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="name" />
+
+ <h:outputText value="Age:" />
+ <h:inputText value="#{userBean.age}" id="age"
required="true">
+ <f:convertNumber integerOnly="true"/>
+ <f:validateLongRange minimum="18" maximum="99"/>
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="age"/>
+
+ </h:panelGrid>
+ </rich:panel>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,44 @@
+<!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:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ Using standard JSF validators
+ </p>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Title</legend>
+ <div class="sample-container" >
+ <ui:include
src="/richfaces/ajaxValidator/examples/jsfValidation.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/ajaxValidator/examples/jsfValidation.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+ <p>
+ Using Hibernate validators
+ </p>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Title</legend>
+ <div class="sample-container" >
+ <ui:include
src="/richfaces/ajaxValidator/examples/hibernateValidation.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/ajaxValidator/examples/hibernateValidation.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/WEB-INF/src/org/richfaces/demo/validator/ValidatorBean.java"/>
+ <ui:param name="openlabel" value="View ValidatorBean.java
Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ </div>
+ </fieldset>
+ </ui:define>
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.xhtml
(rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components -
Ajax Validator</ui:define>
+ <ui:define name="body">
+ <ui:include src="/templates/include/tab-panel.xhtml" />
+ </ui:define>
+</ui:composition>
+</html>
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,12 @@
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+
+<p>
+Bean Validator Example
+</p>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,27 @@
+<!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:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ Description
+ </p>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Title</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/beanValidator/examples/simple.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/beanValidator/examples/simple.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator.xhtml
(rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components -
Bean Validator</ui:define>
+ <ui:define name="body">
+ <ui:include src="/templates/include/tab-panel.xhtml" />
+ </ui:define>
+</ui:composition>
+</html>
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,12 @@
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+
+<p>
+Graph Validator Example
+</p>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,27 @@
+<!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:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ Description
+ </p>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Title</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/graphValidator/examples/simple.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/graphValidator/examples/simple.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator.xhtml
(rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components -
Graph Validator</ui:define>
+ <ui:define name="body">
+ <ui:include src="/templates/include/tab-panel.xhtml" />
+ </ui:define>
+</ui:composition>
+</html>
Modified:
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2008-07-23
13:41:37 UTC (rev 9748)
+++
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
@@ -18,6 +18,11 @@
<ui:param name="components"
value="#{componentNavigator.ajaxResources}" />
</ui:include>
</rich:panelBarItem>
+ <rich:panelBarItem id="richValidators" label="Ajax
Validators">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components"
value="#{componentNavigator.validatorsComponents}" />
+ </ui:include>
+ </rich:panelBarItem>
<rich:panelBarItem styleClass="panel_menu_bar" id="ajaxOutput"
label="Ajax Output">
<ui:include src="/templates/include/components-group.xhtml" >
<ui:param name="components"
value="#{componentNavigator.ajaxOutput}" />