You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2005/09/15 14:34:09 UTC

[DAISY] Updated: Cocoon Forms: A Simple Example

A document has been updated:

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

Document ID: 478
Branch: main
Language: default
Name: Cocoon Forms: A Simple Example (unchanged)
Document Type: Document (unchanged)
Updated on: 9/15/05 12:33:56 PM
Updated by: Ross Gardler

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 10430 bytes (previous version: 9446 bytes)
Content diff:
(249 equal lines skipped)
      </body>
    &lt;/html&gt;</pre>
    
+++ <h2>I18n Messages</h2>
+++ 
+++ <p>Note that the above <tt>registration-display-pipeline</tt> pipeline uses the
+++ I18n transformer. This enables you to customise the messages generated by the
+++ form transformer. You will need to ensure that your I18n transformer is
+++ correctly configured to find these messages. For example:</p>
+++ 
+++ <pre>&lt;map:transformer name="i18n"
+++   src="org.apache.cocoon.transformation.I18nTransformer"&gt;
+++   &lt;catalogues default="other"&gt;
+++     &lt;catalogue id="other" name="OtherMessages"
+++       location="messages" /&gt;
+++     &lt;catalogue id="forms" name="FormsMessages"
+++       location="messages" /&gt;
+++     &lt;/catalogues&gt;
+++   &lt;cache-at-startup&gt;true&lt;/cache-at-startup&gt;
+++ &lt;/map:transformer&gt;</pre>
+++ 
+++ <p>You will also need to ensure that the indicated catalogues are available
+++ within your webapp. You can find these catalogues in the
+++ <a href="http://svn.apache.org/viewcvs.cgi/cocoon/blocks/forms/trunk/samples/">samples
+++ directory Forms block</a>.</p>
+++ 
    <h1>Next steps</h1>
    
    <p>The example we've studied here is quite simple. To have a feel for the power
(4 equal lines skipped)


Fields
======
no changes

Links
=====
no changes

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

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