| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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:library xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" |
| xmlns:i18n="http://apache.org/cocoon/i18n/2.1"> |
| <fd:widgets> |
| <fd:import prefix="ext" uri="library_form1.xml"/> |
| |
| <fd:class id="class1" extends="ext:class1"> |
| <fd:widgets> |
| <fd:field id="field1-2"> |
| <fd:label>Field1-2:</fd:label> |
| <fd:datatype base="string"/> |
| </fd:field> |
| </fd:widgets> |
| </fd:class> |
| |
| <fd:expand id="ext:field2"/> |
| |
| <fd:class id="rec-class-1"> |
| <fd:widgets> |
| <fd:repeater id="fields-rec-1"> |
| <fd:widgets> |
| |
| <fd:field id="field-rec-1"> |
| <fd:label>Field (recursive) 1:</fd:label> |
| <fd:datatype base="string"/> |
| </fd:field> |
| |
| <fd:new id="rec-class-2"/> |
| |
| <!-- these actions will act on the "tasks" repeater in which this class is inlined --> |
| <fd:row-action id="add" command="add-after"> |
| <fd:label>+</fd:label> |
| </fd:row-action> |
| <fd:row-action id="up" command="move-up"> |
| <fd:label>^</fd:label> |
| </fd:row-action> |
| <fd:row-action id="down" command="move-down"> |
| <fd:label>v</fd:label> |
| </fd:row-action> |
| <fd:row-action id="delete" command="delete"> |
| <fd:label>X</fd:label> |
| </fd:row-action> |
| </fd:widgets> |
| </fd:repeater> |
| |
| <fd:repeater-action id="addfields-rec-1" command="add-row" repeater="fields-rec-1"> |
| <fd:label>Add row</fd:label> |
| </fd:repeater-action> |
| </fd:widgets> |
| </fd:class> |
| |
| <fd:class id="rec-class-2"> |
| <fd:widgets> |
| <fd:repeater id="fields-rec-2"> |
| <fd:widgets> |
| |
| <fd:field id="field-rec-2"> |
| <fd:label>Field (recursive) 2:</fd:label> |
| <fd:datatype base="string"/> |
| </fd:field> |
| |
| <fd:new id="rec-class-1"/> |
| |
| <!-- these actions will act on the "tasks" repeater in which this class is inlined --> |
| <fd:row-action id="add" command="add-after"> |
| <fd:label>+</fd:label> |
| </fd:row-action> |
| <fd:row-action id="up" command="move-up"> |
| <fd:label>^</fd:label> |
| </fd:row-action> |
| <fd:row-action id="down" command="move-down"> |
| <fd:label>v</fd:label> |
| </fd:row-action> |
| <fd:row-action id="delete" command="delete"> |
| <fd:label>X</fd:label> |
| </fd:row-action> |
| </fd:widgets> |
| </fd:repeater> |
| |
| <fd:repeater-action id="addfields-rec-2" command="add-row" repeater="fields-rec-2"> |
| <fd:label>Add row</fd:label> |
| </fd:repeater-action> |
| </fd:widgets> |
| </fd:class> |
| |
| </fd:widgets> |
| </fd:library> |