You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2005/10/13 12:42:36 UTC
svn commit: r320714 - /lenya/trunk/src/webapp/lenya/usecases/usecase.xmap
Author: thorsten
Date: Thu Oct 13 03:42:30 2005
New Revision: 320714
URL: http://svn.apache.org/viewcvs?rev=320714&view=rev
Log:
Add support for Ajax with CForms.
Bugfix: Bug 37068. Submitted by Felix Röthenbacher. Thx Felix.
Modified:
lenya/trunk/src/webapp/lenya/usecases/usecase.xmap
Modified: lenya/trunk/src/webapp/lenya/usecases/usecase.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/usecase.xmap?rev=320714&r1=320713&r2=320714&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/usecase.xmap (original)
+++ lenya/trunk/src/webapp/lenya/usecases/usecase.xmap Thu Oct 13 03:42:30 2005
@@ -22,6 +22,12 @@
-->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <map:components>
+ <map:transformers default="xslt">
+ <map:transformer name="browser-update" src="org.apache.cocoon.ajax.BrowserUpdateTransformer"/>
+ </map:transformers>
+ </map:components>
<!-- =========================== FlowScript =============================== -->
@@ -48,6 +54,7 @@
<map:match pattern="view/*/**" internal-only="true">
<map:generate type="jx" src="fallback://lenya/{2}"/>
+ <map:transform type="browser-update"/>
<map:transform type="cinclude"/>
<map:transform type="forms" />
<map:transform type="i18n">
@@ -63,9 +70,18 @@
<map:match pattern="view/menu/**">
<map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{page-envelope:area}/default.xml"/>
</map:match>
- <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
- <map:serialize type="xhtml"/>
- </map:match>
+ <map:select type="request-parameter">
+ <map:parameter name="parameter-name" value="cocoon-ajax"/>
+ <map:when test="true">
+ <map:serialize type="xml"/>
+ </map:when>
+ <map:otherwise>
+ <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
+ <map:serialize type="xhtml"/>
+ </map:otherwise>
+ </map:select>
+
+ </map:match>
</map:pipeline>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org