apache > cocoon
 

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.