Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 39714 invoked from network); 4 Sep 2007 16:32:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2007 16:32:04 -0000 Received: (qmail 54369 invoked by uid 500); 4 Sep 2007 16:31:54 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 54327 invoked by uid 500); 4 Sep 2007 16:31:54 -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 54316 invoked by uid 99); 4 Sep 2007 16:31:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 09:31:54 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,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, 04 Sep 2007 16:33:05 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ISbJJ-0006Uf-CM for users@myfaces.apache.org; Tue, 04 Sep 2007 09:31:29 -0700 Message-ID: <12481694.post@talk.nabble.com> Date: Tue, 4 Sep 2007 09:31:29 -0700 (PDT) From: Rob99 To: users@myfaces.apache.org Subject: Chosen label from an HtmlSelectOneMenu? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: rob.mcallister@duke.edu X-Virus-Checked: Checked by ClamAV on apache.org Hello, I have bound an "HtmlSelectOneMenu" to my backing bean using "binding=..." on the tag. I can get the chosen "value" easily enough with: HtmlSelectOneMenu m; ... String chosenValue = m.getValue(); Is there any way to get the "label" of the chosen item instead of the "value" from the component? Or is it absolutely necessary to query the model that populated the "HtmlSelectOneMenu" in the first place? -Thank you! -- View this message in context: http://www.nabble.com/Chosen-label-from-an-HtmlSelectOneMenu--tf4378820.html#a12481694 Sent from the MyFaces - Users mailing list archive at Nabble.com.