A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/480.html

Document ID: 480
Branch: main
Language: default
Name: Template Generator (previously Cocoon Forms: Template Generator)
Document Type: Cocoon Document (unchanged)
Updated on: 10/23/05 3:51:40 PM
Updated by: Bruno Dumon

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 896 bytes (previous version: 1101 bytes)
Content diff:
(2 equal lines skipped)
    
    <h1>Concept</h1>
    
--- <p>The same "ft:" tags as provided by the <a href="daisy:475">template
--- transformer</a> are also available as macros for the
--- <a href="daisy:511">JXTemplate</a> generator.</p>
+++ <p>An implementation of the <a href="daisy:755">CForms template elements</a>
+++ using macros for the <a href="daisy:511">JXTemplate</a> generator.</p>
    
--- <p>Before the availability of these macros, the JXTemplate generator was 
already
--- often used in the form publishing pipeline. It makes it possible to 
dynamically
--- include additional data on the form page and to conditionally include parts 
of
--- the page (and thus conditionally show widgets). Moving the interpretation 
of the
--- <tt>ft:</tt> tags directly into generator makes this even more powerful. 
Think
--- of the possibility of not showing a repeater table if the repeater contains 
no
--- rows, and this also for nested repeaters.</p>
+++ <p>Compared to the alternative implementation, the forms transformer, this
+++ JXTemplate-based approach makes it possible to dynamically include 
additional
+++ data on the form page and to conditionally include parts of the page (and 
thus
+++ conditionally show widgets). Think of the possibility of not showing a 
repeater
+++ table if the repeater contains no rows, and this also for nested 
repeaters.</p>
    
    <h1>Usage</h1>
    
--- <p>Simply remove the FormsTemplateTransformer from your publishing 
pipeline, and
--- instead include the following jx statement into your template file:</p>
+++ <p>Simply include the following jx statement into your template file:</p>
    
    <pre>&lt;jx:import 
uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/&gt;</pre>
    
--- <p>Note that these macros only work when calling the pipeline from 
flowscript.
--- </p>
+++ <p class="note">If you were using the forms template transformer before, you
+++ should remove it from the template.</p>
    
    </body>
    </html>


Fields
======
no changes

Links
=====
no changes

Custom Fields
=============
no changes

Collections
===========
no changes