You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jonathan (JIRA)" <ji...@apache.org> on 2008/04/16 23:47:07 UTC

[jira] Commented: (WW-1289) Radio tag like struts

    [ https://issues.apache.org/struts/browse/WW-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43624#action_43624 ] 

Jonathan commented on WW-1289:
------------------------------

Just wanted to point out the work around isn't that great.
<s:radio theme="simple" name="selectedOption" list="#{1:''}"/>

generates

<input name="selectedOption" id="selectedOption1" checked="checked" value="1" type="radio"><label for="selectedOption1"></label>

it still writes that empty label tag, which is annoying.

If you put your label in the list, the css class you apply to the element is only applied to the radio button and is not applied to the label, which you can't modify.

I bring this up in hopes to up the priority of this getting addressed.  Thanks, Jonathan

> Radio tag like struts
> ---------------------
>
>                 Key: WW-1289
>                 URL: https://issues.apache.org/struts/browse/WW-1289
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Tags
>    Affects Versions: WW 2.2.2, 2.0.5
>            Reporter: Ricardo Lecheta
>             Fix For: 2.1.3
>
>
> The radio tag from webwork is amazing and very easy to use. But sometimes you don't want to use a list+ognl. Generally you have to put a getList() in your Action.
> The html:radio tag from struts is more simple, and easy too.
> I am proposing that both tags could exists in SAF2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.