This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new c4766975 EMPIREDB-461 Bugfix: JSF text values not properly escaped
c4766975 is described below
commit c47669757b2126bc18bb0c1accb92677f799a840
Author: Rainer Döbele <[email protected]>
AuthorDate: Fri Apr 11 11:12:03 2025 +0200
EMPIREDB-461
Bugfix: JSF text values not properly escaped
---
.../main/java/org/apache/empire/jsf2/controls/TextInputControl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
index 169321fd..579f5d03 100644
---
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
+++
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
@@ -481,12 +481,12 @@ public class TextInputControl extends InputControl
{
String text = formatValue(value, vi);
if (StringUtils.isEmpty(text))
- { // nothing
+ { // nothing
writer.append(HTML_EXPR_NBSP);
return;
}
// append text
- writer.append(text);
+ super.renderValue(value, vi, writer);
// unit?
String unit = getUnitString(vi);
if (StringUtils.isNotEmpty(unit) && !hasFormatOption(vi, "nounit"))