You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/10/23 07:04:24 UTC
svn commit: r587405 -
/incubator/xap/trunk/codebase/src/xap/bridges/xap/ListItemBridge.js
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) {