This is an automated email from the ASF dual-hosted git repository.
derjan 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 d968476a InputControl
d968476a is described below
commit d968476a30161f720e8dcb8ce7ac827d5bb4dd44
Author: Jan Glaubitz <[email protected]>
AuthorDate: Fri Nov 1 13:24:38 2024 +0100
InputControl
- addDataValueStyle: numeric column with non-numeric value
---
.../src/main/java/org/apache/empire/jsf2/controls/InputControl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
index 9ea286bb..aa9da2b8 100644
---
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
+++
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/InputControl.java
@@ -432,7 +432,7 @@ public abstract class InputControl
{ // Null
styleClass += " eValNull";
}
- else if (dataType.isNumeric())
+ else if (dataType.isNumeric() && value instanceof Number)
{ // Check negative
if (ObjectUtils.getLong(value)<0)
styleClass += " eValNeg";