Not if it will be useful to you but when I generate dynamic forms I do
the following thing:

The form definition:
<form-bean name="myForm" type="test.MyForm">
   <form-property name="paramValue" type="java.lang.String[]"/>
   ...
</form-bean>

And then

The select:
     <html:select property="paramValue" multiple="true">
         <html:options collection="entryes" property="key"
labelProperty="value"/>
     </html:select>

If option is selected String[] contains the Value else contains null.
The String[] size is the select options size.

I hope to have helped for you!! 


On Thu, 4 Nov 2004 20:22:45 +0200, Radu Badita <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm using a map-backed property to get the data from a run-time
> generated form. If one of the controls in the form is a multi-select,
> I only get the first selected option.
> 
> The form definition:
> <form-bean name="myForm" type="test.MyForm">
>     <form-property name="paramValue" type="java.util.Map"/>
>     ...
> </form-bean>
> 
> Setter method:
> public void setParamValue(String paramId, Object value)
> 
> The select:
>       <html:select property="paramValue(<%=paramName%>)" multiple="true">
>           <html:options collection="entryes" property="key"
> labelProperty="value"/>
>       </html:select>
> 
> The setter is called only once having a String for value, even if  I
> select multiple options.
> Can anyone please give me a hint?
> 
> Thanks
> --
> Radu
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to