aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-frontend-resources/src/main/java/at/gv
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2017-12-19 13:55:23 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2017-12-19 13:55:23 +0100
commit8b1813ea228048b6795c4a1c09b05480d5a59cb4 (patch)
tree907780dc1a93201e123ecf73167429c9e0d6b84d /id/server/moa-id-frontend-resources/src/main/java/at/gv
parent25b658c5884762cc87f727a2a1896cf4420e5dc1 (diff)
downloadmoa-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/at/gv')
-rw-r--r--id/server/moa-id-frontend-resources/src/main/java/at/gv/egovernment/moa/id/auth/frontend/builder/DefaultGUIFormBuilderConfiguration.java7
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));
}