[
https://issues.apache.org/jira/browse/WW-5592?focusedWorklogId=997459&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-997459
]
ASF GitHub Bot logged work on WW-5592:
--------------------------------------
Author: ASF GitHub Bot
Created on: 23/Dec/25 05:47
Start Date: 23/Dec/25 05:47
Worklog Time Spent: 10m
Work Description: gregh3269 opened a new pull request, #1489:
URL: https://github.com/apache/struts/pull/1489
The Textfield tag in the java templates plugin does not allow white space.
To make it match the standard, the .isNotBlank(..) should be .isNotEmpty(..)
in the org.apache.struts2.views.java.Attributes class.
WW-5592.
Issue Time Tracking
-------------------
Worklog Id: (was: 997459)
Remaining Estimate: 0h
Time Spent: 10m
> Textfield tag not allowing white space
> --------------------------------------
>
> Key: WW-5592
> URL: https://issues.apache.org/jira/browse/WW-5592
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Java Templates
> Affects Versions: 7.1.1
> Reporter: Greg Huber
> Assignee: Greg Huber
> Priority: Minor
> Fix For: 7.2.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The Textfield tag in the java templates plugin does not allow white space.
> To make it match the standard, the .isNotBlank(..) should be .isNotEmpty(..)
> in the org.apache.struts2.views.java.Attributes class.
> {code:java}
> public Attributes addIfExists(String attrName, Object paramValue, boolean
> encode) {
> if (paramValue != null) {
> String val = paramValue.toString();
> if (StringUtils.isNotBlank(val))
> put(attrName, (encode ?
> StringUtils.defaultString(StringEscapeUtils.escapeHtml4(val)) : val));
> }
> return this;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)