Apache » Cocoon »

The Apache Cocoon Project

# Cocoon Forms 1.0

- Cocoon 2.2
- Core 2.2
- Blocks 2.2
- Maven Plugins 2.2
- Subprojects

# Template Generator

# Concept

An implementation of the CForms template elements using macros for the JXTemplate generator.

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.

# Usage

Simply include the following jx statement into your template file:

    <jx:import uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>

Note: If you were using the forms template transformer before, you should remove it from the pipeline.
Errors and Improvements? If you see any errors or potential improvements in this document please help us: View, Edit or comment on the latest development version (registration required).