I try without space and with explicit set of the myListName, but still the same
problem.
Do you have a working example where you fill a drop-down list from java? If
yes, can you please output the structure of your ${myResultMap}
in a field like this:
<field name="debug1" title="Debug"><text default-value="${resultMap}"/></field>
and post the content here.
-----Ursprüngliche Nachricht-----
Von: Nicolas Malin [mailto:[email protected]]
Gesendet: Montag, 16. Februar 2015 23:09
An: [email protected]
Betreff: Re: AW: Fill drop-down list from java service
Le 16/02/2015 22:54, [email protected] a écrit :
> <list-options list-name=" myResultMap.myListName"
> key-name="myKeyName" description="myValue"/>
You have a space at the beginning of your value "
myResultMap.myListName" -> "myResultMap.myListName".
But if doesn't work try this :
<form name="myFormName" type="single">
<actions>
<service service-name="myJavaService"
result-map="myResultMap"/>
<set field="myListName" from="myResultMap.myListName"/>
</actions>
<field name="myfield" title="myFieldTitle"
<drop-down allow-empty="true"
current-description="myDescription">
<list-options list-name="myListName"
key-name="myKeyName" description="myValue"/>
</drop-down>
</field>
</form>