cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 321...@gmail.com
Subject Re: selection-list getting items from xml-file
Date Sat, 22 Jul 2006 08:49:16 GMT
Hi Frank,
I don't have a real solution to your problem, but you can have a look at the
AJAX carselector sample in samples/blocks/forms. That one gets its selection
list from a xml file as well. Maybe that helps you....
Marco


2006/7/22, Frank MW <muewi@gmx.de>:
>
> Hi all,
> I'm trying to get the values for a selection-list from an xml - file, but
> there is not much documentation around and I haven't found a fitting hint
> yet. That's what I tried rather intuitively:
>
> <fd:field id="test" required="false">
>       <fd:datatype base="string"></fd:datatype>
>       <fd:label>Clause - Test</fd:label>
>       <fd:selection-list src="forms/auswahl.xml" value-path="option"
> list-path="auswahl" dynamic="true"></fd:selection-list>
>     </fd:field>
>
> with auswahl.xml:
>
> <auswahl>
>     <option>nested clause</option>
>     <option>if-clause</option>
>     <option>adverbial clause</option>
> </auswahl>
>
>
> How do I have to do that? Or if there is documentation on it, could you
> provide me with the link, since I couldn't find it. What I need is not in
> here:
> http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html
>
> since it just says:
>
> <fd:datatype base="string"/>
> <fd:selection-list src="cocoon:/mychoices.xml" dynamic="true"/>
>
> But how do I specify the path in the xml-file?
>
>
> Regards,
> Frank
>

Mime
View raw message