Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 35384 invoked from network); 4 Jun 2008 18:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2008 18:18:13 -0000 Received: (qmail 51497 invoked by uid 500); 4 Jun 2008 18:18:11 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 51449 invoked by uid 500); 4 Jun 2008 18:18:11 -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 51438 invoked by uid 99); 4 Jun 2008 18:18:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 11:18:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andrew.rw.robinson@gmail.com designates 209.85.162.176 as permitted sender) Received: from [209.85.162.176] (HELO el-out-1112.google.com) (209.85.162.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 18:17:22 +0000 Received: by el-out-1112.google.com with SMTP id v27so108756ele.22 for ; Wed, 04 Jun 2008 11:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=5r9RNdnwoTOk02N62GUsbFIRQ925YtGbZMzxFOXUE3U=; b=IEGWXoJBJbGyO4VrOjQYxLmARax2IL5Lo65vCX7z2ICqhZM3icBt6fr2wApZjr/VdL LfRd7yfSdq5Mf6uVonLROMXzVXmmDzbzOB9fBSNR0rEM0ykjv8Uj9DgoFiJMGZjVkKhO fVBwDc5rKI/AUIMhWSzJmMhBfuIxA4N44kSD4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=BE84qIQGCE3KQcUxeewUC4akiec/wafuSKnUgexuBhh1MwhzPQSPyEEIcjAsTAkDuK ixlTg8eRJzRaQT4E11LVP6m/cImNRuF4swDTdS+LbucvPTtyPA/tNQQ3UlBQlqUsu50M 0z+aNYhRAT0A/TeWqX5Vv85BXNnxMVRkq9DrU= Received: by 10.143.40.18 with SMTP id s18mr92887wfj.156.1212603458185; Wed, 04 Jun 2008 11:17:38 -0700 (PDT) Received: by 10.142.163.7 with HTTP; Wed, 4 Jun 2008 11:17:38 -0700 (PDT) Message-ID: Date: Wed, 4 Jun 2008 12:17:38 -0600 From: "Andrew Robinson" To: "MyFaces Discussion" Subject: Re: Tying a JSF control to a dynamic list element in backing bean In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Your EL was invalid On Wed, Jun 4, 2008 at 9:16 AM, Malik, Usman wrote: > Hi All, > > I am trying to put a bunch of user input controls on a web page dynamical= ly > using tr:iterator =85 and then tie each control to an element of a dynami= c > list in my backing bean so I can access to the user input from the bean. > What I want to know is whether it is even possible to set value for a > specific list element from the JSP page? I can't figure out what kind of = a > getter/setter method my dynamic list needs to have. > > Here is the JSP code snippet that I am thinking of =85 > > > > > > The above inputText binding should translate into "myBean.myDynamicList[0= ]", > at least that's what I think should happen. However, for this to work, I > would need to have a getter/setter method for each element of myDynamicLi= st > in the backing bean. Since myDynamicList is supposed to be dynamic (its s= ize > can change from one request to another), I don't know the number of eleme= nts > in it and therefore I cannot hard-code the getter/setter methods. Any > suggestions or comments would be greatly appreciated. > > Thanks! > > Usman Malik > > ________________________________ > NOTE: The information in this email may be confidential and legally > privileged. If you are not the intended recipient, you must not read, use= or > disseminate the information; please advise the sender immediately by repl= y > email and delete this message and any attachments without retaining a cop= y. > Although this email and any attachments are believed to be free of any vi= rus > or other defect that may affect any computer system into which it is > received and opened, it is the responsibility of the recipient to ensure > that it is virus free and no responsibility is accepted by RGIS, LLC for = any > loss or damage arising in any way from its use.