Author: mvitenkov
Date: 2008-08-12 04:33:16 -0400 (Tue, 12 Aug 2008)
New Revision: 10042
Modified:
trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp
Log:
bean -> beanValidator
data -> dataValidator
Modified: trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2008-08-12
08:26:30 UTC (rev 10041)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2008-08-12
08:33:16 UTC (rev 10042)
@@ -17,10 +17,10 @@
<a4j:region>
<h2>Input fields with label and message in the JSF dataTable.
Each field validated by AJAX on "onchange" event</h2>
- <rich:graphValidator value="#{data}"
- binding="#{data.graphValidatorComponent}" id="graphValidatorID"
- rendered="#{data.rendered}">
- <rich:dataTable value="#{data.beans}" var="dataBean"
id="table">
+ <rich:graphValidator value="#{dataValidator}"
+ binding="#{dataValidator.graphValidatorComponent}"
id="graphValidatorID"
+ rendered="#{dataValidator.rendered}">
+ <rich:dataTable value="#{dataValidator.beans}" var="dataBean"
id="table">
<f:facet name="header">
<h:outputText
value="Validate values in the data table. Total sum for an all integer values
validated for a value less then 20" />
Modified: trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp 2008-08-12
08:26:30 UTC (rev 10041)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp 2008-08-12
08:33:16 UTC (rev 10042)
@@ -5,7 +5,7 @@
<f:subview id="validatorPropertySubviewID">
<a4j:commandButton value="add(ajaxValidator) test"
action="#{validator.add}"></a4j:commandButton>
- <a4j:commandButton value="add(graphValidator) test"
action="#{data.add}"></a4j:commandButton>
+ <a4j:commandButton value="add(graphValidator) test"
action="#{dataValidator.add}"></a4j:commandButton>
<br />
<br />
<h:panelGrid columns="2" style="display:block;
vertical-align:top;">
@@ -67,12 +67,12 @@
<h:panelGrid columns="2" border="2"
style="float:top;">
- <h:commandButton actionListener="#{data.checkBinding}"
+ <h:commandButton actionListener="#{dataValidator.checkBinding}"
value="Binding" />
- <h:outputText value="#{data.bindLabel}" />
+ <h:outputText value="#{dataValidator.bindLabel}" />
<h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{data.rendered}"
+ <h:selectBooleanCheckbox value="#{dataValidator.rendered}"
onchange="submit();" />
</h:panelGrid>
Modified:
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp 2008-08-12
08:26:30 UTC (rev 10041)
+++
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp 2008-08-12
08:33:16 UTC (rev 10042)
@@ -4,7 +4,7 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="validatorStraightforwardSubviewID">
<a4j:region>
- <rich:dataTable value="#{data.data}" var="dataBean"
id="SizeValidationID">
+ <rich:dataTable value="#{dataValidator.data}" var="dataBean"
id="SizeValidationID">
showSummary="true" />
<rich:column>
<f:facet name="header">
@@ -62,8 +62,8 @@
<a4j:region>
<h:outputText value="Enter quantity of lines [2-8]" />
<h:panelGroup>
- <h:inputText value="#{data.length}"/>
- <a4j:commandButton action="#{data.addNewItem}" value="ok"
+ <h:inputText value="#{dataValidator.length}"/>
+ <a4j:commandButton action="#{dataValidator.addNewItem}"
value="ok"
reRender="SizeValidationID"></a4j:commandButton>
</h:panelGroup>
</a4j:region>