[
https://issues.apache.org/struts/browse/WW-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40178
]
Tom Schneider commented on WW-772:
----------------------------------
IMO, we should have a separate radio group and radio tag. The radio tag would
render a single radio button, the radio group would render a group of radio
buttons. Currently the radio tag renders a group of radio buttons and you need
OGNL trickery to render a single radio button. (It is currently possible, just
not convenient) I think we should move this to 2.1.x and implement my
suggestion.
> Allow to radio tag to generate only one radio button
> ----------------------------------------------------
>
> Key: WW-772
> URL: https://issues.apache.org/struts/browse/WW-772
> Project: Struts 2
> Issue Type: Improvement
> Reporter: Xavier Defrang
> Assigned To: tm_jee
> Priority: Minor
> Fix For: 2.0.6
>
>
> Right now, WebWork's radio tag generates a list of radio buttons.
> This assumption goes a bit too far as in some case you may have optional
> fields or random HTML in between those widgets.
> I would expect the following code to generate a two standalone radio button:
> <snip>
> ...
> <ww:radio name="some.property" value="'choice1'" />
> ...
> <ww:radio name="some.property" value="'choice2'" />
> ...
> </snip>
> The radio button should be checked if some.property == value.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.