Author: ilya_shaikovsky
Date: 2008-07-23 10:08:31 -0400 (Wed, 23 Jul 2008)
New Revision: 9750
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
Removed:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
Log:
graphValidator example
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml 2008-07-23
14:08:31 UTC (rev 9750)
@@ -0,0 +1,29 @@
+<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>
+ <rich:graphValidator>
+ <h:panelGrid columns="3">
+ <h:outputText value="Name:" />
+ <h:inputText value="#{validationBean.name}" id="name"/>
+ <rich:message for="name" />
+ <h:outputText value="Email:" />
+ <h:inputText value="#{validationBean.email}" id="email"/>
+ <rich:message for="email" />
+ <h:outputText value="Age:" />
+ <h:inputText value="#{validationBean.age}" id="age"/>
+ <rich:message for="age" />
+ </h:panelGrid>
+ </rich:graphValidator>
+ <a4j:commandButton value="Store changes"/>
+ </rich:panel>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Deleted:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml 2008-07-23
14:08:31 UTC (rev 9750)
@@ -1,12 +0,0 @@
-<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:rich="http://richfaces.org/rich">
-
-<p>
-Graph Validator Example
-</p>
-
-</ui:composition>
\ No newline at end of file
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml 2008-07-23
13:46:23 UTC (rev 9749)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml 2008-07-23
14:08:31 UTC (rev 9750)
@@ -15,9 +15,9 @@
<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="/richfaces/graphValidator/examples/hibernateValidation.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath"
value="/richfaces/graphValidator/examples/simple.xhtml"/>
+ <ui:param name="sourcepath"
value="/richfaces/graphValidator/examples/hibernateValidation.xhtml"/>
</ui:include>
</div>
</fieldset>