Author: SeanRogers
Date: 2009-12-22 19:57:40 -0500 (Tue, 22 Dec 2009)
New Revision: 16193
Modified:
root/docs/trunk/Component_Reference/en-US/Book_Info.xml
root/docs/trunk/Component_Reference/en-US/Component_Reference.xml
root/docs/trunk/Component_Reference/en-US/Preface.xml
root/docs/trunk/Component_Reference/en-US/chap-Component_Reference-Validation.xml
Log:
Finished Validators
Modified: root/docs/trunk/Component_Reference/en-US/Book_Info.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/Book_Info.xml 2009-12-23 00:46:27 UTC (rev
16192)
+++ root/docs/trunk/Component_Reference/en-US/Book_Info.xml 2009-12-23 00:57:40 UTC (rev
16193)
@@ -29,7 +29,7 @@
<year>&YEAR;</year>
<holder>&HOLDER;</holder>
</copyright>
- <!-- FOR PUBLICAN --><xi:include
href="Common_Content/Legal_Notice.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><!-- FOR
JDOCBOOK: --><xi:fallback
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include
href="fallback_content/Legal_Notice.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <!-- FOR PUBLICAN --><xi:include
href="Common_Content/Legal_Notice.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><!-- FOR
JDOCBOOK: --><xi:fallback
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include
href="fallback_content/Legal_Notice.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
</xi:fallback>
</xi:include>
<xi:include href="Author_Group.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
Modified: root/docs/trunk/Component_Reference/en-US/Component_Reference.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/Component_Reference.xml 2009-12-23 00:46:27
UTC (rev 16192)
+++ root/docs/trunk/Component_Reference/en-US/Component_Reference.xml 2009-12-23 00:57:40
UTC (rev 16193)
@@ -3,9 +3,9 @@
]>
<book status="draft">
<xi:include href="Book_Info.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
- <!--
+ <!--
<xi:include href="Preface.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- --><xi:include
href="chap-Component_Reference-Introduction.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+ --><xi:include
href="chap-Component_Reference-Introduction.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="chap-Component_Reference-Common_Ajax_attributes.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="chap-Component_Reference-Common_features.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
<part id="part-Component_Reference-a4j_tag_library">
Modified: root/docs/trunk/Component_Reference/en-US/Preface.xml
===================================================================
--- root/docs/trunk/Component_Reference/en-US/Preface.xml 2009-12-23 00:46:27 UTC (rev
16192)
+++ root/docs/trunk/Component_Reference/en-US/Preface.xml 2009-12-23 00:57:40 UTC (rev
16193)
@@ -3,10 +3,10 @@
]>
<preface id="pref-Component_Reference-Preface">
<title>Preface</title>
- <!-- FOR JDOCBOOK --><xi:include
href="Common_Content/Conventions.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><!-- FOR
PUBLICAN --><xi:fallback
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include
href="fallback_content/Conventions.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <!-- FOR JDOCBOOK --><xi:include
href="Common_Content/Conventions.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><!-- FOR
PUBLICAN --><xi:fallback
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include
href="fallback_content/Conventions.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
</xi:fallback>
</xi:include>
- <!-- PUBLICAN'S ORIGINAL XINCLUDES
--><xi:include href="Feedback.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include
href="Common_Content/Feedback.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><!-- FOR
JDOCBOOK --><xi:fallback
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include
href="fallback_content/Feedback.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <!-- PUBLICAN'S ORIGINAL XINCLUDES
--><xi:include href="Feedback.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include
href="Common_Content/Feedback.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"><!-- FOR
JDOCBOOK --><xi:fallback
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include
href="fallback_content/Feedback.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
</xi:fallback>
</xi:include>
</xi:fallback>
Modified:
root/docs/trunk/Component_Reference/en-US/chap-Component_Reference-Validation.xml
===================================================================
---
root/docs/trunk/Component_Reference/en-US/chap-Component_Reference-Validation.xml 2009-12-23
00:46:27 UTC (rev 16192)
+++
root/docs/trunk/Component_Reference/en-US/chap-Component_Reference-Validation.xml 2009-12-23
00:57:40 UTC (rev 16193)
@@ -66,7 +66,7 @@
</para>
<programlisting language="Java" role="JAVA">
-<xi:include
href="extras/exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator-1.js"
parse="text"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+<xi:include
href="extras/exam-Component_Reference-exam-Component_Reference-ValidationBean.js"
parse="text"
xmlns:xi="http://www.w3.org/2001/XInclude" />
</programlisting>
</section>
@@ -100,8 +100,28 @@
</listitem>
</itemizedlist>
<para>
- Incomplete
+ The <sgmltag><rich:beanValidator></sgmltag> component
provides model-based constraints using Hibernate Validator. This allows Hibernate
Validator to be used similar to its use with Seam-based applications.
</para>
+ <para>
+ The <varname>summary</varname> attribute is used for displaying messages
about validation errors.
+ </para>
+ <example
id="exam-Component_Reference-richbeanValidator-richbeanValidator_example">
+ <title><sgmltag><rich:beanValidator></sgmltag>
example</title>
+ <para>
+ This example shows the bean-based validation of a simple form, containing the
user's name, email, and age. The
<sgmltag><rich:beanValidator></sgmltag> component is defined in
the same way as for <acronym>JSF</acronym> validators.
+ </para>
+
+<programlisting language="XML" role="XML">
+<xi:include
href="extras/exam-Component_Reference-richbeanValidator-richbeanValidator_example-0.xml_sample"
parse="text"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+</programlisting>
+ <para>
+ The accompanying bean contains the validation data:
+ </para>
+
+<programlisting language="Java" role="JAVA">
+<xi:include
href="extras/exam-Component_Reference-exam-Component_Reference-ValidationBean.js"
parse="text"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+</programlisting>
+ </example>
</section>
<section id="sect-Component_Reference-Validation-richgraphValidator">
@@ -134,8 +154,38 @@
</listitem>
</itemizedlist>
<para>
- Incomplete
+ The <sgmltag><rich:graphValidator></sgmltag> component is
used to wrap a group of input components for overall validation with Hibernate Validators.
This is different from the
<sgmltag><rich:beanValidator></sgmltag> component, which is used
as a child element to individual input components.
</para>
+ <para>
+ The <varname>summary</varname> attribute is used for displaying messages
about validation errors.
+ </para>
+ <example
id="exam-Component_Reference-richgraphValidator-richgraphValidator_example">
+ <title><sgmltag><rich:graphValidator></sgmltag>
example</title>
+ <para>
+ This example shows the validation of a simple form, containing the user's name,
email, and age. The <sgmltag><rich:graphValidator></sgmltag>
component wraps the input components to validate them together.
+ </para>
+
+<programlisting language="XML" role="XML">
+<xi:include
href="extras/exam-Component_Reference-richgraphValidator-richgraphValidator_example-0.xml_sample"
parse="text"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+</programlisting>
+ <para>
+ The accompanying bean contains the validation data:
+ </para>
+
+<programlisting language="Java" role="JAVA">
+<xi:include href="extras/exam-Component_Reference-ValidationBean.js"
parse="text"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+</programlisting>
+ </example>
+ <para>
+ The optional <varname>value</varname> attribute can be used to define a
value bound to the bean. The bean properties are then validated again
<emphasis>after</emphasis> the model has been updated.
+ </para>
+ <example
id="exam-Component_Reference-richgraphValidator-Using_the_value_attribute">
+ <title>Using the <varname>value</varname> attribute</title>
+
+<programlisting language="XML" role="XML">
+<xi:include
href="extras/exam-Component_Reference-richgraphValidator-Using_the_value_attribute.xml_sample"
parse="text"
xmlns:xi="http://www.w3.org/2001/XInclude" />
+</programlisting>
+ </example>
</section>
</chapter>