You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2007/08/27 06:42:34 UTC

[jira] Resolved: (WW-2137) struts 2 checkbox tag renders table tags contrary to what docs say

     [ https://issues.apache.org/struts/browse/WW-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-2137.
---------------------------

    Resolution: Not A Problem

This is because you are using the xhtml theme.  Switch to the 'simple' theme and you will get what you desire.  You can switch the theme either at a global level (struts.properties, for example) or on a per-tag basis.

> struts 2 checkbox tag renders table tags contrary to what docs say
> ------------------------------------------------------------------
>
>                 Key: WW-2137
>                 URL: https://issues.apache.org/struts/browse/WW-2137
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Documentation, Views
>    Affects Versions: 2.0.9
>         Environment: os x 10.4.9, jdk 1.6, tomcat 5.5
>            Reporter: Alex McCarrier
>
> I'm trying to use <s:checkbox/> in a table cell and running into the following problem.
> Docs say <s:checkbox/> tag will render like (from docs):
> <input type="checkbox" name="checkboxField1" value="true" checked="checked" />
> in reality it renders like (from my app):
> <tr>
> 	<td valign="top" align="right">
>     </td>
>     <td valign="top" align="left">
> <input type="checkbox" name="selectedStudents" value="true" id="studentListForm_selectedStudents"/>
> <input type="hidden" name="__checkbox_selectedStudents" value="true" /> </td>
> </tr>
> this adds an extra row to my table which I didn't intend to be there, only recourse is not to use struts2 checkbox tag.

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