http://wiki.cocoondev.org/Wiki.jsp?page=WoodyDatatypeReference
<wd:selection-list src="cocoon:/mychoices.xml" dynamic="true"/>
Joerg
On 08.03.2004 20:55, JD Daniels wrote:
I am sure this can be done.. I am lost in the wiki :)
Could someone point me to the right miki page or tell me which woody keywords i should be looking under?
Say I have a select widget which is rendered :
<select name="itemId"> <option value="1">First type of thing</option> <option value="2">Second type of thing</option> <option value="3">Third type of thing</option> </select>
Now in my form template, I want assign an repeater add action to this select.
so i have in my form definition:
<wd:repeater id="typesofthings"> <wd:widgets>
<wd:field id="label" required="true"> <wd:label>Label:</wd:label> <wd:datatype base="string"/> </wd:field>
<wd:field id="parameter" required="true"> <wd:label>Parameter:</wd:label> <wd:datatype base="string"/> </wd:field>
<wd:field id="id" required="true"> <wd:label>ID:</wd:label> <wd:datatype base="string"/> </wd:field>
</wd:widgets>
</wd:repeater>
and I have a file:
<typesofthings> <type> <id>1</id> <label>First type of thing</label> <parameter>T</parameter> </type> <type> <id>2</id> <label>Second type of thing</label> <parameter>K</parameter> </type> <type> <id>3</id> <label>Third type of thing</label> <parameter>F</parameter> </type> <typesofthings>
So when the select list is changed, it will add a repeater that is bound and filled in with the values from the file.
Am I even making sense?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
