Hi,
I also experience this problem with the radio button.
Could you please give me an example of how this is done?
My code:
<s:radio list="#{'0':'Not active, '1':'Active'}" label="Status"
value="%{cv.active}" name="cv.active" />
<s:property value="cv.active"/> gives a 'true' output.
If I change from radio to select it works ok, strange...
Thanks in advance for your help :)
ALM
-----Opprinnelig melding-----
Fra: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sendt: 7. juli 2007 03:25
Til: Struts Users Mailing List
Emne: Re: Radio Button - setting a <s:radio ... /> to 'checked'
Hi,
Set the property that is associated with the <s:radio> tag to with the
value
you want to be checked.
Thanks,
Nuwan
----- Original Message -----
From: "yitzle" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[email protected]>
Sent: Friday, July 06, 2007 4:14 PM
Subject: Radio Button - setting a <s:radio ... /> to 'checked'
> How to I make a radio button get rendered as checked?
>
> I'm making several radio buttons, one per <s:radio ... /> and they all
> render unchecked.
> Even when I generate several with one radio tag and a map, I can't
> figure out how to set one to checked.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]