You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Morten <li...@kikobu.com> on 2004/01/21 12:59:58 UTC

html:select multiple="true" question

Hi.

I have a bean stored in page scope with id "active". It returns
a String[] on getIds() and getLabels(). I use the following to render
a multiple select box:

<html:select size="10" name="active" multiple="true" property="ids">
   <html:options name="active" property="ids"
      labelName="active" labelProperty="labels"/>
</html:select>

What's wrong with this approach? I wish to have all elements
selected. All elements show and have the proper value/label,
but they do not get selected.

Can anyone please tell me how the property attribute of the select
tag determines what options get set as selected? Thanks.

Br,

Morten




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org