You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2021/05/22 22:14:29 UTC

[empire-db] branch master updated: EMPIREDB-354 text value renering: allow to omit unit

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 66478c7  EMPIREDB-354 text value renering: allow to omit unit
66478c7 is described below

commit 66478c7c2b30f302d4524539da308f5e220b8269
Author: Rainer Döbele <do...@apache.org>
AuthorDate: Sun May 23 00:14:25 2021 +0200

    EMPIREDB-354
    text value renering: allow to omit unit
---
 .../src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 e51e894..c206bb1 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
@@ -366,7 +366,7 @@ public class TextInputControl extends InputControl
         writer.append(text);
         // unit?
         String unit = getUnitString(vi);
-        if (StringUtils.isNotEmpty(unit))
+        if (StringUtils.isNotEmpty(unit) && !hasFormatOption(vi, "nounit"))
         { // append unit
             writer.append(" ");
             writer.append(unit);