apache > cocoon

Template Generator


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.


Simply include the following jx statement into your template file:

<jx:import uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>
If you were using the forms template transformer before, you should remove it from the pipeline.