You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Alex McCarrier (JIRA)" <ji...@apache.org> on 2007/08/27 06:36:34 UTC
[jira] Created: (WW-2137) struts 2 checkbox tag renders table tags
contrary to what docs say
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.
[jira] Commented: (WW-2137) struts 2 checkbox tag renders table
tags contrary to what docs say
Posted by "Jay (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42187 ]
Jay commented on WW-2137:
-------------------------
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.
[jira] Commented: (WW-2137) struts 2 checkbox tag renders table
tags contrary to what docs say
Posted by "Alex McCarrier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42027 ]
Alex McCarrier commented on WW-2137:
------------------------------------
Thanks! Docs should have this information in it as well. Themes seem like an advanced topic, all I'm trying to do is render a table of checkboxes and it's not working as described, no mention of "themes" ...
> 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.
[jira] Commented: (WW-2137) struts 2 checkbox tag renders table
tags contrary to what docs say
Posted by "Jay (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42186 ]
Jay commented on WW-2137:
-------------------------
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.
[jira] Resolved: (WW-2137) struts 2 checkbox tag renders table tags
contrary to what docs say
Posted by "Don Brown (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Issue Comment Edited: (WW-2137) struts 2 checkbox tag
renders table tags contrary to what docs say
Posted by "Jay (JIRA)" <ji...@apache.org>.
[ 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.