A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/750.html
Document ID: 750
Branch: main
Language: default
Name: Ajax (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 11/7/05 9:31:04 AM
Updated by: Bertrand Delacretaz
A new version has been created, state: publish
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 11881 bytes (previous version: 11916 bytes)
Content diff:
(42 equal lines skipped)
pipeline must ust the JXTemplate generator and use jx-macros.xml:</p>
<pre><html xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
--- xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+++ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
--- <!-- Import the macros that define CForms template elements -->
--- <jx:import
uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>
+++ <!-- Import the macros that define CForms template elements -->
+++ <jx:import
uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>
<body>
<ft:form-template action="continue" method="POST" ajax="true">
...
(160 equal lines skipped)
<pre><map:match pattern="viewform-*">
<map:generate type="jx" src="pages/{1}.xml"/>
--- <strong> <map:transform type="browser-update"/>
--- </strong> <map:transform type="i18n"/>
--- <map:transform src="resources/forms-styling.xsl"/>
--- <map:transform type="i18n">
--- <strong> <map:select type="ajax-request">
--- <map:when test="true">
--- <map:serialize type="xml"/>
--- </map:when>
--- <map:otherwise>
--- <map:serialize type="html"/>
--- </map:otherwise>
--- </map:select>
+++ <strong> <map:transform type="browser-update"/>
+++ </strong> <map:transform type="i18n"/>
+++ <map:transform src="resources/forms-styling.xsl"/>
+++ <map:transform type="i18n">
+++ <strong> <map:select type="ajax-request">
+++ <map:when test="true">
+++ <map:serialize type="xml"/>
+++ </map:when>
+++ <map:otherwise>
+++ <map:serialize type="html"/>
+++ </map:otherwise>
+++ </map:select>
</strong></map:match></pre>
<p>Things to notice in this pipeline:</p>
<ul>
--- <li>the JXTemplage generator is used. Ajax is not yet implemented in the
+++ <li>the JXTemplate generator is used. Ajax is not yet implemented in the
FormsTransformer</li>
<li>the "browser-update" transformer filters the result of the template, so
that
only updated widgets are sent back to the browser</li>
(43 equal lines skipped)
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes