[
https://issues.apache.org/jira/browse/WW-5117?focusedWorklogId=704210&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-704210
]
ASF GitHub Bot logged work on WW-5117:
--------------------------------------
Author: ASF GitHub Bot
Created on: 05/Jan/22 20:32
Start Date: 05/Jan/22 20:32
Worklog Time Spent: 10m
Work Description: coveralls edited a comment on pull request #524:
URL: https://github.com/apache/struts/pull/524#issuecomment-1005131448
[](https://coveralls.io/builds/45403835)
Coverage increased (+0.001%) to 47.322% when pulling
**8c6eb6f1f37911e24c97cdc1b53353bdfe9ce3a3 on
WW-5117-evaluate-dynamic-attributes** into
**25da849d0ac06af07e904961dced038b1d7f57b9 on struts-2-5-x**.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 704210)
Time Spent: 4h 40m (was: 4.5h)
> %{id} evaluates different for data-* and value attribute
> --------------------------------------------------------
>
> Key: WW-5117
> URL: https://issues.apache.org/jira/browse/WW-5117
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.5.26
> Reporter: Jonas Marczona
> Assignee: Lukasz Lenart
> Priority: Major
> Fix For: 2.6, 2.5.29
>
> Time Spent: 4h 40m
> Remaining Estimate: 0h
>
> {{%\{id\}}} evaluates for "data-*" attributes in a different way than for the
> "value" attribute.
> in a very simple context where I have only one getter:
> {code}
> public Long getId() {
> return 27357L;
> }
> {code}
> The following two usages of "id" in one tag in a jsp evaluates in different
> ways:
> JSP:
> {noformat}
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <s:hidden name="first" data-wuffmiauww="%{id}" id="einszwei" value="%{id}"/>
> <s:hidden name="second" data-wuffmiauww="%{id}" value="%{id}"/>
> {noformat}
> Result:
> {noformat}
> <input type="hidden" name="first" value="27357" id="einszwei"
> data-wuffmiauww="einszwei">
> <input type="hidden" name="second" value="27357" data-wuffmiauww>
> {noformat}
> I expect the Id of my getter - for both cases.
> The value for {{data-wuffmiauww}} is wrong.
> With struts2 version 2.5.20 the result was correct:
> {noformat}
> <input type="hidden" name="first" value="27357" id="einszwei"
> data-wuffmiauww="27357">
> <input type="hidden" name="second" value="27357" data-wuffmiauww="27357">
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)