|
|
Choosing A Webhost: |
svn commit: r320714 - /lenya/trunk/src/webapp/lenya/usecases/usecase.xmap: msg#00047cms.lenya.cvs
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>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |