cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r676331 - /cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/expression/JexlLanguageInterpreter.java
Date Sun, 13 Jul 2008 14:23:07 GMT
Author: reinhard
Date: Sun Jul 13 07:23:07 2008
New Revision: 676331

URL: http://svn.apache.org/viewvc?rev=676331&view=rev
Log:
after using Map<String, Object> as container for passing objects from the controller
to the view layer, putAll can be used here

Modified:
    cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/expression/JexlLanguageInterpreter.java

Modified: cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/expression/JexlLanguageInterpreter.java
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/expression/JexlLanguageInterpreter.java?rev=676331&r1=676330&r2=676331&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/expression/JexlLanguageInterpreter.java
(original)
+++ cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/expression/JexlLanguageInterpreter.java
Sun Jul 13 07:23:07 2008
@@ -35,9 +35,7 @@
         try {
             Expression e = ExpressionFactory.createExpression(expression);
             JexlContext jc = JexlHelper.createContext();
-            for (String key : objectModel.getModel().keySet()) {
-                jc.getVars().put(key, objectModel.getModel().get(key));
-            }
+            jc.getVars().putAll(objectModel.getParameters());
 
             o = e.evaluate(jc);
         } catch (Exception e1) {



Mime
View raw message