portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: jakarta-jetspeed-2/layout-portlets/src/java/org/apache/jetspeed/portlets/layout MultiColumnPortlet.java
Date Tue, 08 Mar 2005 02:35:14 GMT
ate         2005/03/07 18:35:14

  Modified:    layout-portlets/src/java/org/apache/jetspeed/portlets/layout
                        MultiColumnPortlet.java
  Log:
  Support overriding custom column sizes be defined within a layout portlet fragment using
for example:
      <property layout="TwoColumns" name="sizes" value="0%,100%" />
  
  Revision  Changes    Path
  1.10      +10 -0     jakarta-jetspeed-2/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java
  
  Index: MultiColumnPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- MultiColumnPortlet.java	29 Jan 2005 21:42:08 -0000	1.9
  +++ MultiColumnPortlet.java	8 Mar 2005 02:35:14 -0000	1.10
  @@ -114,6 +114,16 @@
   
           request.setAttribute("columns", columns);
           request.setAttribute("numberOfColumns", new Integer(numColumns));
  +        
  +        List columnSizes = this.columnSizes;
  +
  +        // Determine custom column sizes in the psml
  +        String customSizes = f.getPropertyValue(this.layoutType, "sizes");
  +        if ( customSizes != null && customSizes.trim().length() > 0 )
  +        {
  +            columnSizes = getCellSizes(customSizes);
  +        }
  +                
           request.setAttribute("columnSizes", columnSizes);        
   
           // now invoke the JSP associated with this portlet
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message