incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r587405 - /incubator/xap/trunk/codebase/src/xap/bridges/xap/ListItemBridge.js
Date Tue, 23 Oct 2007 07:04:24 GMT
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) {



Mime
View raw message