You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sc...@apache.org on 2005/09/28 00:46:11 UTC

svn commit: r292066 - /myfaces/tomahawk/branches/1_1_1/src/java/org/apache/myfaces/custom/tree2/HtmlTreeRenderer.java

Author: schof
Date: Tue Sep 27 15:46:08 2005
New Revision: 292066

URL: http://svn.apache.org/viewcvs?rev=292066&view=rev
Log:
Fixes MYFACES-634 (Patch by Mathias Werlitz)

Modified:
    myfaces/tomahawk/branches/1_1_1/src/java/org/apache/myfaces/custom/tree2/HtmlTreeRenderer.java

Modified: myfaces/tomahawk/branches/1_1_1/src/java/org/apache/myfaces/custom/tree2/HtmlTreeRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/branches/1_1_1/src/java/org/apache/myfaces/custom/tree2/HtmlTreeRenderer.java?rev=292066&r1=292065&r2=292066&view=diff
==============================================================================
--- myfaces/tomahawk/branches/1_1_1/src/java/org/apache/myfaces/custom/tree2/HtmlTreeRenderer.java (original)
+++ myfaces/tomahawk/branches/1_1_1/src/java/org/apache/myfaces/custom/tree2/HtmlTreeRenderer.java Tue Sep 27 15:46:08 2005
@@ -487,7 +487,6 @@
 //      add the appropriate image for the nav control
         UIGraphic image = new UIGraphic();
         image.setId(IMAGE_PREFIX);
-        image.setParent(tree);
         image.setUrl(navSrcUrl);
         Map imageAttrs = image.getAttributes();
         imageAttrs.put(HTML.WIDTH_ATTR, "19");
@@ -532,6 +531,7 @@
                 }
             }
 
+            image.setParent(tree);
             if (node.getChildCount() > 0)
             {
                 String onClick = new StringBuffer()