cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: cocoon-2.1/src/blocks/woody/samples/forms form2_template.xsp
Date Wed, 23 Jul 2003 15:18:48 GMT
bruno       2003/07/23 08:18:48

  Modified:    src/blocks/woody/samples/forms form2_template.xsp
  Added some info, removed some unused fields.
  Revision  Changes    Path
  1.2       +21 -16    cocoon-2.1/src/blocks/woody/samples/forms/form2_template.xsp
  Index: form2_template.xsp
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/forms/form2_template.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- form2_template.xsp	22 Jul 2003 11:50:45 -0000	1.1
  +++ form2_template.xsp	23 Jul 2003 15:18:47 -0000	1.2
  @@ -5,6 +5,27 @@
   <page xmlns:wt="">
     <title>Sample form</title>
  +    <p>This form is used to illustrate the Woody binding framework. The binding
  +      is based on JXPath and hence works both with XML documents and beans.
  +      Some warnings and limitations of the current implementation:</p>
  +    <ul>
  +      <li>In the repeater (the list of contacts), you should not modify the id
  +        column. For newly added rows leave the id blank, for existing rows do
  +        not modify it. In the future this will become a hidden and read-only
  +        widget. Other repeater-binding strategies that do not depend on an id
  +        field could of course be created.</li>
  +      <li>the email address is marked in the binding as "read-only", meaning it
  +        will only be bound from bean/xml to form, but not in the other
  +        direction. So you won't see it changed in the bean or the XML.</li>
  +      <li>the binding supports currently only string properties (will change
  +        soon). It also doesn't support all widget types yet (e.g. the
  +        multivaluefield is currently not yet supported).</li>
  +    </ul>
  +    <p>If you're running the XML-binding demo, then after successful submit
  +      you'll see the updated XML.</p>
  +    <p>If you're running the bean-binding demo, then after successful submit
  +      you'll be shown a page that uses the JXTemplateGenerator to extract
  +      data from the bean.</p>
       <form method="POST">
         <xsp:attribute name="action"><xsp:expr><jpath:continuation/>+".continue"</xsp:expr></xsp:attribute>
         <table border="1">
  @@ -13,24 +34,8 @@
             <td valign="top"><wt:widget id="email"/></td>
  -          <td valign="top"><wt:widget-label id="number1"/></td>
  -          <td valign="top"><wt:widget id="number1"/></td>
  -        </tr>
  -        <tr>
  -          <td valign="top"><wt:widget-label id="account"/></td>
  -          <td valign="top"><wt:widget id="account"/></td>
  -        </tr>
  -        <tr>
             <td valign="top"><wt:widget-label id="phone"/></td>
             <td valign="top"><wt:widget id="phone" /></td>
  -        </tr>
  -        <tr>
  -          <td/>
  -          <td><wt:widget id="somebool"/> <wt:widget-label id="somebool"/></td>
  -        </tr>
  -        <tr>
  -          <td valign="top"><wt:widget-label id="drinks"/></td>
  -          <td valign="top"><wt:widget id="drinks"/></td>
             <td valign="top"><wt:widget-label id="ipaddress"/></td>

View raw message