Author: artdaw
Date: 2008-09-12 08:39:03 -0400 (Fri, 12 Sep 2008)
New Revision: 10430
Modified:
trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml
Log:
Modified: trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml 2008-09-12
11:43:39 UTC (rev 10429)
+++ trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml 2008-09-12
12:39:03 UTC (rev 10430)
@@ -133,14 +133,48 @@
<programlisting role="XML"><![CDATA[...
-<rich:graphValidator value="#{dayStatistics}">
- <h:outputText value="#{pt.title}" />
- <rich:inputNumberSpinne minValue="0" maxValue="24"
value="#{pt.time}" id="time">
- </rich:inputNumberSpinner>
- <rich:message for="time" />
+<rich:graphValidator summary="Invalid values: "
value="#{dayStatistics}">
+<a4j:repeat value="#{dayStatistics.dayPasstimes}" var="pt"
id="table">
+<h:outputText value="#{pt.title}" />
+<rich:inputNumberSpinner minValue="0" maxValue="24"
value="#{pt.time}" id="time">
+</rich:inputNumberSpinner>
+<rich:message for="time" />
+</a4j:repeat>
</rich:graphValidator>
...
]]></programlisting>
+<para>Hence, the given above code will provide the functionality that is
illustrated on the images below.</para>
+
+ <figure>
+ <title>"Games" field did not pass
validation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
fileref="images/graphValidator11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>As you can see from the picture the "Games" field
did not pass validation, as <emphasis
role="bold"><property><rich:graphValidator></property>
+ </emphasis> can be used to perform validation of a single input item.
+ </para>
+
+ <figure>
+ <title>Total sum of all input values is
incorrect</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
fileref="images/graphValidator12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para> The figure above shows that the entered data was revalidated after
all fields were completed, and the data did not pass revalidation since the total sum was
incorrect. </para>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para><ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/graphValida...
+ Here</ulink> you can see an example of <emphasis
role="bold"><property><rich:graphValidator></property>
+ </emphasis> usage and sources for the given example.
</para>
+ </section>
+
</section>