You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2025/10/17 06:23:42 UTC
(syncope) branch 3_0_X updated: Reflow
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 3_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/3_0_X by this push:
new db2e12c779 Reflow
db2e12c779 is described below
commit db2e12c7799c895d76add60111f5c0192c7dc418
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Thu Oct 16 08:59:01 2025 +0200
Reflow
---
.../client/ui/commons/markup/html/form/AjaxNumberFieldPanel.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/AjaxNumberFieldPanel.java b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/AjaxNumberFieldPanel.java
index c26c889717..e7c3fafa4f 100644
--- a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/AjaxNumberFieldPanel.java
+++ b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/AjaxNumberFieldPanel.java
@@ -37,7 +37,6 @@ import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.util.lang.Objects;
public final class AjaxNumberFieldPanel<T extends Number & Comparable<T>> extends FieldPanel<T> {
@@ -76,10 +75,13 @@ public final class AjaxNumberFieldPanel<T extends Number & Comparable<T>> extend
this.convertValuesToString = convertValuesToString;
field = new NumberTextField<>("numberTextField", model, reference, options) {
+
+ private static final long serialVersionUID = -8837755342786762653L;
+
@Override
protected String getModelValue() {
- Object value = getModelObject();
- return value == null ? "" : Objects.stringValue(value);
+ T value = getModelObject();
+ return value == null ? "" : value.toString().trim();
}
};