myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svieu...@apache.org
Subject svn commit: r169103 - /myfaces/trunk/src/components/org/apache/myfaces/custom/div/DivRenderer.java
Date Sat, 07 May 2005 18:35:51 GMT
Author: svieujot
Date: Sat May  7 11:35:51 2005
New Revision: 169103

URL: http://svn.apache.org/viewcvs?rev=169103&view=rev
Log:
x:div : remove 'Only one of style or styleClass can be specified' limitation.

Modified:
    myfaces/trunk/src/components/org/apache/myfaces/custom/div/DivRenderer.java

Modified: myfaces/trunk/src/components/org/apache/myfaces/custom/div/DivRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/trunk/src/components/org/apache/myfaces/custom/div/DivRenderer.java?rev=169103&r1=169102&r2=169103&view=diff
==============================================================================
--- myfaces/trunk/src/components/org/apache/myfaces/custom/div/DivRenderer.java (original)
+++ myfaces/trunk/src/components/org/apache/myfaces/custom/div/DivRenderer.java Sat May  7
11:35:51 2005
@@ -60,9 +60,7 @@
     
     String styleClass = div.getStyleClass();
     String style = div.getStyle();
-    if(null != styleClass && null != style) {
-      throw new IllegalStateException("Only one of style or styleClass can be specified");
-    }
+
     if(null != styleClass) {
         writer.writeAttribute(HTML.CLASS_ATTR, styleClass, null);
     }



Mime
View raw message