[
https://issues.apache.org/struts/browse/WW-2173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Don Brown resolved WW-2173.
---------------------------
Resolution: Not A Problem
If you want to have the the checkbox HTML rendered as described in the
documentation, use the simple theme, not the xhtml theme. The xhtml theme,
among other things, makes some assumptions to simplify coding. In this case,
it assumes a checkbox will be true or false, and uses a hidden field to ensure
the value is set to something on submit.
> <s:checkbox> with wrong value in 'value' attribute. Tag also generates an
> extra line HTML line.
> -----------------------------------------------------------------------------------------------
>
> Key: WW-2173
> URL: https://issues.apache.org/struts/browse/WW-2173
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.9
> Environment: JDK 1.5
> Reporter: Jay
> Assignee: Don Brown
> Fix For: 2.0.12
>
>
> I am using JDK 1.5 and in my JSP I have :
> <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"/>
> That is, the second line is not there and the value attribute actually
> contains the value of the object in the value stack.
> This issue is rather a follow-up to WW-2137. That issue was closed, but I
> still having the same problems reported.
> Thank you
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.