myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svieu...@apache.org
Subject cvs commit: incubator-myfaces/src/components/org/apache/myfaces/custom/div DivRenderer.java
Date Sat, 27 Nov 2004 00:00:09 GMT
svieujot    2004/11/26 16:00:09

  Modified:    src/components/org/apache/myfaces/custom/div
                        DivRenderer.java
  Log:
  Remove the limitation to have a style or a styleClass attribute because sometimes, just
a plain <div> can be useful.
  
  Revision  Changes    Path
  1.3       +4 -4      incubator-myfaces/src/components/org/apache/myfaces/custom/div/DivRenderer.java
  
  Index: DivRenderer.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/custom/div/DivRenderer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DivRenderer.java	10 Nov 2004 11:09:52 -0000	1.2
  +++ DivRenderer.java	27 Nov 2004 00:00:09 -0000	1.3
  @@ -27,6 +27,9 @@
    * @author bdudney (latest modification by $Author$) 
    * @version $Revision$ $Date$ 
    * $Log$
  + * Revision 1.3  2004/11/27 00:00:09  svieujot
  + * Remove the limitation to have a style or a styleClass attribute because sometimes, just
a plain <div> can be useful.
  + *
    * Revision 1.2  2004/11/10 11:09:52  bdudney
    * div renderer now puts the class/style in quotes
    *
  @@ -48,9 +51,6 @@
       writer.write("<" + HTML.DIV_ELEM +" ");
       String styleClass = div.getStyleClass();
       String style = div.getStyle();
  -    if(null == styleClass && null == style) {
  -      throw new IllegalStateException("Either style or styleClass must be specified");
  -    }
       if(null != styleClass && null != style) {
         throw new IllegalStateException("Only one of style or styleClass can be specified");
       }
  
  
  

Mime
View raw message