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

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Jun 17 06:57:46 EDT 2010


Author: ndkhoiits
Date: 2010-06-17 06:57:46 -0400 (Thu, 17 Jun 2010)
New Revision: 3362

Modified:
   portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIPopupMessages.gtmpl
Log:
GTNPORTAL-1329 Using replace method instead of replaceAll

Modified: portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIPopupMessages.gtmpl
===================================================================
--- portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIPopupMessages.gtmpl	2010-06-17 10:25:26 UTC (rev 3361)
+++ portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIPopupMessages.gtmpl	2010-06-17 10:57:46 UTC (rev 3362)
@@ -60,7 +60,7 @@
 			Object[] msgArguments = mess.getMessageAruments();
 			if(msgArguments != null && msgArguments.length > 0) {
 				for(i in 0..msgArguments.length-1){ 
-					msgValue = msgValue.replaceAll("\\{" + i + "\\}", _ctx.appRes(msgArguments [i]));
+					msgValue = msgValue.replace("{" + i + "}", _ctx.appRes(msgArguments [i]));
 				}
 			}
 			println msgValue;



More information about the gatein-commits mailing list