W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/src/org/w3c/unicorn/action IndexAction.java,1.18,1.19

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 21 Sep 2009 15:46:52 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mpl6K-0001Hq-2m@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv4928/src/org/w3c/unicorn/action

Modified Files:
	IndexAction.java 
Log Message:
can display several error messages instead of just one

Index: IndexAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/IndexAction.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- IndexAction.java	17 Sep 2009 17:29:37 -0000	1.18
+++ IndexAction.java	21 Sep 2009 15:46:50 -0000	1.19
@@ -59,8 +59,11 @@
 			
 		}
 		
-		if (req.getAttribute("unicorn_message") != null)
-			messages.add((Message) req.getAttribute("unicorn_message"));
+		if (req.getAttribute("unicorn_messages") != null) {
+			ArrayList<?> ucnMessages = (ArrayList<?>) req.getAttribute("unicorn_messages");
+			for (Object mess : ucnMessages)
+				messages.add((Message) mess);
+		}
 		
 		velocityContext = new VelocityContext(Language.getContext(lang));
 		velocityContext.put("queryString", queryString);
Received on Monday, 21 September 2009 15:47:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT