You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by me...@bpam.fr on 2002/12/03 16:37:31 UTC

problem with select tag

hi all,

I've a trouble while using the html select tag.

when a use the select tag with the fragment code below,
everything works well

<html:select  styleClass="listBox" property='fundCodes' size="10" multiple=
"true">
                        <html:options name='fundOptionCodes'
                        labelName='fundOptionLabels' />

fundCodes is a type of String[] and fundOptionCodes and fundOptionLabels
are both
ArrayList.

The problem occurs when I try to get the same result from my action form.

the code that does not works is here :

<html:select  styleClass="listBox" property='selectedCodes' size="10"
multiple="true">
                        <html:options labelName='selectedFundLabels'
                        labelProperty='selectedFundCodes' />
                        </html:select>


selectedFundLabels and selectedFundCodes are both of types ArrayList of my
ActionForm
and selectedCodes is of type String[].

for all attributes, getter and setter are provided.

I dont know why this code is not working and I really need to be able to
populate my values from the ActionForm.

Can someone tells me where my failure is from

thanks in advance.

Meissa



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>