[gatein-commits] gatein SVN: r3696 - portal/trunk/web/portal/src/main/webapp/groovy/webui/core.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Jul 23 05:52:54 EDT 2010


Author: ndkhoiits
Date: 2010-07-23 05:52:53 -0400 (Fri, 23 Jul 2010)
New Revision: 3696

Modified:
   portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIGrid.gtmpl
Log:
GTNPORTAL-1373 Define dateFormat property in UIGrid

Modified: portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIGrid.gtmpl
===================================================================
--- portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIGrid.gtmpl	2010-07-23 09:39:18 UTC (rev 3695)
+++ portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIGrid.gtmpl	2010-07-23 09:52:53 UTC (rev 3696)
@@ -72,7 +72,7 @@
                      def fieldClass = fieldValue.getClass();
                      if(fieldClass == Integer.class)	cssClass = "number";
                      else if(java.util.Date.class.isAssignableFrom(fieldClass)) {
-                        if(dateFormat == null) dateFormat = new SimpleDateFormat("HH:mm:ss yyyy-MM-dd");
+                        def dateFormat = new SimpleDateFormat("HH:mm:ss yyyy-MM-dd");
                         cssClass = "Datetime";
                         fieldValue = dateFormat.format(fieldValue);
                   }



More information about the gatein-commits mailing list