I have structure with 1 Selection List and 1 Multi-Selection List
<dynamic-element name="mySLMenu" type="list" index-type="keyword" repeatable="false">
<dynamic-element name="itemOne" type="0" index-type="" repeatable="false"></dynamic-element>
<dynamic-element name="itemTwo" type="1" index-type="" repeatable="false"></dynamic-element>
</dynamic-element>
<dynamic-element name="myMSMenu" type="multi-list" index-type="" repeatable="false">
<dynamic-element name="itemOne" type="0" index-type="" repeatable="false"></dynamic-element>
<dynamic-element name="itemTwo" type="1" index-type="" repeatable="false"></dynamic-element>
</dynamic-element>
I use the following in my velocity, for Selection List:
$mySLMenu.getData()
and for Multi-selection List:
#if($myMSMenu.getOptions().size() >0)
<select multiple>
#foreach($item in $myMSMenu.getOptions())
<option> $item </option>
#end
</select>
#end
But it only returns me the type of selected item, I want to get both the type(value) and text(name), please show me the way.