cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r1199796 - /cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap
Date Wed, 09 Nov 2011 15:29:18 GMT
Author: thorsten
Date: Wed Nov  9 15:29:17 2011
New Revision: 1199796

URL: http://svn.apache.org/viewvc?rev=1199796&view=rev
Log:
Fixing parameter call since we now allow objects in the sitemap we need to make sure to request
a string otherwise we will get 

java.lang.ClassCastException: java.util.Locale cannot be cast to java.lang.String
        at org.apache.cocoon.sax.component.I18nTransformer.setup(I18nTransformer.java:787)
        at

Bug and solution reported by Ajay Deshwal.

Modified:
    cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap

Modified: cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap?rev=1199796&r1=1199795&r2=1199796&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap (original)
+++ cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap Wed Nov  9
15:29:17 2011
@@ -437,7 +437,7 @@
       <map:match equals="i18n/localefrombrowser">
         <map:generate src="i18n/base.xml" />
         <map:transform type="i18n">
-          <map:parameter name="locale" value="{jexl:cocoon.request.locale}" />
+          <map:parameter name="locale" value="{jexl:cocoon.request.locale.language}" />
           <map:parameter name="bundle" value="COB-INF/i18n/base" />
         </map:transform>
         <map:serialize type="xml" />



Mime
View raw message