PDA

View Full Version : Multiple Select in Spring 2.0


jmuman1
Jun 6th, 2006, 12:32 PM
Hello,
I have been trying to use the new spring-form tags. I have not had any real problems with them except the select tag. It seems that there is a multiple attribute to allow the select box to be a multi-select but that attribute is not being passed through to the html. Does anyone know if this is going to be fixed before RC1? It would be a shame to have to use the old way for only that form field. I have tried it with M4 and M5 and neither worked for me. :(

Thanks

VinceB
Oct 16th, 2006, 11:36 PM
I have:
<tcom:label styleClass="desc" key="solution.region"/>
<form:select path="region" multiple="true" size="3">
<form:options items="${regionmap}" />
</form:select>
<form:errors path="region" cssClass="fieldError" />

Which renders the list of options (in this case regions) correctly, and stores them in the DB as "," delimited.

However, On Edit, it does not display the options as being SELECTED.