[
https://issues.apache.org/jira/browse/WW-5592?focusedWorklogId=997463&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-997463
]
ASF GitHub Bot logged work on WW-5592:
--------------------------------------
Author: ASF GitHub Bot
Created on: 23/Dec/25 07:08
Start Date: 23/Dec/25 07:08
Worklog Time Spent: 10m
Work Description: lukaszlenart merged PR #1489:
URL: https://github.com/apache/struts/pull/1489
Issue Time Tracking
-------------------
Worklog Id: (was: 997463)
Time Spent: 20m (was: 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: 20m
> 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)