Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 26695 invoked from network); 8 Apr 2008 23:54:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Apr 2008 23:54:13 -0000 Received: (qmail 89840 invoked by uid 500); 8 Apr 2008 23:54:10 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 89808 invoked by uid 500); 8 Apr 2008 23:54:10 -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 89797 invoked by uid 99); 8 Apr 2008 23:54:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 16:54:10 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 23:53:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JjNd9-0000Os-R5 for users@myfaces.apache.org; Tue, 08 Apr 2008 16:53:35 -0700 Message-ID: <16576527.post@talk.nabble.com> Date: Tue, 8 Apr 2008 16:53:35 -0700 (PDT) From: jnl1 To: users@myfaces.apache.org Subject: Re: af:selectOneChoice In-Reply-To: <11f14d500804081627v4fc86a64v1329b1fcdc1f9e6a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: itsJim01@yahoo.com References: <16572647.post@talk.nabble.com> <11f14d500804081627v4fc86a64v1329b1fcdc1f9e6a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I set the backing bean. it's in a row element and if I just output the value, it's displayed correctly. thanks on the feedback...i'll try posting to the oracle forums to see if they can help out... Richard Yee-3 wrote: > > You don't want to have this in your tag (value="1") This will hardcode the > value returned by the component to be 1. You should have an EL expression > in > the value attribute to refer to a property in your backing bean. If you > are > trying to preselect an item in your list, then you should set the backing > bean attribute for the SelectOneChoice to that value. > > -R > > > > On 4/8/08, jnl1 wrote: >> >> >> hi all.. >> >> I'm new to faces and having a little trouble setting a value in a list. >> The list is part of an editable table. The table displays fine and I >> have >> an af:inputText that is being populated fine as well. I have 2 >> selectOneChoice dropdowns and neither is getting set. Below is one of >> the >> selectOneChoice elements. I hardcoded the 'value' attribute while >> debugging. The 'value' should be set to value="#{row.groupId}". Both >> scenarios are not working. If I use just > value="#{row.status}"> the value is displayed correctly. >> >> Below is my code: >> >> xmlns:af="http://xmlns.oracle.com/adf/faces" >> >> >> >> >> >> > id="existingStandardGroupId" >> value="1" >> required="false" >> label="#{messages['group.id']}:" >> readOnly="false" unselectedLabel=""> >> >> > value="#{criteriaGroupIdBackingList}" >> /> >> >> >> >> >> >> The source html: >> >> >> >> >>