You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by sk...@apache.org on 2017/12/04 09:11:51 UTC
syncope git commit: [SYNCOPE-1242] Added 'title' html attribute to
option elements in Palette Panel
Repository: syncope
Updated Branches:
refs/heads/2_0_X 69e0c702d -> 7aeafedaf
[SYNCOPE-1242] Added 'title' html attribute to option elements in Palette Panel
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/7aeafeda
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/7aeafeda
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/7aeafeda
Branch: refs/heads/2_0_X
Commit: 7aeafedaf8a209eaa00ad5a8bbd71328b592480c
Parents: 69e0c70
Author: skylark17 <ma...@tirasa.net>
Authored: Mon Dec 4 10:11:44 2017 +0100
Committer: skylark17 <ma...@tirasa.net>
Committed: Mon Dec 4 10:11:44 2017 +0100
----------------------------------------------------------------------
.../wicket/markup/html/form/NonI18nPalette.java | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/7aeafeda/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
index b705f59..c2313a5 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
@@ -19,6 +19,8 @@
package org.apache.syncope.client.console.wicket.markup.html.form;
import java.util.Collection;
+import java.util.LinkedHashMap;
+import java.util.Map;
import org.apache.wicket.Component;
import org.apache.wicket.extensions.markup.html.form.palette.Palette;
import org.apache.wicket.markup.html.form.IChoiceRenderer;
@@ -50,5 +52,20 @@ public class NonI18nPalette<T> extends Palette<T> {
@Override
protected Component newSelectedHeader(final String componentId) {
return super.newSelectedHeader(componentId);
- }
+ }
+
+ @Override
+ protected Map<String, String> getAdditionalAttributesForChoices(final Object choice) {
+ Map<String, String> map = new LinkedHashMap<>();
+ map.put("title", choice.toString());
+ return map;
+ }
+
+ @Override
+ protected Map<String, String> getAdditionalAttributesForSelection(final Object choice) {
+ Map<String, String> map = new LinkedHashMap<>();
+ map.put("title", choice.toString());
+ return map;
+ }
+
}