Added: cocoon/site/site/2.1/userdocs/publishing/templating/templategenerator.html URL: http://svn.apache.org/viewcvs/cocoon/site/site/2.1/userdocs/publishing/templating/templategenerator.html?rev=345438&view=auto ============================================================================== --- cocoon/site/site/2.1/userdocs/publishing/templating/templategenerator.html (added) +++ cocoon/site/site/2.1/userdocs/publishing/templating/templategenerator.html Thu Nov 17 20:00:02 2005 @@ -0,0 +1,1278 @@ + + + + + + + +Template Generator + + + + + + + + + +
+ +
+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.
+
+ +
+
+ +
 
+
+ + + Propchange: cocoon/site/site/2.1/userdocs/publishing/templating/templategenerator.html ------------------------------------------------------------------------------ svn:eol-style = native