Author: alexsmirnov
Date: 2008-08-05 20:16:23 -0400 (Tue, 05 Aug 2008)
New Revision: 9929
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml
trunk/ui/beanValidator/src/main/config/component/beanValidator.xml
Log:
Fix validator examples.
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml 2008-08-05
22:39:55 UTC (rev 9928)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml 2008-08-06
00:16:23 UTC (rev 9929)
@@ -13,17 +13,17 @@
<h:panelGrid columns="3">
<h:outputText value="Name:" />
<h:inputText value="#{validationBean.name}" id="name"
required="true">
- <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ <rich:ajaxValidator event="onblur" />
</h:inputText>
<rich:message for="name" />
<h:outputText value="Email:" />
<h:inputText value="#{validationBean.email}" id="email">
- <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ <rich:ajaxValidator event="onblur" />
</h:inputText>
<rich:message for="email" />
<h:outputText value="Age:" />
<h:inputText value="#{validationBean.age}" id="age">
- <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ <rich:ajaxValidator event="onblur" />
</h:inputText>
<rich:message for="age" />
</h:panelGrid>
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml 2008-08-05
22:39:55 UTC (rev 9928)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml 2008-08-06
00:16:23 UTC (rev 9929)
@@ -13,21 +13,22 @@
<h:panelGrid columns="3">
<h:outputText value="Name:" />
<h:inputText value="#{validationBean.name}" id="name">
- <rich:beanValidator/>
+ <rich:beanValidator summary="Invalid name"/>
</h:inputText>
<rich:message for="name" />
<h:outputText value="Email:" />
<h:inputText value="#{validationBean.email}" id="email">
- <rich:beanValidator/>
+ <rich:beanValidator summary="Invalid email"/>
</h:inputText>
<rich:message for="email" />
<h:outputText value="Age:" />
<h:inputText value="#{validationBean.age}" id="age">
- <rich:beanValidator/>
+ <rich:beanValidator summary="Wrong age"/>
</h:inputText>
<rich:message for="age" />
</h:panelGrid>
<a4j:commandButton value="Submit"/>
+ <rich:messages />
</rich:panel>
</h:form>
</ui:composition>
\ No newline at end of file
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml 2008-08-05
22:39:55 UTC (rev 9928)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml 2008-08-06
00:16:23 UTC (rev 9929)
@@ -22,6 +22,7 @@
<rich:message for="time" />
</rich:column>
</rich:dataTable>
+ <rich:messages />
</rich:graphValidator>
<a4j:commandButton value="Store my details"
action="#{pt.store}"/>
</h:form>
Modified: trunk/ui/beanValidator/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-08-05 22:39:55
UTC (rev 9928)
+++ trunk/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-08-06 00:16:23
UTC (rev 9929)
@@ -50,7 +50,7 @@
event
</description>
</property>
- <property>
+ <property disabled="true">
<name>ajaxSingle</name>
<classname>boolean</classname>
<description>