Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 4179 invoked from network); 20 Dec 2006 10:34:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2006 10:34:10 -0000 Received: (qmail 91100 invoked by uid 500); 20 Dec 2006 10:34:12 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 91044 invoked by uid 500); 20 Dec 2006 10:34:12 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 91033 invoked by uid 99); 20 Dec 2006 10:34:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 02:34:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of remmerie@gmail.com designates 64.233.184.228 as permitted sender) Received: from [64.233.184.228] (HELO wr-out-0506.google.com) (64.233.184.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 02:34:02 -0800 Received: by wr-out-0506.google.com with SMTP id i31so889188wra for ; Wed, 20 Dec 2006 02:33:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mLVx5R+qOHf0/ZmIatlO4zTV1LvtgJ6/r/Ro/8JTs842cDntsX3bB06GdeIzkQYAbIVZ2Ri2k5xTyv59drMTMhmFalDXDcWaLUw+JoTcys87SI3L8GjocQjnW9/Ewsb50ZwtvEoF03QVV3ZZtmPXdY25Tudl+GxbtoeZ4kKn6G0= Received: by 10.78.166.7 with SMTP id o7mr4838868hue.1166610820775; Wed, 20 Dec 2006 02:33:40 -0800 (PST) Received: by 10.78.205.11 with HTTP; Wed, 20 Dec 2006 02:33:40 -0800 (PST) Message-ID: <9baa770d0612200233r6bd025e0o149fdc93433d9190@mail.gmail.com> Date: Wed, 20 Dec 2006 11:33:40 +0100 From: "bart remmerie" To: users@cocoon.apache.org Subject: Re: validation In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4587AFA5.3000102@hippo.nl> X-Virus-Checked: Checked by ClamAV on apache.org Dear Roel, In your form-definition, you can declare whether or not a field is required: (See http://cocoon.apache.org/2.1/userdocs/widgets/widget_field.html) When a field has required="true", a message is displayed when the field is not filled out (on form-submit) (when using standard validation). Next to that, fields that have the required="true" attribute, are marked and a ! appears displaying the validation error (after attempted submission) Bart 2006/12/19, Roel Croonenberghs : > > Hello, > > I'm using cocoon widgets. I have a form with different widgets. Some are > required, not all. How can I show one message if one of the required widgets > is not filled in? > > tnx > > Roel -- Bart Remmerie --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org