cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/forms/samples/forms form1.xml
Date Sat, 17 Apr 2004 17:51:45 GMT
bruno       2004/04/17 10:51:45

  Modified:    src/blocks/forms/samples/forms form1.xml
  Log:
  * fixed indentation of some fd:validation elements
  * fixed typo: "A validator cannot itself..." -> "A repeater cannot itself..."
  
  Revision  Changes    Path
  1.4       +10 -10    cocoon-2.1/src/blocks/forms/samples/forms/form1.xml
  
  Index: form1.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/form1.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- form1.xml	5 Apr 2004 12:25:29 -0000	1.3
  +++ form1.xml	17 Apr 2004 17:51:45 -0000	1.4
  @@ -30,9 +30,9 @@
       <fd:field id="email" required="true">
         <fd:datatype base="string"/>
         <!-- new-style validation, outside of the datatype -->
  -	  <fd:validation>
  -	    <fd:email/>
  -	  </fd:validation>
  +      <fd:validation>
  +        <fd:email/>
  +      </fd:validation>
         <fd:label>Enter an <b>email</b> address:</fd:label>
         <fd:help>
           An email address must be in <i>[name]@[domain].[tld]</i> format.
  @@ -112,11 +112,11 @@
       <fd:field id="number2" required="true">
         <fd:label>Enter another number, larger than the other number:</fd:label>
         <fd:datatype base="long"/>
  -	  <fd:validation>
  -	    <fd:range min="number1 + 1">
  -		  <fd:failmessage>This number should be larger than the first number.</fd:failmessage>
  -	    </fd:range>
  -	  </fd:validation>
  +      <fd:validation>
  +        <fd:range min="number1 + 1">
  +          <fd:failmessage>This number should be larger than the first number.</fd:failmessage>
  +        </fd:range>
  +      </fd:validation>
       </fd:field>
     
       <fd:multivaluefield id="drinks">
  @@ -236,7 +236,7 @@
       <fd:repeater id="contacts">
         <fd:validation>
         	<!-- This demonstrates validating a repeater: we check here if all contacts are
distinct.
  -      		 A validator cannot itself display a validation error, and therefore sets a validation
  +      		 A repeater cannot itself display a validation error, and therefore sets a validation
         		 error on a field in the offenting row. -->
           <fd:javascript>
             var list = new java.util.ArrayList();
  
  
  

Mime
View raw message