Here you go Raphael,
This is the patch for row.vm. I submitted a patch for
URILookup.java a few days ago. Can you check in that
one as well? I have included it again as an attachment
if the first one did not make it.
-- Steve Davis
Index: row.vm
===================================================================
RCS file:
/home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers
/html/row.vm,v
retrieving revision 1.1
diff -u -r1.1 row.vm
--- row.vm 2001/06/10 08:41:02 1.1
+++ row.vm 2001/07/19 14:27:10
@@ -1,12 +1,15 @@
+<!-- Begin ROW Controller -->
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
#foreach ( $portlet in $portlets )
#if ($sizes.size() >= $velocityCount)
- #set ($width = $!sizes.elementAt($velocityCount-1))
+ #set ($idx = $velocityCount - 1 )
+ #set ($width = $!sizes.elementAt($idx))
#end
<td valign="top" width="$!width">
$!portlet.getContent($data)
</td>
#end
</tr>
-</table>
\ No newline at end of file
+</table>
+<!-- End ROW Controller -->
-----Original Message-----
From: Rapha�l Luta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 5:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Row Controller Velocity question
Steve Davis wrote:
> Let me preface this by saying that I have almost zero
> experience with Velocity so I don't know if I found a
> real bug or just a problem in my usage.
>
> I am trying to display some portlets using the RowController.
> I set the column sizes to be 30% and 70% but it was not
> setting the widths in the output table. I added some debug
> comments to the WEB-INF/templates/vm/controllers/html/row.vm
> as follows:
>
>
It looks like a bug, send a diff -u patch.
Please.
--
Raphael Luta - [EMAIL PROTECTED]
Vivendi Universal Networks - Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
URILookup.patch
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]