Author: ilya_shaikovsky
Date: 2008-08-11 09:55:55 -0400 (Mon, 11 Aug 2008)
New Revision: 10023
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4141
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-11
12:58:27 UTC (rev 10022)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml 2008-08-11
13:55:55 UTC (rev 10023)
@@ -6,15 +6,17 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<style>
- .red{
- color:red;
- }
- .green{
- color:green;
- }
- </style>
+.red {
+ color: red;
+}
+
+.green {
+ color: green;
+}
+</style>
<h:form>
- <rich:graphValidator value="#{dayStatistics}">
+ <a4j:region renderRegionOnly="true">
+ <rich:graphValidator value="#{dayStatistics}">
<table>
<thead>
<tr>
@@ -23,25 +25,23 @@
</tr>
</thead>
<tbody>
- <a4j:repeat value="#{dayStatistics.dayPasstimes}" var="pt"
id="table">
- <tr>
- <td align="center" width="100px">
- <h:outputText value="#{pt.title}" />
- </td>
- <td align="center" width="100px">
- <rich:inputNumberSpinner minValue="0" maxValue="24"
- value="#{pt.time}" id="time">
- </rich:inputNumberSpinner>
- </td>
- <td>
- <rich:message for="time" />
- </td>
- </tr>
+ <a4j:repeat value="#{dayStatistics.dayPasstimes}" var="pt"
+ id="table">
+ <tr>
+ <td align="center" width="100px"><h:outputText
+ value="#{pt.title}" /></td>
+ <td align="center"
width="100px"><rich:inputNumberSpinner
+ minValue="0" maxValue="24" value="#{pt.time}"
id="time">
+ </rich:inputNumberSpinner></td>
+ <td><rich:message for="time" /></td>
+ </tr>
</a4j:repeat>
</tbody>
- </table>
- </rich:graphValidator>
- <a4j:commandButton value="Store my details"
actionListener="#{dayStatistics.store}" reRender="panel"/>
- <rich:messages infoClass="green" errorClass="red"/>
+ </table>
+ </rich:graphValidator>
+ <a4j:commandButton value="Store my details"
+ actionListener="#{dayStatistics.store}" reRender="panel" />
+ <rich:messages infoClass="green" errorClass="red" />
+ </a4j:region>
</h:form>
</ui:composition>
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml 2008-08-11
12:58:27 UTC (rev 10022)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml 2008-08-11
13:55:55 UTC (rev 10023)
@@ -6,26 +6,28 @@
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">
- <f:validateLength minimum="2"/>
- </h:inputText>
- <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>
+ <a4j:region renderRegionOnly="true">
+ <rich:panel id="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">
+ <f:validateLength minimum="2" />
+ </h:inputText>
+ <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>
+ </a4j:region>
</h:form>
</ui:composition>
\ No newline at end of file