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: Multibox
Date Tue, 03 Dec 2002 14:06:39 GMT


> -----Original Message-----
> From: dlee [mailto:donl34@attbi.com] 
> Sent: Tuesday, December 03, 2002 8:57 AM
> To: Struts Users Mailing List
> Subject: Multibox
> 
> 
> Hello,
> I'm using struts 1.0.2.
> I would like to present an input form on a jsp and part of 
> that would be to display a number of checkboxes.
> 
> Ted Husted writes:
> 
> To provide different sets of labels and values, the standard 
> LabelValueBean class [org.apache.struts.util.LabelValueBean] 
> (since 1.1) can be used with the multibox control.
> 
>   <logic:iterate id="item" property="items">
>     <html:multibox property="selectedItems">
>       <bean:write name="item" property="value"/>
>     </html:multibox>
>       <bean:write name="item" property="label"/>
>   </logic:iterate>
> 
> 
> 
>   Question: what is "items" ? An arraylist containing 
> LabelValueBean's ?
> 
Not having seen the context of Ted's writing, that would be my guess.  Observe however that
this will work only in Struts 1.1.  You've said that you are using 1.0.2
> 
> 
>   Thanks
> 
>   Don
> 
Sri
> 
> 
> 
> 
> 
> 
> --
> 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