Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 63598 invoked from network); 31 Oct 2006 23:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2006 23:45:54 -0000 Received: (qmail 28182 invoked by uid 500); 31 Oct 2006 23:46:05 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 27205 invoked by uid 500); 31 Oct 2006 23:46:02 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 27194 invoked by uid 99); 31 Oct 2006 23:46:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 15:46:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [203.109.151.109] (HELO email.rhe.co.nz) (203.109.151.109) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 15:45:50 -0800 Received: from [192.168.50.47] ([203.109.151.126]) by email.rhe.co.nz (Lotus Domino Release 7.0.1) with ESMTP id 2006110112452486-195815 ; Wed, 1 Nov 2006 12:45:24 +1300 Message-ID: <4547DFDE.4060808@rhe.co.nz> Date: Wed, 01 Nov 2006 12:44:30 +1300 From: Simon Kitching User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: question about BackingBeans and POJO's References: <4c30ee7d0610311537o44826c4fk4737132b6af959da@mail.gmail.com> In-Reply-To: <4c30ee7d0610311537o44826c4fk4737132b6af959da@mail.gmail.com> X-MIMETrack: Itemize by SMTP Server on RHEDomino2/RHE(Release 7.0.1|January 17, 2006) at 01/11/2006 12:45:24 p.m., Serialize by Router on RHEDomino2/RHE(Release 7.0.1|January 17, 2006) at 01/11/2006 12:45:46 p.m., Serialize complete at 01/11/2006 12:45:46 p.m. Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org Mick Knutson wrote: > I am looking for a best practices for creating BackingBeans with sub > objects. > > Such as, I want a UserBackingBean that has a User associated with it. > > > But I have done that, but use: > > > value="#{UserBackingBean.user.firstName}"> > maximum="25" /> > > The class that UserBackingBean refers to needs to define a method User getUser() The User class needs to define String getFirstName() Everything should then work fine. This is all standard JavaBeans conventions. Regards, Simon