How do I render a single radio button

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Code Block
<s:radio theme="simple" name="selectedOption" list="{optionA}"/>
...
<s:radio theme="simple" name="selectedOption" list="{optionB}"/>

If you want to use some other (or no) label, you can use a map:

Code Block

<s:radio theme="simple" name="selectedOption" list="#{optionA:'Value A'}"/>
...
<s:radio theme="simple" name="selectedOption" list="#{optionB:'Value B'}"/>