Author: mvitenkov
Date: 2008-08-11 04:14:04 -0400 (Mon, 11 Aug 2008)
New Revision: 10013
Modified:
trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp
Log:
-6 properties for ajaxValidator
dataBean is changed to data on Straightforward page.
Modified: trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2008-08-10
15:19:06 UTC (rev 10012)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2008-08-11
08:14:04 UTC (rev 10013)
@@ -3,7 +3,7 @@
<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="validatorSubviewID">
- <a4j:region>
+
<rich:panel>
<f:facet name="header">
<h:outputText>Single input field with label and message. Validated by AJAX on
every changing.</h:outputText>
@@ -14,6 +14,7 @@
</h:inputText>
<rich:message for="ltext" showDetail="true"
showSummary="true" />
</rich:panel>
+ <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}"
@@ -70,19 +71,15 @@
disableDefault="#{validator.disableDefault}" event="onchange"
eventsQueue="#{validator.eventsQueue}" focus="mailValue"
id="ajaxValidatorID"
- ignoreDupResponses="#{validator.ignoreDupResponses}"
- immediate="#{validator.immediate}"
+ ignoreDupResponses="#{validator.ignoreDupResponses}"
limitToList="#{validator.limitToList}"
onbeforedomupdate="#{event.onbeforedomupdate}"
- oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
- parentProperties="#{validator.parentProperties}"
- process="mailValue,booleanValue,assertTrue,eanValue,creditValue"
- rendered="#{validator.rendered}"
- renderRegionOnly="#{validator.renderRegionOnly}"
+ oncomplete="#{event.oncomplete}"
onsubmit="#{event.onsubmit}"
+ rendered="#{validator.rendered}"
requestDelay="#{validator.requestDelay}"
reRender="mailValue,booleanValue,assertTrue,eanValue,creditValue"
- selfRendered="#{validator.selfRendered}" status="mailValue"
- submitted="#{validator.submitted}"
timeout="#{validator.timeout}"></rich:ajaxValidator>
+ status="mailValue"
+ ajaxListener="#{validator.processAjax}"></rich:ajaxValidator>
</h:inputText>
<rich:message for="mailValue" showDetail="true"
showSummary="true" />
</h:panelGroup>
@@ -97,7 +94,7 @@
</h:panelGroup>
<h:outputLabel for="assertTrue" value="AssertTrue validation:"
/>
- <h:panelGroup>
+ <h:panelGroup>
<h:selectBooleanCheckbox value="#{validator.assertTrue}"
id="assertTrue">
<rich:ajaxValidator event="onchange"></rich:ajaxValidator>
Modified:
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp 2008-08-10
15:19:06 UTC (rev 10012)
+++
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorStraightforward.jsp 2008-08-11
08:14:04 UTC (rev 10013)
@@ -62,8 +62,8 @@
<a4j:region>
<h:outputText value="Enter quantity of lines [2-8]" />
<h:panelGroup>
- <h:inputText value="#{dataBean.length}"/>
- <a4j:commandButton action="#{dataBean.addNewItem}" value="ok"
+ <h:inputText value="#{data.length}"/>
+ <a4j:commandButton action="#{data.addNewItem}" value="ok"
reRender="SizeValidationID"></a4j:commandButton>
</h:panelGroup>
</a4j:region>