Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 88889 invoked from network); 25 Oct 2004 15:29:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Oct 2004 15:29:24 -0000 Received: (qmail 39143 invoked by uid 500); 25 Oct 2004 15:28:39 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 38994 invoked by uid 500); 25 Oct 2004 15:28:37 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 38832 invoked by uid 99); 25 Oct 2004 15:28:35 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,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.28) with SMTP; Mon, 25 Oct 2004 08:28:34 -0700 Received: (qmail 88205 invoked from network); 25 Oct 2004 15:28:32 -0000 Received: from unknown (HELO minotaur.apache.org) (127.0.0.1) by 127.0.0.1 with SMTP; 25 Oct 2004 15:28:32 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: docs@cocoon.apache.org To: docs@cocoon.apache.org Subject: =?iso-8859-1?q?=5BCocoon_Wiki=5D_Updated=3A__WoodyCopletForPortalEngine?= Date: Mon, 25 Oct 2004 15:28:32 -0000 Message-ID: <20041025152832.88188.27659@minotaur.apache.org> X-Spam-Rating: 127.0.0.1 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-10-25T08:28:32 Editor: VladTanasescu Wiki: Cocoon Wiki Page: WoodyCopletForPortalEngine URL: http://wiki.apache.org/cocoon/WoodyCopletForPortalEngine Warning about complete html pages for coplets Change Log: ---------------------------------------------------------------------------= --- @@ -6,17 +6,17 @@ [[BR]] '''Step 1:''' The first step is to modify one existing coplet to use a woo= dy form. Edit the {{{portal/layout/copletdata/portal.xml}}} file and change the val= ue of the uri of the Portal-Demo with {{{cocoon://samples/woody/registratio= n}}}.[[BR]] -{{{ -... - - ... - - cocoon://samples/woody/registration - - ... - -... +{{{ +... + + ... + + cocoon://samples/woody/registration + + ... + +... }}} Log into the portal as guest/guest and in the main tab instead of the intr= oduction coplet, you will ses the woody form.[[BR]] Now the problem is that the !KontId isn't handling. It's always the same u= ri called for this coplet. The simplest trick will be to put the KontID in = an hidden filed and change the woody sitemap to handle it.[[BR]] @@ -24,26 +24,26 @@ '''Step 2:''' Add the continuation hidden field. Edit the {{{woody/forms/r= egistration_template.xml}}} and add after {{{wt:form-template}}} the tag {{{}}} Then set the form action to an empty string, because we want use the porta= l page, not just the form. Your file should look like[[BR]] -{{{ - - - -... +{{{ + + + +... }}} [[BR]] '''Step 3:''' Configure the sitemap to handle the continuation. we gonna s= witch the pipeline based on the request method. Edit the woody/sitemap.xmap and replace the match pattern registration wit= h[[BR]] -{{{ - - - - - - - - - +{{{ + + + + + + + + + }}} That's all. Right now you can enjoy the woody inside a Coplet.[[BR]] [[BR]] @@ -65,10 +65,23 @@ [[BR]] '''However''': your form must specify an {{{action}}}, i.e. page that it s= ubmits to. The normal behaviour of a form with no {{{action}}} is that it = submits back to itself, but this won't work with the Application coplet ada= ptor. This is so that the coplet adaptor can change the value of {{{action= }}} so it can make sure that the rest of your portal loads around your copl= et when you submit your form.[[BR]] e.g. -{{{ -
- -
+{{{ +
+ +
}}} [[BR]] JonEvans + +[[BR]] +'''Beware!''': your form must be a valid html page in order to be accepted= by a coplet. The {{{forms-samples-styling.xsl}}} stylesheet of the distrib= ution formats a form in this way:[[BR]] +{{{ +
+ +
+}}} +[[BR]] +You have to modify the stylesheet in order to add the {{{html}}} and {{{he= ad}}} and {{{body}}} tags if you want your form to appear in a coplet. +[[BR]] +VladTanasescu +