diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-12-19 13:55:23 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-12-19 13:55:23 +0100 |
commit | 8b1813ea228048b6795c4a1c09b05480d5a59cb4 (patch) | |
tree | 907780dc1a93201e123ecf73167429c9e0d6b84d /id/server/moa-id-frontend-resources/src/main/java | |
parent | 25b658c5884762cc87f727a2a1896cf4420e5dc1 (diff) | |
download | moa-id-spss-8b1813ea228048b6795c4a1c09b05480d5a59cb4.tar.gz moa-id-spss-8b1813ea228048b6795c4a1c09b05480d5a59cb4.tar.bz2 moa-id-spss-8b1813ea228048b6795c4a1c09b05480d5a59cb4.zip |
update interface of DefaultGUIFormBuilderConfiguration, because putCustomParameter(...) implementation only support values of type String
Diffstat (limited to 'id/server/moa-id-frontend-resources/src/main/java')
-rw-r--r-- | id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/DefaultGUIFormBuilderConfiguration.java | 7 |
1 files changed, 2 insertions, 5 deletions
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<String, Object>(); - 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)); } |