The <s:radio> tag requires you specify a list. What if you want to render 4
radio buttons on a screen and put divs between them that expand when you
click on the radio button? Struts 2 doesn't seem to be able to handle this.
Of course, you can use JSP EL and regular <input> tags, but that seems kinda
hokey.

<input type="radio" name="reason" value="friend" ${(reason eq 'friend') ?
'checked="checked"' : ''} />

Is this an oversight? Should <s:radio> be renamed to <s:radiolist> and a
single <s:radio> be created - like <s:checkbox> has?

Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/Is-there-a-reason-s%3Aradio-requires-a-list--tf4104739.html#a11673487
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to