myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svieu...@apache.org
Subject svn commit: r278631 - /myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java
Date Sun, 04 Sep 2005 21:50:15 GMT
Author: svieujot
Date: Sun Sep  4 14:50:11 2005
New Revision: 278631

URL: http://svn.apache.org/viewcvs?rev=278631&view=rev
Log:
HtmlTagRenderer : Use HtmlRendererUtils.

Modified:
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java

Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java?rev=278631&r1=278630&r2=278631&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java
(original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/htmlTag/HtmlTagRenderer.java
Sun Sep  4 14:50:11 2005
@@ -51,19 +51,11 @@
             ResponseWriter writer = context.getResponseWriter();
 
             writer.startElement(tag, htmlTag);
-            HtmlRendererUtils.writeIdIfNecessary(writer, component, context);
-
-            String styleClass = htmlTag.getStyleClass();
-            String style = htmlTag.getStyle();
-
-            if (null != styleClass)
-            {
-                writer.writeAttribute(HTML.CLASS_ATTR, styleClass, null);
-            }
-            if (null != style)
-            {
-                writer.writeAttribute(HTML.STYLE_ATTR, style, null);
-            }
+            HtmlRendererUtils.writeIdIfNecessary(writer, htmlTag, context);
+            
+            // TODO : Use HtmlRendererUtils.renderHTMLAttributes(writer, component, HTML.COMMON_PASSTROUGH_ATTRIBUTES);
+            String[] supportedAttributes = {HTML.STYLE_CLASS_ATTR, HTML.STYLE_ATTR};
+            HtmlRendererUtils.renderHTMLAttributes(writer, htmlTag, supportedAttributes);
         }  
     }
 



Mime
View raw message