Page: http://wiki.cocoondev.org/Wiki.jsp?page=DeleteMe , version: 4 on Mon Jul 
28 16:59:24 2003 by 24.199.218.146

+ * [Alexander]


Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyReference , version: 5 on 
Mon Jul 28 16:29:49 2003 by BrunoDumon

-     <wd:selection-list>
-       <wd:item value="...">
-         <wd:label>...</wd:label>
-       </wd:item>
-       [...]
? --

+     [...]
-     </wd:selection-list>
+   <wd:selection-list>
+     <wd:item value="...">
+       <wd:label>...</wd:label>
+     </wd:item>
+     [...]
+   </wd:selection-list>
- A datatype can also have a selection list. The selection list can be defined 
inline or read from an external source. Example of inline declaration:
? ^

+ Widgets that have a datatype can also have a selection list. Since selection 
lists are associated with datatypes, we discuss them here. The selection list 
can be defined inline or read from an external source. Example of inline 
declaration:
? ^^^^^^^^^^^^^^^^^^^                                        
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

- <wd:datatype base="long">
+ <wd:datatype base="long"/>
?                         +

-   <wd:selection-list>
? --

+ <wd:selection-list>
-     <wd:item value="1"/>
? --

+   <wd:item value="1"/>
-     <wd:item value="2"/>
? --

+   <wd:item value="2"/>
-     <wd:item value="3">
? --

+   <wd:item value="3">
-       <wd:label>three</wd:label>
? --

+     <wd:label>three</wd:label>
-     </wd:item>
? --

+   </wd:item>
-     <wd:item value="4"/>
? --

+   <wd:item value="4"/>
-     <wd:item value="5"/>
? --

+   <wd:item value="5"/>
-   </wd:selection-list>
? --

+ </wd:selection-list>
- </wd:datatype>
- <wd:datatype base="string">
+ <wd:datatype base="string"/>
?                           +

-   <wd:selection-list src="cocoon:/mychoices.xml"/>
? --

+ <wd:selection-list src="cocoon:/mychoices.xml"/>
- </wd:datatype>
- <wd:datatype base="string">
+ <wd:datatype base="string"/>
?                           +

-   <wd:selection-list src="cocoon:/mychoices.xml" dynamic="true"/>
? --

+ <wd:selection-list src="cocoon:/mychoices.xml" dynamic="true"/>
- </wd:datatype>
- <wd:datatype base="date">
+ <wd:datatype base="date"/>
?                         +

-   <wd:selection-list>
? --

+ <wd:selection-list>
-     <wd:convertor type="formatting">
? --

+   <wd:convertor type="formatting">
-       <wd:patterns>
? --

+     <wd:patterns>
-         <wd:pattern>yyyyMMdd</wd:pattern>
? --

+       <wd:pattern>yyyyMMdd</wd:pattern>
-       </wd:patterns>
? --

+     </wd:patterns>
-     </wd:convertor>
? --

+   </wd:convertor>
-     <wd:item value="13020711"/>
? --

+   <wd:item value="13020711"/>
-     <wd:item value="19120623"/>
? --

+   <wd:item value="19120623"/>
-     <wd:item value="19690721"/>
? --

+   <wd:item value="19690721"/>
-     <wd:item value="19700506"/>
? --

+   <wd:item value="19700506"/>
-     <wd:item value="19781014"/>
? --

+   <wd:item value="19781014"/>
-     <wd:item value="20010911"/>
? --

+   <wd:item value="20010911"/>
-   </wd:selection-list>
? --

+ </wd:selection-list>
- </wd:datatype>
- Can be used in combination with these datatypes: long.
+ Can be used in combination with these datatypes: long, decimal.
?                                                      +++++++++



Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodySample , version: 5 on Mon 
Jul 28 16:25:32 2003 by BrunoDumon

- A datatype can furthermore be associated with a selection list. This makes 
that the field widget could be rendered either as a textbox or a list, 
depending on whether its datatype has a selection list. For an example of 
selection lists, see the "Form1" example provided with Woody.
?    ^ -----

+ A field widget can furthermore be associated with a selection list. This 
makes that the field widget could be rendered either as a textbox or a list, 
depending on whether its datatype has a selection list. For an example of 
selection lists, see the "Form1" example provided with Woody. The 
selection-list is related with the datatype: the values in the selection-list 
should be of the same type as the datatype.
?   ++++ ^^^^^^                                                                 
                                                                                
                                                                                
                                               
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Reply via email to