cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Ajax
Date Mon, 07 Nov 2005 09:31:13 GMT
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>&lt;html xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
---       xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"&gt;
+++       xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"&gt;
    
---   &lt;!-- Import the macros that define CForms template elements --&gt;
---   &lt;jx:import uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/&gt;
+++   &lt;!-- Import the macros that define CForms template elements --&gt;
+++   &lt;jx:import uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/&gt;
      &lt;body&gt;
        &lt;ft:form-template action="continue" method="POST" ajax="true"&gt;
        ...
(160 equal lines skipped)
    
    <pre>&lt;map:match pattern="viewform-*"&gt;
      &lt;map:generate type="jx" src="pages/{1}.xml"/&gt;
--- <strong>  &lt;map:transform type="browser-update"/&gt;
--- </strong>  &lt;map:transform type="i18n"/&gt;
---   &lt;map:transform src="resources/forms-styling.xsl"/&gt;
---   &lt;map:transform type="i18n"&gt;
--- <strong>  &lt;map:select type="ajax-request"&gt;
---     &lt;map:when test="true"&gt;
---       &lt;map:serialize type="xml"/&gt;
---     &lt;/map:when&gt;
---     &lt;map:otherwise&gt;
---       &lt;map:serialize type="html"/&gt;
---     &lt;/map:otherwise&gt;
---   &lt;/map:select&gt;
+++ <strong>  &lt;map:transform type="browser-update"/&gt;
+++ </strong>  &lt;map:transform type="i18n"/&gt;
+++   &lt;map:transform src="resources/forms-styling.xsl"/&gt;
+++   &lt;map:transform type="i18n"&gt;
+++ <strong>  &lt;map:select type="ajax-request"&gt;
+++     &lt;map:when test="true"&gt;
+++       &lt;map:serialize type="xml"/&gt;
+++     &lt;/map:when&gt;
+++     &lt;map:otherwise&gt;
+++       &lt;map:serialize type="html"/&gt;
+++     &lt;/map:otherwise&gt;
+++   &lt;/map:select&gt;
    </strong>&lt;/map:match&gt;</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

Mime
View raw message