You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/11/25 22:52:35 UTC
svn commit: r598065 -
/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
Author: bommel
Date: Sun Nov 25 13:52:35 2007
New Revision: 598065
URL: http://svn.apache.org/viewvc?rev=598065&view=rev
Log:
(TOBAGO-533) Allow non String value for tip attribute
Modified:
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
Modified: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java?rev=598065&r1=598064&r2=598065&view=diff
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java (original)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java Sun Nov 25 13:52:35 2007
@@ -363,10 +363,10 @@
classes.addClass("treeNode", "marker");
writer.writeClassAttribute(classes);
}
- String tip = (String) node.getAttributes().get(ATTR_TIP);
- if (tip != null) {
+ Object objTip = node.getAttributes().get(ATTR_TIP);
+ if (objTip != null) {
//XXX is needed? tip = StringEscapeUtils.escapeJavaScript(tip);
- writer.writeAttribute(HtmlAttributes.TITLE, tip, true);
+ writer.writeAttribute(HtmlAttributes.TITLE, String.valueOf(objTip), true);
}
String label = (String) node.getAttributes().get(ATTR_LABEL);
if (label == null) {