You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2019/06/24 07:57:50 UTC
[myfaces-tobago] branch tobago-2.x updated: TOBAGO-1995 - Tobago 2:
TreeListbox did not render tip
This is an automated email from the ASF dual-hosted git repository.
weber pushed a commit to branch tobago-2.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/tobago-2.x by this push:
new b4da53e TOBAGO-1995 - Tobago 2: TreeListbox did not render tip
b4da53e is described below
commit b4da53e2757f8f45580d423a6476db0a8e6f4d9e
Author: Volker Weber <v....@inexso.de>
AuthorDate: Mon Jun 24 09:57:44 2019 +0200
TOBAGO-1995 - Tobago 2: TreeListbox did not render tip
---
.../renderkit/html/standard/standard/tag/TreeListboxNodeRenderer.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/TreeListboxNodeRenderer.java b/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/TreeListboxNodeRenderer.java
index 1c51c6a..b12ab94 100644
--- a/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/TreeListboxNodeRenderer.java
+++ b/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/TreeListboxNodeRenderer.java
@@ -103,6 +103,10 @@ public class TreeListboxNodeRenderer extends CommandRendererBase {
writer.startElement(HtmlElements.OPTION, null);
writer.writeAttribute(HtmlAttributes.VALUE, id, true);
+ String title = node.getTip();
+ if (title != null) {
+ writer.writeAttribute(HtmlAttributes.TITLE, title, true);
+ }
writer.writeIdAttribute(id);
writer.writeAttribute(HtmlAttributes.SELECTED, selected);
}