vgritsenko    2004/04/14 07:27:46

  Modified:    src/blocks/forms/samples/forms/binding 01value-bind.xml
                        01value-data.xml 01value-def.xml 02lenient-bind.xml
                        02lenient-data.xml 02lenient-def.xml
                        03aggregate-bind.xml 03aggregate-data.xml
                        03aggregate-def.xml 03aggregate-template.xml
                        05custom-bind.xml 05custom-data.xml
                        05custom-def.xml done.jx
  Added:       src/blocks/forms/samples/forms/binding 04heavy-bind.xml
                        04heavy-data.xml 04heavy-def.xml
                        04heavy-template.xml
  Log:
  Add heavy form with lots of widgets for testing
  
  Revision  Changes    Path
  1.3       +4 -4      
cocoon-2.1/src/blocks/forms/samples/forms/binding/01value-bind.xml
  
  Index: 01value-bind.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/01value-bind.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- 01value-bind.xml  11 Mar 2004 02:56:33 -0000      1.2
  +++ 01value-bind.xml  14 Apr 2004 14:27:45 -0000      1.3
  @@ -14,10 +14,10 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  -<fb:context 
  -  xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
  -  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
  -     path="/" >
  +
  +<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
  +            xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
  +         path="/" >
   
   <!-- 
      | This file shows the different possibilities for (single) Value Binding 
  
  
  
  1.2       +1 -0      
cocoon-2.1/src/blocks/forms/samples/forms/binding/01value-data.xml
  
  Index: 01value-data.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/01value-data.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 01value-data.xml  9 Mar 2004 10:34:03 -0000       1.1
  +++ 01value-data.xml  14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,6 +14,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  +
   <root>
     <simple test="nothing">Simple</simple>
     <readOnly>Read-Only</readOnly>
  
  
  
  1.3       +2 -2      
cocoon-2.1/src/blocks/forms/samples/forms/binding/01value-def.xml
  
  Index: 01value-def.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/01value-def.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- 01value-def.xml   5 Apr 2004 12:25:36 -0000       1.2
  +++ 01value-def.xml   14 Apr 2004 14:27:45 -0000      1.3
  @@ -14,8 +14,8 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  -<fd:form
  -  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
  +
  +<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
   
     <fd:widgets>
     
  
  
  
  1.2       +5 -5      
cocoon-2.1/src/blocks/forms/samples/forms/binding/02lenient-bind.xml
  
  Index: 02lenient-bind.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/02lenient-bind.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 02lenient-bind.xml        9 Mar 2004 10:34:03 -0000       1.1
  +++ 02lenient-bind.xml        14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,11 +14,11 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  -<fb:context 
  -  xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
  -  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
  -     path="/" 
  -     direction="load" >
  +
  +<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
  +            xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
  +         path="/" 
  +         direction="load" >
   
   <!-- 
      | This file shows the inheritance behaviour of the @lenient setting 
  
  
  
  1.2       +1 -0      
cocoon-2.1/src/blocks/forms/samples/forms/binding/02lenient-data.xml
  
  Index: 02lenient-data.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/02lenient-data.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 02lenient-data.xml        9 Mar 2004 10:34:03 -0000       1.1
  +++ 02lenient-data.xml        14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,6 +14,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  +
   <root>
     <!-- to see the runtime effect of non-lenient binding
          comment out one of the 'breakingField' nodes below -->
  
  
  
  1.3       +2 -2      
cocoon-2.1/src/blocks/forms/samples/forms/binding/02lenient-def.xml
  
  Index: 02lenient-def.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/02lenient-def.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- 02lenient-def.xml 5 Apr 2004 12:25:36 -0000       1.2
  +++ 02lenient-def.xml 14 Apr 2004 14:27:45 -0000      1.3
  @@ -14,8 +14,8 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  -<fd:form
  -  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
  +
  +<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
   
     <fd:widgets>
     
  
  
  
  1.2       +4 -4      
cocoon-2.1/src/blocks/forms/samples/forms/binding/03aggregate-bind.xml
  
  Index: 03aggregate-bind.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/03aggregate-bind.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 03aggregate-bind.xml      9 Apr 2004 11:03:27 -0000       1.1
  +++ 03aggregate-bind.xml      14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,10 +14,10 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  -<fb:context 
  -  xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
  -  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
  -     path="/" >
  +
  +<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
  +            xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
  +         path="/" >
   
     <fb:context path="match-combined">
       <fb:aggregate id="date-combined" path="split">
  
  
  
  1.2       +1 -0      
cocoon-2.1/src/blocks/forms/samples/forms/binding/03aggregate-data.xml
  
  Index: 03aggregate-data.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/03aggregate-data.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 03aggregate-data.xml      9 Apr 2004 11:03:27 -0000       1.1
  +++ 03aggregate-data.xml      14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,6 +14,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  +
   <root>     
     <match-combined>
       <combined/>
  
  
  
  1.2       +2 -2      
cocoon-2.1/src/blocks/forms/samples/forms/binding/03aggregate-def.xml
  
  Index: 03aggregate-def.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/03aggregate-def.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 03aggregate-def.xml       9 Apr 2004 11:03:27 -0000       1.1
  +++ 03aggregate-def.xml       14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,8 +14,8 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  -<fd:form
  -  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
  +
  +<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
   
     <fd:widgets>
     
  
  
  
  1.2       +2 -2      
cocoon-2.1/src/blocks/forms/samples/forms/binding/03aggregate-template.xml
  
  Index: 03aggregate-template.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/03aggregate-template.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 03aggregate-template.xml  9 Apr 2004 11:03:27 -0000       1.1
  +++ 03aggregate-template.xml  14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,13 +14,13 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  +
   <!--+
       | CForms aggregate sample binding. Represent values of two aggregate
       | fields as single input fields.
       |
       | CVS $Id$
       +-->
  -
   <page xmlns:ft="http://apache.org/cocoon/forms/1.0#template"; 
         xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"; 
         xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";>
  
  
  
  1.2       +7 -7      
cocoon-2.1/src/blocks/forms/samples/forms/binding/05custom-bind.xml
  
  Index: 05custom-bind.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/05custom-bind.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 05custom-bind.xml 6 Apr 2004 08:52:52 -0000       1.1
  +++ 05custom-bind.xml 14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,14 +14,14 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  -<fb:context 
  -  xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
  -  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
  -     path="/" >
   
  -<!-- 
  -   | This file shows a sample of using the javascript binding. 
  -   -->
  +<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
  +            xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
  +         path="/" >
  +
  +  <!--+ 
  +      | This file shows a sample of using the javascript binding. 
  +      +-->
     <fb:javascript id="jswrap" path="jswrap-value" >
       <fb:save-form>
         var formValue = widget.getValue();
  
  
  
  1.2       +1 -0      
cocoon-2.1/src/blocks/forms/samples/forms/binding/05custom-data.xml
  
  Index: 05custom-data.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/05custom-data.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 05custom-data.xml 6 Apr 2004 08:52:52 -0000       1.1
  +++ 05custom-data.xml 14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,6 +14,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  +
   <root>     
     <jswrap-value>--something--</jswrap-value>
     <custom-value>**something more**</custom-value>
  
  
  
  1.2       +2 -2      
cocoon-2.1/src/blocks/forms/samples/forms/binding/05custom-def.xml
  
  Index: 05custom-def.xml
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/05custom-def.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 05custom-def.xml  6 Apr 2004 08:52:52 -0000       1.1
  +++ 05custom-def.xml  14 Apr 2004 14:27:45 -0000      1.2
  @@ -14,8 +14,8 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  -<fd:form
  -  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
  +
  +<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
   
     <fd:widgets>
     
  
  
  
  1.3       +1 -0      cocoon-2.1/src/blocks/forms/samples/forms/binding/done.jx
  
  Index: done.jx
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/binding/done.jx,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- done.jx   9 Apr 2004 11:02:39 -0000       1.2
  +++ done.jx   14 Apr 2004 14:27:45 -0000      1.3
  @@ -14,6 +14,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
  +
   <page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";>
   
     <jx:macro name="dumpBean">
  
  
  
  1.1                  
cocoon-2.1/src/blocks/forms/samples/forms/binding/04heavy-bind.xml
  
  Index: 04heavy-bind.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
    Copyright 1999-2004 The Apache Software Foundation
  
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
        http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  
  <fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; 
              xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; 
            path="/" >
  
    <fb:repeater id="outer"
                 parent-path="/"
                 row-path="data">
      <fb:identity>
        <fb:value id="id" path="@id">
          <fd:convertor datatype="integer"/>
        </fb:value>
      </fb:identity>
      <fb:on-bind>
  
        <fb:repeater id="inner"
                     parent-path="/"
                     row-path="data">
          <fb:identity>
            <fb:value id="id" path="@id">
              <fd:convertor datatype="integer"/>
            </fb:value>
          </fb:identity>
  
          <fb:on-bind>
          </fb:on-bind>
        </fb:repeater>
  
      </fb:on-bind>
    </fb:repeater>
  
  </fb:context>
  
  
  
  1.1                  
cocoon-2.1/src/blocks/forms/samples/forms/binding/04heavy-data.xml
  
  Index: 04heavy-data.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
    Copyright 1999-2004 The Apache Software Foundation
  
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
        http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  
  <root>     
    <data id="1"/>
    <data id="2"/>
    <data id="3"/>
    <data id="4"/>
    <data id="5"/>
    <data id="6"/>
    <data id="7"/>
    <data id="8"/>
    <data id="9"/>
    <data id="10"/>
    <data id="11"/>
    <data id="12"/>
    <data id="13"/>
    <data id="14"/>
    <data id="15"/>
  <!--
    <data id="16"/>
    <data id="17"/>
    <data id="18"/>
    <data id="19"/>
    <data id="20"/>
    <data id="21"/>
    <data id="22"/>
    <data id="23"/>
    <data id="24"/>
    <data id="25"/>
    <data id="26"/>
    <data id="27"/>
    <data id="28"/>
    <data id="29"/>
    <data id="30"/>
  -->
  </root>
  
  
  
  1.1                  
cocoon-2.1/src/blocks/forms/samples/forms/binding/04heavy-def.xml
  
  Index: 04heavy-def.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!--
    Copyright 1999-2004 The Apache Software Foundation
  
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
        http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  
  <fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";>
  
    <fd:widgets>
      <fd:repeater id="outer">
        <fd:widgets>
          <fd:output id="id">
            <fd:datatype base="integer"/>
          </fd:output>
  
          <fd:repeater id="inner">
            <fd:widgets>
              <fd:output id="id">
                <fd:datatype base="integer"/>
              </fd:output>
  
              <fd:field id="select">
                <fd:label>List</fd:label>
                <fd:datatype base="integer"/>
                <fd:selection-list>
                  <fd:item value="">
                    <fd:label>Month</fd:label>
                  </fd:item>
                  <fd:item value="1">
                    <fd:label>Jan</fd:label>
                  </fd:item>
                  <fd:item value="2">
                    <fd:label>Feb</fd:label>
                  </fd:item>
                  <fd:item value="3">
                    <fd:label>Mar</fd:label>
                  </fd:item>
                  <fd:item value="4">
                    <fd:label>Apr</fd:label>
                  </fd:item>
                  <fd:item value="5">
                    <fd:label>May</fd:label>
                  </fd:item>
                  <fd:item value="6">
                    <fd:label>Jun</fd:label>
                  </fd:item>
                  <fd:item value="7">
                    <fd:label>Jul</fd:label>
                  </fd:item>
                  <fd:item value="8">
                    <fd:label>Aug</fd:label>
                  </fd:item>
                  <fd:item value="9">
                    <fd:label>Sep</fd:label>
                  </fd:item>
                  <fd:item value="10">
                    <fd:label>Oct</fd:label>
                  </fd:item>
                  <fd:item value="11">
                    <fd:label>Nov</fd:label>
                  </fd:item>
                  <fd:item value="12">
                    <fd:label>Dec</fd:label>
                  </fd:item>
                </fd:selection-list>
              </fd:field>
  
            </fd:widgets>
          </fd:repeater>
  
        </fd:widgets>
      </fd:repeater>
  
    </fd:widgets>
  
  </fd:form>
  
  
  
  1.1                  
cocoon-2.1/src/blocks/forms/samples/forms/binding/04heavy-template.xml
  
  Index: 04heavy-template.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
    Copyright 1999-2004 The Apache Software Foundation
  
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
        http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  
  <page xmlns:ft="http://apache.org/cocoon/forms/1.0#template"; 
        xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"; 
        xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";>
    <title>Heavy Form</title>
    <content>
      <h3>Lots of select boxes</h3>
  
      <ft:form-template>
        <div>
          <ft:repeater-widget id="outer">
          <fi:group>
            <fi:styling type="fieldset" style="border: 2px solid gray; float: 
left;" layout="columns" />
            <fi:label>Group <ft:widget id="id"/></fi:label>
            <fi:items>
                <ft:repeater-widget id="inner">
                  <ft:widget id="select"/>
                </ft:repeater-widget>
            </fi:items>
          </fi:group>
          </ft:repeater-widget>
        </div>
  
        <p style="float: left; clear: both;">
          <input type="submit" value="Submit"/>
        </p>
      </ft:form-template>
    </content>
  </page>
  
  
  

Reply via email to