[
https://issues.apache.org/jira/browse/WW-5192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart resolved WW-5192.
-------------------------------
Resolution: Won't Fix
Reverting changes introduced in [Pull Request
#577|https://github.com/apache/struts/pull/577] as this breaks evaluating the
{{value}} attribute. When enum need to be set and used as a key value it should
be evaluated via a getter/setter on the action level.
This isn't matter of comparing strings but how the {{value}} attribute is
evaluated against the action.
> Radio tag not setting enum key values
> -------------------------------------
>
> Key: WW-5192
> URL: https://issues.apache.org/jira/browse/WW-5192
> Project: Struts 2
> Issue Type: Bug
> Components: Core Tags
> Affects Versions: 6.0.0
> Reporter: Burton Rhodes
> Assignee: Lukasz Lenart
> Priority: Major
> Fix For: 6.4.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The simple/radiomap.ftl will not "check" a radio value if the key is of type
> enum. The comparison line should test the itemKeyStr and not itemKey to fix
> this
>
> Current
> {code:java}
> <#if tag.contains(parameters.nameValue!'', itemKey)>
> checked="checked"<#rt/>
> </#if> {code}
> Fix
> {code:java}
> <#if tag.contains(parameters.nameValue!'', itemKeyStr)>
> checked="checked"<#rt/>
> </#if> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)