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/05/12 15:23:21 UTC

svn commit: r537419 - /myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java

Author: bommel
Date: Sat May 12 06:23:21 2007
New Revision: 537419

URL: http://svn.apache.org/viewvc?view=rev&rev=537419
Log:
TOBAGO-393: Create OptimizedResponseWriter to move the non-standard-compliant optimization stuff to

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?view=diff&rev=537419&r1=537418&r2=537419
==============================================================================
--- 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 Sat May 12 06:23:21 2007
@@ -47,7 +47,6 @@
 import org.apache.myfaces.tobago.renderkit.html.HtmlStyleMap;
 import org.apache.myfaces.tobago.renderkit.html.StyleClasses;
 import org.apache.myfaces.tobago.webapp.TobagoResponseWriter;
-import org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl;
 
 import javax.faces.component.NamingContainer;
 import javax.faces.component.UIComponent;
@@ -175,7 +174,7 @@
     } else {
       widthString = "100%";
     }
-    writer.writeAttribute("style", widthString, null);
+    writer.writeStyleAttribute(widthString);
 
     if (isFolder) {
       encodeExpandedHidden(writer, node, id, expanded);
@@ -284,7 +283,8 @@
       String src = ResourceManagerUtil.getImageWithPath(facesContext, "image/" + gif);
       writer.writeAttribute("src", src, true); // xxx is escaping required
       if (isFolder) {
-        writer.writeAttribute("onclick", createOnclickForToggle(facesContext, treeId), true); // xxx is escaping required
+        writer.writeAttribute("onclick",
+            createOnclickForToggle(facesContext, treeId), true); // xxx is escaping required
       }
       writer.writeAttribute("alt", "", false);
 //    } else if (( !this.hideRoot && depth >0 ) || (this.hideRoot && depth > 1)) {
@@ -312,7 +312,8 @@
       String src = ResourceManagerUtil.getImageWithPath(facesContext, "image/" + gif);
       writer.writeAttribute("src", src, true); // xxx is escaping required
       if (isFolder) {
-        writer.writeAttribute("onclick", createOnclickForToggle(facesContext, treeId), true); // xxx is escaping required
+        writer.writeAttribute("onclick",
+            createOnclickForToggle(facesContext, treeId), true); // xxx is escaping required
       }
       writer.writeAttribute("alt", "", false);
       writer.endElement(IMG);