weaver      2004/09/07 07:11:58

  Modified:    portal/src/webapp/WEB-INF/templates/layout/html/columns
                        layout.vm
  Log:
  Changed to using getPropertyValue to avoid possible ArrayIndexOutOfBounds 
exceptions.  The "+ 0" force Velocity to set the $row and $col
  variables as int's.
  
  Revision  Changes    Path
  1.14      +2 -2      
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm
  
  Index: layout.vm
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- layout.vm 7 Sep 2004 03:58:21 -0000       1.13
  +++ layout.vm 7 Sep 2004 14:11:58 -0000       1.14
  @@ -78,8 +78,8 @@
          #foreach($f in $entry)       
           <tr>
            <td width="100%">
  -            #set($row = $f.getProperties($layoutType).get(0).intValue)
  -            #set($col = $f.getProperties($layoutType).get(1).intValue)
  +            #set($row = $f.getPropertyValue($layoutType, "row") + 0)
  +            #set($col = $f.getPropertyValue($layoutType, "column") + 0)
               #if($editing)<div id="_$f.id">        
               <div style="position:relative; top:10px; left:0; width:100%; 
height:100%;">
                 <div id="_$f.id_toolBox"  >
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to