[ https://issues.apache.org/jira/browse/WW-5365?focusedWorklogId=898312&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-898312 ]
ASF GitHub Bot logged work on WW-5365: -------------------------------------- Author: ASF GitHub Bot Created on: 07/Jan/24 10:37 Start Date: 07/Jan/24 10:37 Worklog Time Spent: 10m Work Description: lukaszlenart opened a new pull request, #835: URL: https://github.com/apache/struts/pull/835 Closes [WW-5365](https://issues.apache.org/jira/browse/WW-5365) Issue Time Tracking ------------------- Worklog Id: (was: 898312) Remaining Estimate: 0h Time Spent: 10m > Radio tag does not support value objects of type Boolean when setting the > default value > --------------------------------------------------------------------------------------- > > Key: WW-5365 > URL: https://issues.apache.org/jira/browse/WW-5365 > Project: Struts 2 > Issue Type: Bug > Components: Core Tags > Affects Versions: 6.3.0 > Reporter: Nate > Priority: Major > Fix For: 6.4.0 > > Time Spent: 10m > Remaining Estimate: 0h > > Github proof of concept project here: https://github.com/ikannak/RadioPoC > The fix for WW-5192 introduced a regression when using a Boolean type value > object in a s:radio tag. When using a radio map as shown in the linked PoC > project in index.jsp, Struts 2 6.0.3 and later won't set the checked property > of the relevant radio input. This appears to be because the value is now > considered a String rather than an Object, leading to parameters.nameValue > being set to the property name rather than the value of the underlying > object. In Struts versions before 6.0.3 (tested with 2.5.32 and 2.5.22), it > would use the boolean true/false version of the value object as nameValue, > but when tested with version 6.3.0.1, it instead is set to the literal value > of the s:radio value attribute. > Note that this also does not match the official documentation: according to > the official tag developers guide at > https://struts.apache.org/tag-developers/tag-syntax#value-is-an-object, value > is intended to be an object. -- This message was sent by Atlassian Jira (v8.20.10#820010)