Author: SeanRogers
Date: 2011-02-23 20:13:55 -0500 (Wed, 23 Feb 2011)
New Revision: 21903
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Validation.xml
Log:
Completed review of validation RFPL-990
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Validation.xml
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Validation.xml 2011-02-23
23:17:15 UTC (rev 21902)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Validation.xml 2011-02-24
01:13:55 UTC (rev 21903)
@@ -112,16 +112,6 @@
<parameter>component-family</parameter>:
<classname>org.richfaces.validator</classname>
</para>
</listitem>
- <mediaobject>
- <imageobject>
- <imagedata
fileref="images/figu-Component_Reference-richvalidator-Messages.png"
format="PNG" />
- </imageobject>
- <textobject>
- <para>
- Failed validation checks are reported using
<sgmltag><rich:message></sgmltag> components.
- </para>
- </textobject>
- </mediaobject>
<listitem>
<para>
<parameter>renderer-type</parameter>:
<classname>org.richfaces.validatorRenderer</classname>
@@ -139,7 +129,7 @@
<section id="sect-Component_Reference-Validation-richgraphValidator">
<title><sgmltag><rich:graphValidator></sgmltag> object
validation</title>
<para>
- The <sgmltag><rich:graphValidator></sgmltag> component is
used to wrap a set of input components related to one object. The input values can then be
completely validated, including any properties which are not bound to the individual
components. This object validation allows for cross-field validation in complex forms.
+ The <sgmltag><rich:graphValidator></sgmltag> component is
used to wrap a set of input components related to one object. The object defined by the
<sgmltag><rich:graphValidator></sgmltag> component can then be
completely validated. The validation includes all object properties, even those which are
not bound to the individual form components. Validation performed in this way allows for
cross-field validation in complex forms.
</para>
<note>
<title>Validation without model updates</title>
@@ -164,8 +154,11 @@
</para>
<programlisting language="XML" role="XML"><xi:include
parse="text"
href="extras/exam-Component_Reference-richgraphValidator-Basic_usage.js"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- If the entered passwords do not match, the error message is displayed:
+ When validation occurs, the whole object is validated against the annotation
contstraints. The <varname>@AssertTrue</varname> annotation relies on the
<methodname>isPasswordsEqual()</methodname> function to check whether the two
entered passwords are equal.
</para>
+ <para>
+ If the entered passwords do not match, an error message is displayed:
+ </para>
<mediaobject>
<imageobject>
<imagedata
fileref="images/figu-Component_Reference-richgraphValidator-Basic_usage.png"
format="PNG" />