struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sri Sankaran" <Sri.Sanka...@sas.com>
Subject RE: problem with select tag
Date Tue, 03 Dec 2002 15:45:01 GMT
Can you elaborate on :

1) Where is the data coming from for the working version?
2) What do you mean by "not working"?  Does it display an empty list?  Does it crash?

Sri

> -----Original Message-----
> From: meissa.Sakho@bpam.fr [mailto:meissa.Sakho@bpam.fr] 
> Sent: Tuesday, December 03, 2002 10:38 AM
> To: struts-user@jakarta.apache.org
> Subject: 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:   
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 
> 

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


Mime
View raw message