[gatein-commits] gatein SVN: r2059 - portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Mar 9 10:24:23 EST 2010


Author: mwringe
Date: 2010-03-09 10:24:23 -0500 (Tue, 09 Mar 2010)
New Revision: 2059

Modified:
   portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardSelectContainer.gtmpl
Log:
GTNPORTAL-807: we need to use collection.size() instead of collection.size because of a Groovy issue with the IBM jdk (see GROOVY-4094). Without the change it will try and find the properly size on the contents of the collection and not of the collection object itself.

Modified: portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardSelectContainer.gtmpl
===================================================================
--- portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardSelectContainer.gtmpl	2010-03-09 14:52:30 UTC (rev 2058)
+++ portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardSelectContainer.gtmpl	2010-03-09 15:24:23 UTC (rev 2059)
@@ -19,7 +19,7 @@
 			</div>
 			<div class="MiddleItemContainer UIResizableBlock">
 			<% List categories = uicomponent.getCategories();
-				 if(categories != null && categories.size > 0){
+				 if(categories != null && categories.size() > 0){
 					for(category in categories){
 			%>
 							<div class="GadgetCategory" id="${category.getName()}">



More information about the gatein-commits mailing list