Author: artdaw
Date: 2008-08-11 12:51:05 -0400 (Mon, 11 Aug 2008)
New Revision: 10031
Added:
trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml
Log:
https://jira.jboss.org/jira/browse/RF-3903
Validators
Added: trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml
(rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml 2008-08-11
16:51:05 UTC (rev 10031)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:ajaxValidator</keyword>
+ </keywordset>
+ </sectioninfo>
+ <section>
+ <title>Description</title>
+ <para>The<emphasis role="bold">
+ <property><rich:ajaxGraph></property>
+ </emphasis>is a component designed to provide ajax validation inside for
JSF inputs.</para>
+
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem><para>Skips all JSF processing except
validation</para></listitem>
+
+ </itemizedlist>
+ </section>
+</section>
Added: trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml
(rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml 2008-08-11
16:51:05 UTC (rev 10031)
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:graphValidator</keyword>
+ </keywordset>
+ </sectioninfo>
+
+ <table>
+ <title>Component identification parameters</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+
+ <entry>Value</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+
+ <entry>org.richfaces.graphValidator</entry>
+ </row>
+
+ <row>
+ <entry>component-class</entry>
+
+ <entry>org.richfaces.component.html.HtmlgraphValidator</entry>
+ </row>
+
+ <row>
+ <entry>component-family</entry>
+
+ <entry>org.richfaces.graphValidator</entry>
+ </row>
+
+ <row>
+ <entry>renderer-type</entry>
+
+ <entry>org.richfaces.graphValidatorRenderer</entry>
+ </row>
+
+ <row>
+ <entry>tag-class</entry>
+
+ <entry>org.richfaces.taglib.graphValidatorTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+
+ <para>To create the simplest variant on a page use the following
syntax:</para>
+
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <h:outputText value="Name:" />
+ <h:inputText value="#{userBean.name}" id="name"
required="true">
+ <f:validateLength minimum="3"
maximum="12"/>
+ <rich:graphValidator event="onblur"/>
+ </h:inputText>
+...]]></programlisting>
+ </section>
+
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import
org.richfaces.component.html.HtmlCalendar;
+...
+HtmlgraphValidator mygraphValidator= new HtmlgraphValidator();
+...
+]]></programlisting>
+ </section>
+
+
+