From xap-commits-return-1596-apmail-incubator-xap-commits-archive=incubator.apache.org@incubator.apache.org Tue Oct 23 07:04:45 2007 Return-Path: Delivered-To: apmail-incubator-xap-commits-archive@locus.apache.org Received: (qmail 42749 invoked from network); 23 Oct 2007 07:04:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2007 07:04:45 -0000 Received: (qmail 42969 invoked by uid 500); 23 Oct 2007 07:04:32 -0000 Delivered-To: apmail-incubator-xap-commits-archive@incubator.apache.org Received: (qmail 42949 invoked by uid 500); 23 Oct 2007 07:04:32 -0000 Mailing-List: contact xap-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xap-dev@incubator.apache.org Delivered-To: mailing list xap-commits@incubator.apache.org Received: (qmail 42940 invoked by uid 99); 23 Oct 2007 07:04:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 00:04:32 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 07:04:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 981EB1A9832; Tue, 23 Oct 2007 00:04:24 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r587405 - /incubator/xap/trunk/codebase/src/xap/bridges/xap/ListItemBridge.js Date: Tue, 23 Oct 2007 07:04:24 -0000 To: xap-commits@incubator.apache.org From: jmargaris@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071023070424.981EB1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jmargaris Date: Tue Oct 23 00:04:23 2007 New Revision: 587405 URL: http://svn.apache.org/viewvc?rev=587405&view=rev Log: calling revalue on selection Modified: incubator/xap/trunk/codebase/src/xap/bridges/xap/ListItemBridge.js Modified: incubator/xap/trunk/codebase/src/xap/bridges/xap/ListItemBridge.js URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/xap/ListItemBridge.js?rev=587405&r1=587404&r2=587405&view=diff ============================================================================== --- incubator/xap/trunk/codebase/src/xap/bridges/xap/ListItemBridge.js (original) +++ incubator/xap/trunk/codebase/src/xap/bridges/xap/ListItemBridge.js Tue Oct 23 00:04:23 2007 @@ -42,9 +42,15 @@ xap.bridges.xap.ListItemBridge.prototype.setSelectedAttribute = function(value) { - //if they select/deselect something on the fly we need to - //revalue the comboBox/listBox this.getPeer().setSelected(value=='true'?true:false); + + //make sure text/value is updated in listbox/combobox + var parentElement = this.getElement().parentNode; + var parentHandler = this.getSession().getUiDocumentHandler().getHandlerForElement(parentElement); + if (parentHandler && parentHandler.revalue){ + parentHandler.revalue(); + } + } xap.bridges.xap.ListItemBridge.prototype.setTextAttribute = function(value) {