You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jay (JIRA)" <ji...@apache.org> on 2007/09/12 22:44:34 UTC

[jira] Issue Comment Edited: (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:comment-tabpanel#action_42187 ] 

jfggdlstruts edited comment on WW-2137 at 9/12/07 1:42 PM:
--------------------------------------------------

An Additional comment:

I do not need the second line:

<input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />

Please provide pointers as to why this line is added.

IThank for any help provided.


      was (Author: jfggdlstruts):
    An Additional comment:

I do not need the second line:

<input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />

Please provide pointers as to why this line is added.

I have the same problem, but I am using JDK 1.5, WL 9.2. 

I am using:

<s:checkbox name="flightSegmentSelected"  value="#flightSegmentKey" theme="simple"/>

The HTML generated is:

<input type="checkbox" name="flightSegmentSelected" value="true" id="FlightSegmentDetails_flightSegmentSelected"/>
<input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />

I was expecting something that adheres more to what the documentation says:

<input type="checkbox" name="flightSegmentSelected" value="THE VALUE OF FLIGHTSEGMENTKEY" id="FlightSegmentDetails_flightSegmentSelected"/>
<input type="hidden" name="__checkbox_flightSegmentSelected" value="true" />


Thank for any help provided.

  
> 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.