Author: rahul
Date: Fri Jan 26 12:46:48 2007
New Revision: 500336

URL: http://svn.apache.org/viewvc?view=rev&rev=500336
Log:
Port r500335 to SHALE_1_0_X branch, use SVN URLs that point to branch rather 
than trunk.
SHALE-395

Modified:
    shale/framework/branches/SHALE_1_0_X/shale-validator/src/site/xdoc/index.xml

Modified: 
shale/framework/branches/SHALE_1_0_X/shale-validator/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/shale/framework/branches/SHALE_1_0_X/shale-validator/src/site/xdoc/index.xml?view=diff&rev=500336&r1=500335&r2=500336
==============================================================================
--- 
shale/framework/branches/SHALE_1_0_X/shale-validator/src/site/xdoc/index.xml 
(original)
+++ 
shale/framework/branches/SHALE_1_0_X/shale-validator/src/site/xdoc/index.xml 
Fri Jan 26 12:46:48 2007
@@ -53,9 +53,9 @@
       <subsection name="Services Provided">
 
         <p>Shale provides three JSP tags that let you use the Commons 
Validator:
-                 <a 
href="shale-core/tagreference-taglib.html#s:commonsValidator"><code>s:commonsValidator</code></a>,
-          <a 
href="shale-core/tagreference-taglib.html#s:validatorVar"><code>s:validatorVar</code></a>,
-          and <a 
href="shale-core/tagreference-taglib.html#s:validatorScript"><code>s:validatorScript</code></a>.
 The
+                 <a 
href="tagreference.html#commonsValidator"><code>val:commonsValidator</code></a>,
+          <a 
href="tagreference.html#validatorVar"><code>val:validatorVar</code></a>,
+          and <a 
href="tagreference.html#validatorScript"><code>val:validatorScript</code></a>. 
The
                  first two lets you attach a commons validator to a JSF input 
component and
                  the third generates JavaScript validation code for validating 
each JSF component
                  that has one or more Commons validators in a particular form. 
You can attach as 
@@ -70,20 +70,20 @@
                  <ul>
                        <li>
                            Add an <code>onsubmit</code> attribute to your 
<code>h:form</code> tag that calls
-                                the JavaScript validation function generated 
by <code>s:validatorScript</code>.
+                                the JavaScript validation function generated 
by <code>val:validatorScript</code>.
                        </li>
                        <li>
-                           Add Commons validators to JSF input components with 
<code>s:commonsValidator</code>
-                and, optionally, <code>s:validatorVar</code>.
+                           Add Commons validators to JSF input components with 
<code>val:commonsValidator</code>
+                and, optionally, <code>val:validatorVar</code>.
                        </li>
                        <li>
-                           Add an <code>s:validatorScript</code> tag at the 
end of the <code>h:form</code> tag's body.
+                           Add an <code>val:validatorScript</code> tag at the 
end of the <code>h:form</code> tag's body.
                        </li>
                  </ul>
 
         <p>Here's an example:</p>
 <source>
-&lt;%@ taglib uri="http://shale.apache.org/core"; prefix="s" %&gt;
+&lt;%@ taglib uri="http://shale.apache.org/core"; prefix="val" %&gt;
 ...
 &lt;h:form onsubmit="return validateForm(this);"&gt;
 
@@ -91,26 +91,26 @@
                size="16"
               value="#{userContext.creditCardNumber}"&gt;
 
-        &lt;s:commonsValidator type="required"
+        &lt;val:commonsValidator type="required"
                              arg="#{msgs.creditCardNumberPrompt}"
                           server="true"
                           client="true"/&gt;
 
-        &lt;s:commonsValidator type="mask"
+        &lt;val:commonsValidator type="mask"
                              arg="#{msgs.creditCardNumberPrompt}"
                           server="true"
                           client="true"&gt;
-            &lt;s:validatorVar name="mask" value="[4-6].*"/&gt;
-        &lt;/s:commonsValidator&gt;
+            &lt;val:validatorVar name="mask" value="[4-6].*"/&gt;
+        &lt;/val:commonsValidator&gt;
 
-        &lt;s:commonsValidator type="creditCard" 
+        &lt;val:commonsValidator type="creditCard" 
                              arg="#{msgs.creditCardNumberPrompt}" 
                           server="true"/&gt;
     &lt;/h:inputText&gt; 
 
     &lt;h:message for="creditCardNumber" styleClass="errors"/&gt; 
 
-    &lt;s:validatorScript functionName="validateForm"/&gt;
+    &lt;val:validatorScript functionName="validateForm"/&gt;
 &lt;/h:form&gt;
 ...
 </source>
@@ -155,12 +155,12 @@
       
       <p>To replace one of the provided rules,
       place a modified copy of 
-      <a 
href="http://svn.apache.org/repos/asf/shale/framework/trunk/shale-core/src/main/resources/org/apache/shale/validator/validator-rules.xml";>validator-rules.xml</a>
+      <a 
href="http://svn.apache.org/repos/asf/shale/framework/branches/SHALE_1_0_X/shale-validator/src/main/resources/org/apache/shale/validator/validator-rules.xml";>validator-rules.xml</a>
       in your webapp, and refer to it instead of the default file.</p>
 
       <p>To add messages for your own validation rules, or to
       customize the 
-      <a 
href="http://svn.apache.org/repos/asf/shale/framework/trunk/shale-core/src/main/resources/org/apache/shale/validator/messages.properties";>provided
 messages,</a>
+      <a 
href="http://svn.apache.org/repos/asf/shale/framework/branches/SHALE_1_0_X/shale-validator/src/main/resources/org/apache/shale/validator/messages.properties";>provided
 messages,</a>
       configure a message bundle for your application in 
       /WEB-INF/faces-config.xml.</p>
       


Reply via email to