From cvs-return-25574-apmail-cocoon-cvs-archive=cocoon.apache.org@cocoon.apache.org Fri Nov 18 04:32:09 2005 Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 49135 invoked from network); 18 Nov 2005 04:32:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Nov 2005 04:32:06 -0000 Received: (qmail 49693 invoked by uid 500); 18 Nov 2005 04:25:47 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 45833 invoked by uid 500); 18 Nov 2005 04:24:54 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 40431 invoked by uid 99); 18 Nov 2005 04:23:34 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 Nov 2005 20:22:47 -0800 Received: (qmail 8149 invoked by uid 65534); 18 Nov 2005 04:15:45 -0000 Message-ID: <20051118041545.8148.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r345438 [209/286] - in /cocoon/site/site/2.1: ./ developing/ developing/portal/ developing/portal/coplets/ developing/webapps/ developing/webapps/authentication/ faq/ howto/ installing/ plan/ plan/documentation/ plan/otherplanning/ plan/ove... Date: Fri, 18 Nov 2005 04:13:22 -0000 To: cvs@cocoon.apache.org From: crossley@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + +
+
+
+
+ +
+ + +
+ +
+ +   +
+ + + + + +
+

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