You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Andreas Sachs (Jira)" <ji...@apache.org> on 2024/12/02 18:06:00 UTC

[jira] [Commented] (WW-5465) Rename tag's parameters into attributes

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

Andreas Sachs commented on WW-5465:
-----------------------------------

[~lukaszlenart] 

Hello Lukas, is the fix version ok? 6.7.0 is not mentioned, but in Component.java parameters is renamed to attributes, breaking custom components.

> Rename tag's parameters into attributes
> ---------------------------------------
>
>                 Key: WW-5465
>                 URL: https://issues.apache.org/jira/browse/WW-5465
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Tags
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 7.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Tag's parameters can be confused with HttpParameters, but these are two different things and shouldn't be mixed up due to security reasons.
> Using "attributes" instead of "parameters" can allow to distinguish these two sets of data.
> Once introduced templates should use "attributes.${attrName}" instead of "parameters.${paramName}", eg.:
> {code:java}
> <#if attributes.id??>
>  id="${attributes.id}"<#rt/>
> </#if> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)