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 2006/11/03 00:37:35 UTC
svn commit: r470599 -
/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxRenderer.java
Author: weber
Date: Thu Nov 2 15:37:34 2006
New Revision: 470599
URL: http://svn.apache.org/viewvc?view=rev&rev=470599
Log:
suppress warning if style is null
Modified:
myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxRenderer.java
Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxRenderer.java?view=diff&rev=470599&r1=470598&r2=470599
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxRenderer.java (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxRenderer.java Thu Nov 2 15:37:34 2006
@@ -70,7 +70,9 @@
writer.startElement(HtmlConstants.FIELDSET, component);
writer.writeComponentClass();
- writer.writeAttribute(HtmlAttributes.STYLE, style, null);
+ if (style != null) {
+ writer.writeAttribute(HtmlAttributes.STYLE, style, null);
+ }
if (label != null || labelString != null) {
writer.startElement(HtmlConstants.LEGEND, component);