|
following is extracted from a form defnition
file:
1. why should each item be wrapped
by <wd:label> in " <wd:item
value="action"><wd:label>Action</wd:label></wd:item>
"?
2. does "xxxx"
in ' value="xxxx" ' refer to "@id"
in <wd:struct>?
3. what does ' case="type" '
mean?
<wd:class
id="widget-row-class">
<wd:widgets> <wd:booleanfield id="select"><wd:label>Select</wd:label></wd:booleanfield> <wd:field id="type"> <wd:label>Widget Type</wd:label> <wd:datatype base="string"/> <wd:selection-list> <wd:item value=""><wd:label>Nothing</wd:label></wd:item> <wd:item value="action"><wd:label>Action</wd:label></wd:item> <wd:item value="aggregatefield"><wd:label>AggregateField</wd:label></wd:item> <wd:item value="booleanfield"><wd:label>BooleanField</wd:label></wd:item> <wd:item value="class"><wd:label>Class</wd:label></wd:item> <wd:item value="field"><wd:label>Field</wd:label></wd:item> <wd:item value="new"><wd:label>New</wd:label></wd:item> <wd:item value="output"><wd:label>Output</wd:label></wd:item> <wd:item value="repeater"><wd:label>Repeater</wd:label></wd:item> <wd:item value="row-action"><wd:label>RowAction</wd:label></wd:item> <wd:item value="struct"><wd:label>Struct</wd:label></wd:item> <wd:item value="submit"><wd:label>Submit</wd:label></wd:item> <wd:item value="union"><wd:label>Union</wd:label></wd:item> </wd:selection-list> </wd:field> <wd:union id="union" default="" case="type"> <wd:datatype base="string"/> <wd:label>Type</wd:label> <wd:widgets>
<wd:struct
id="action">
<wd:label>Action</wd:label> <wd:widgets> <wd:new id="id-class"/> <wd:new id="label-class"/> </wd:widgets> </wd:struct> |
