You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sheetal <sh...@hsc.com> on 2006/08/25 07:49:25 UTC

Radio Button

Hi,
 
To prepopulate, list box , I had attached  LabelValueBean, with the 
select's collection ,attribute

     <html:select property="deviceId"   >
         <html:options collection="<%=CmdConstants.DEVICE_ID_LIST%>"
               property="value" labelProperty="label" /> 
           </html:select>


But Does anybody knows how to associate labelvaluebean with radio button }
(As per my knowledge we do not have a collection attrib. for radio).

Regards,
Sheetal



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


Re: Radio Button

Posted by krishan rathi <kr...@yahoo.com>.
use the code given below
  <logic:iterate id="bean" name="CmdConstants" propertyy="DEVICE_ID_LIST">
  <bean:write name="bean" property="label"/><html-el:radio property="deviceId" value="${value}"/>
</logic:iterate>
   
  cheers
   
  krishan rathi.

sheetal <sh...@hsc.com> wrote:
  Hi,

To prepopulate, list box , I had attached LabelValueBean, with the 
select's collection ,attribute


">property="value" labelProperty="label" /> 



But Does anybody knows how to associate labelvaluebean with radio button }
(As per my knowledge we do not have a collection attrib. for radio).

Regards,
Sheetal



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



 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.