You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ionel Gardais <io...@geomath.fr> on 2003/05/12 16:41:06 UTC
html:select multiple=true, how the setter looks like ?
Hi,
I have defined an html:select list with parameter multiple=true.
In the ActionForm, what is the signature of the corressponding field
setter ?
The field is a Collection;
--
- fetchez la vache
- quoi ?
- fetchez la vache !
- moooooooo
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: html:select multiple=true, how the setter looks like ?
Posted by Lukas Bradley <lu...@somnia.com>.
Didn't work for me at first, but a set() with a String[] will receive the
parameters.
<bean:define id="categoryArray" name="form.sponsor.ad"
property="availableCategories" type="mypackage.CategoryVO[]"/>
<html:select property="categories" multiple="true" size="5"
styleClass="FormField">
<html:options collection="categoryArray" property="key"
labelProperty="value"/>
</html:select>
public void setCategories(String [] pStringArray)
{
this.selectedCategories = pStringArray ;
}
"Ionel Gardais" <io...@geomath.fr> wrote in message
news:3EBFB282.3090003@geomath.fr...
> Hi,
>
> I have defined an html:select list with parameter multiple=true.
>
> In the ActionForm, what is the signature of the corressponding field
> setter ?
> The field is a Collection;
>
> --
> - fetchez la vache
> - quoi ?
> - fetchez la vache !
> - moooooooo
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org