[
https://issues.apache.org/jira/browse/WW-5447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868301#comment-17868301
]
Lukasz Lenart commented on WW-5447:
-----------------------------------
Are you sure "labelPosition" is the issue? I was able to set it to "top" and
see a change in the layout by applying "tdLabelTop". By default "left" is used
and this corresponds to "tdLabel"
{code:html}
<s:radio key="person.gender" list="genders" labelPosition="top" />
{code}
{code:html}
<td class="tdLabelTop" colspan="2">
<label for="savePerson_person_gender" class="label">Gender:</label>
</td>
{code}
vs
{code:html}
<s:radio key="person.gender" list="genders" labelPosition="left" />
{code}
{code:html}
<td class="tdLabel">
<label for="savePerson_person_gender" class="label">Gender:</label>
</td>
{code}
> Radio Tag not supporting labelPosition attribute
> ------------------------------------------------
>
> Key: WW-5447
> URL: https://issues.apache.org/jira/browse/WW-5447
> Project: Struts 2
> Issue Type: Bug
> Components: Core Tags
> Affects Versions: 6.3.0
> Reporter: gauravseta
> Priority: Critical
> Fix For: 6.7.0
>
>
> Radio Tag "s:radio" is not supporting "labelPosition" attribute even though
> official docs mentions it in Struts 6.3.0
> # Add "labelPosition" attribute at this line
> [https://github.com/apache/struts-examples/blob/master/crud/src/main/webapp/WEB-INF/jsp/editPerson.jsp#L28]
> 2. though code will build successfully, but as soon as war is deployed in a
> container.
> 3. "crud-1.1.0/index.jsp" becomes inaccessible, though without
> "labelPosition" attribute crud module works fine.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)