i have a document in readmode and i need a multi select field in it (editable). So i create a something like this
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<select multiple="multiple" name="myField" id="myField" size="3">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<xp:button value="Test" id="button1">
<xp:eventHandler event="onclick" submit="true"
refreshMode="complete">
<xp:this.action><![CDATA[#{javascript:print(param.get("myField"));}]]></xp:this.action>
</xp:eventHandler>
</xp:button>
</xp:view>
When i press the button i got only a value back when i select just one entry, if i select more than one, i got just null back. Is there a trick to got also multiple values from a native html field?