Return-Path: Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: (qmail 19642 invoked from network); 1 Mar 2007 14:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 14:45:54 -0000 Received: (qmail 32500 invoked by uid 500); 1 Mar 2007 14:45:58 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 32487 invoked by uid 500); 1 Mar 2007 14:45:58 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 32478 invoked by uid 99); 1 Mar 2007 14:45:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 06:45:58 -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 hlship@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 06:45:46 -0800 Received: by ug-out-1314.google.com with SMTP id p37so420554ugc for ; Thu, 01 Mar 2007 06:45:25 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=D96+ug65E5xLEb/bUvaCnCKCC8MLc8C7o8rvgO6EbcaEixIF0VvsesB4UvdteZPri2FGlB79GCFoPsibGXFEi6WGBTtBoPSHyLnQV9JFoM8oaCeeEoGqzSsAyhkX8ZCPM31iLHSNrHYx1rIEPOSu1BrP/YYk/LzAx7q16kEZ62Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bpSUtTm/tObaoX1RvBaUaFxNgJTxZpzeX3ney1ThAT250/bQEovxTHETpdA6N8WW+G1oevqNekhcGBUL3hd110jmQrlHmmhGsm1BVWYdseTpKW8y4Sdsx6z4uu3/KAgHAghjc0MJNWjrHTVF/HuWvtQjHqv2ZcG64b80MxcFy+U= Received: by 10.78.185.7 with SMTP id i7mr158097huf.1172760325590; Thu, 01 Mar 2007 06:45:25 -0800 (PST) Received: by 10.78.121.15 with HTTP; Thu, 1 Mar 2007 06:45:25 -0800 (PST) Message-ID: Date: Thu, 1 Mar 2007 06:45:25 -0800 From: "Howard Lewis Ship" To: "Tapestry users" Subject: Re: [WARNING] T5 validation In-Reply-To: <9245715.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9240017.post@talk.nabble.com> <9245715.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org You didn't supply a component id, so Tapestry did; your id is "beaneditform" (matching the type of the component, converted to lower case). BeanEditForm is not a Form, but does own one; it includes a getForm() accessor. So: @Component private BeanEditForm _beanEditForm; // Case just doesn't matter to Tapestry! _beanEditForm.getForm().recordError(" . . . "); On 3/1/07, Terry wrote: > > That's what I thought, but when I tried it previously, I just got an > exception: > > "Start does not contain an embedded component with id 'form'." > > If I look at the source of the page that is generated without the > @Component, I see a form with id=form, so I don't know what is missing. > > My page design was lifted directly from the screencast: > > > > Start Page > > >

Registration

>

Just one little form to fill in:

>
> > > > > >
> >

> [ refresh ] >

> > > > > > Howard Lewis Ship wrote: > > > > @Component > > private Form _form; > > > > > > This defines the type of the component with an id of "form" as being > > an instance of the Form component. Further, you can access the form to > > record errors into it. > > > > > > -- > View this message in context: http://www.nabble.com/T5-validation-tf3323698.html#a9245715 > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org > For additional commands, e-mail: users-help@tapestry.apache.org > > -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org