You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/07/07 19:35:00 UTC

[jira] [Commented] (WW-5192) radiomap.ftl not setting enum key values

    [ https://issues.apache.org/jira/browse/WW-5192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17563931#comment-17563931 ] 

ASF subversion and git services commented on WW-5192:
-----------------------------------------------------

Commit e6c1cec7f81ff29dcce506d7dcc7e2b25d4d321f in struts's branch refs/heads/WW-5192-radio from Lukasz Lenart
[ https://gitbox.apache.org/repos/asf?p=struts.git;h=e6c1cec7f ]

WW-5192 Fixes brok radio tag when using with enums


> radiomap.ftl 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
>            Priority: Major
>             Fix For: 6.0.1
>
>
> 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)