From 8b1813ea228048b6795c4a1c09b05480d5a59cb4 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 19 Dec 2017 13:55:23 +0100 Subject: update interface of DefaultGUIFormBuilderConfiguration, because putCustomParameter(...) implementation only support values of type String --- .../auth/frontend/builder/DefaultGUIFormBuilderConfiguration.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'id/server/moa-id-frontend-resources') diff --git a/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/DefaultGUIFormBuilderConfiguration.java b/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/DefaultGUIFormBuilderConfiguration.java index 901dbae53..8cc7040dc 100644 --- a/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/DefaultGUIFormBuilderConfiguration.java +++ b/id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/DefaultGUIFormBuilderConfiguration.java @@ -91,14 +91,11 @@ public class DefaultGUIFormBuilderConfiguration extends AbstractGUIFormBuilderCo * @param key velocity context key * @param value of this key */ - public void putCustomParameter(String key, Object value) { + public void putCustomParameter(String key, String value) { if (customParameters == null) customParameters = new HashMap(); - if (value instanceof String) - customParameters.put(key, StringEscapeUtils.escapeHtml((String)value)); - else - customParameters.put(key, StringEscapeUtils.escapeHtml(value.toString())); + customParameters.put(key, StringEscapeUtils.escapeHtml(value)); } -- cgit v1.2.3