You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2005/09/04 16:46:51 UTC
svn commit: r278596 -
/cocoon/gsoc/mpfingsthorn/forms/samples/library/libraries/library_form1.xml
Author: reinhard
Date: Sun Sep 4 07:46:43 2005
New Revision: 278596
URL: http://svn.apache.org/viewcvs?rev=278596&view=rev
Log:
forgot to checkin widget library
Modified:
cocoon/gsoc/mpfingsthorn/forms/samples/library/libraries/library_form1.xml
Modified: cocoon/gsoc/mpfingsthorn/forms/samples/library/libraries/library_form1.xml
URL: http://svn.apache.org/viewcvs/cocoon/gsoc/mpfingsthorn/forms/samples/library/libraries/library_form1.xml?rev=278596&r1=278595&r2=278596&view=diff
==============================================================================
--- cocoon/gsoc/mpfingsthorn/forms/samples/library/libraries/library_form1.xml (original)
+++ cocoon/gsoc/mpfingsthorn/forms/samples/library/libraries/library_form1.xml Sun Sep 4 07:46:43 2005
@@ -18,19 +18,71 @@
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
<fd:widgets>
+
+ <!-- macro -->
<fd:class id="class1">
<fd:widgets>
<fd:field id="field1">
<fd:label>Field1:</fd:label>
- <fd:datatype base="string"/>
+ <fd:datatype base="string"/>
</fd:field>
</fd:widgets>
</fd:class>
+ <!-- simple field -->
<fd:field id="field2">
<fd:label>Field2:</fd:label>
- <fd:datatype base="string"/>
+ <fd:datatype base="string"/>
+ <fd:help>
+ This is help text set by the library.
+ <small>Anyway, the point of all this was to show a popup help with mixed html content.</small>
+ </fd:help>
</fd:field>
+
+ <!-- field - validator inheritance -->
+ <fd:field id="email">
+ <fd:datatype base="string"/>
+ <!--
+ <fd:validation>
+ <fd:email/>
+ </fd:validation>
+ -->
+ <fd:label>Enter an <b>email</b> address:</fd:label>
+ <fd:help>
+ global email adress
+ </fd:help>
+ </fd:field>
+
+ <!-- field - selection list inheritance -->
+ <fd:field id="account">
+ <fd:label>Indicate the size of your bank account (in m<sup>3</sup>):</fd:label>
+ <fd:datatype base="long"/>
+ <fd:selection-list>
+ <fd:item value="1"/>
+ <fd:item value="2"/>
+ <fd:item value="3">
+ <fd:label>three</fd:label>
+ </fd:item>
+ <fd:item value="4"/>
+ <fd:item value="5"/>
+ </fd:selection-list>
+ </fd:field>
+
+ <!-- multi value field -->
+ <fd:multivaluefield id="drinks">
+ <fd:label>Indicate which 2 of the following drinks you'd like to receive:</fd:label>
+ <fd:datatype base="string"/>
+ <!--fd:validation>
+ <fd:value-count exact="2"/>
+ </fd:validation-->
+ <fd:selection-list>
+ <fd:item value="Maes"/>
+ <fd:item value="Jupiler"/>
+ <fd:item value="Leffe"/>
+ <fd:item value="Hoegaarden"/>
+ <fd:item value="Coca Cola"/>
+ </fd:selection-list>
+ </fd:multivaluefield>
</fd:widgets>
</fd:library>