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/woody/samples/forms form1.xml form1_template.xml form1_template.xsp
Date Tue, 15 Jul 2003 14:14:07 GMT
bruno       2003/07/15 07:14:07

  Modified:    src/blocks/woody/samples/forms form1.xml form1_template.xml
                        form1_template.xsp
  Log:
  Extended samples with date fields.
  
  Revision  Changes    Path
  1.6       +38 -0     cocoon-2.1/src/blocks/woody/samples/forms/form1.xml
  
  Index: form1.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/forms/form1.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- form1.xml	9 Jul 2003 12:17:21 -0000	1.5
  +++ form1.xml	15 Jul 2003 14:14:07 -0000	1.6
  @@ -132,6 +132,44 @@
       </wd:datatype>
     </wd:field>
   
  +  <wd:field id="birthdate" required="true">
  +    <wd:label>Your birthdate (dd/MM/yyyy):</wd:label>
  +    <wd:datatype base="date">
  +      <wd:convertor>
  +        <wd:patterns>
  +          <wd:pattern>dd/MM/yyyy</wd:pattern>
  +          <!-- The above pattern is a non-locale-specific pattern. You can
  +          also add locale-specific patterns by adding more wd:pattern elements
  +          here, with a locale attribute on them. -->
  +        </wd:patterns>
  +      </wd:convertor>
  +    </wd:datatype>
  +  </wd:field>
  +
  +  <wd:field id="altbirthdate" required="true">
  +    <wd:label>Select a date on which you'd rather had been born:</wd:label>
  +    <wd:datatype base="date">
  +      <!-- We don't specify a convertor here, defaults will be used. -->
  +
  +      <wd:selection-list>
  +        <!-- The convertor element here is used to specify how the values
  +             in the value attributes of the wd:item elements should be
  +             interpreted. -->
  +        <wd:convertor type="formatting">
  +          <wd:patterns>
  +            <wd:pattern>yyyyMMdd</wd:pattern>
  +          </wd:patterns>
  +        </wd:convertor>
  +        <wd:item value="13020711"/>
  +        <wd:item value="19120623"/>
  +        <wd:item value="19690721"/>
  +        <wd:item value="19700506"/>
  +        <wd:item value="19781014"/>
  +        <wd:item value="20010911"/>
  +      </wd:selection-list>
  +    </wd:datatype>
  +  </wd:field>
  +
     <wd:repeater id="contacts">
       <wd:field id="firstname">
         <wd:label>Firstname</wd:label>
  
  
  
  1.7       +8 -0      cocoon-2.1/src/blocks/woody/samples/forms/form1_template.xml
  
  Index: form1_template.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/forms/form1_template.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- form1_template.xml	9 Jul 2003 12:17:21 -0000	1.6
  +++ form1_template.xml	15 Jul 2003 14:14:07 -0000	1.7
  @@ -55,6 +55,14 @@
             <td valign="top"><wt:widget-label id="ipaddress"/></td>
             <td valign="top"><wt:widget id="ipaddress"/></td>
           </tr>
  +        <tr>
  +          <td valign="top"><wt:widget-label id="birthdate"/></td>
  +          <td valign="top"><wt:widget id="birthdate"/></td>
  +        </tr>
  +        <tr>
  +          <td valign="top"><wt:widget-label id="altbirthdate"/></td>
  +          <td valign="top"><wt:widget id="altbirthdate"/></td>
  +        </tr>
         </table>
   
         <wt:widget-label id="contacts"/><br/>
  
  
  
  1.3       +8 -0      cocoon-2.1/src/blocks/woody/samples/forms/form1_template.xsp
  
  Index: form1_template.xsp
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/forms/form1_template.xsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- form1_template.xsp	9 Jul 2003 12:17:21 -0000	1.2
  +++ form1_template.xsp	15 Jul 2003 14:14:07 -0000	1.3
  @@ -60,6 +60,14 @@
             <td valign="top"><wt:widget-label id="ipaddress"/></td>
             <td valign="top"><wt:widget id="ipaddress"/></td>
           </tr>
  +        <tr>
  +          <td valign="top"><wt:widget-label id="birthdate"/></td>
  +          <td valign="top"><wt:widget id="birthdate"/></td>
  +        </tr>
  +        <tr>
  +          <td valign="top"><wt:widget-label id="altbirthdate"/></td>
  +          <td valign="top"><wt:widget id="altbirthdate"/></td>
  +        </tr>
         </table>
   
         <wt:widget-label id="contacts"/><br/>
  
  
  

Mime
View raw message