[richfaces-svn-commits] JBoss Rich Faces SVN: r5180 - in trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html: scripts and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jan 8 10:03:02 EST 2008


Author: vmolotkov
Date: 2008-01-08 10:03:02 -0500 (Tue, 08 Jan 2008)
New Revision: 5180

Modified:
   trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
   trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
component's style was added

Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss	2008-01-08 14:50:24 UTC (rev 5179)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss	2008-01-08 15:03:02 UTC (rev 5180)
@@ -7,9 +7,18 @@
 <![CDATA[
 
 .rich-combobox-button-disabled {
+
 }
 
 .rich-combobox-field-disabled {
+	position : absolute; 
+	top : 0px; left : 0; 
+	padding-right :20px; 
+	padding-left :3px; 
+	margin : 0px; 
+	border : 1px solid #eeeeee; 
+	background-position:left top;
+	background-repeat:repeat-x; 
 }
 
 .rich-combobox-list {

Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js	2008-01-08 14:50:24 UTC (rev 5179)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js	2008-01-08 15:03:02 UTC (rev 5180)
@@ -69,6 +69,7 @@
 	},
 	
 	fieldHandler : function() {
+		this.doActive();
 		if (this.field.value == this.defaultMessage) {
 			this.field.value = "";
 		} else {
@@ -80,6 +81,7 @@
 		this.setValue(true);
 		
 		this.comboList.hide();
+		this.field.focus();
 	},
 	
 	setValue : function(toSetOnly) {
@@ -128,9 +130,9 @@
 				this.applyDefaultText();
 			}
 			this.comboList.hide();
-			
-			this.button.className = "rich-combobox-button-disabled"; //FIXME
-			this.field.className = "rich-combobox-field-disabled"; //FIXME
+			this.doDisable();
+		} else {
+			this.doActive();
 		}
 	},
 	
@@ -158,6 +160,16 @@
 				this.setValue();
 			}
 		}
+	},
+	
+	doActive : function() {
+		//this.button.className = ""; //FIXME
+		this.field.className = "rich_cb_width rich_cb_font rich_cb_field"; //FIXME
+	},
+	
+	doDisable : function() {
+			//this.button.className = ""; //FIXME
+		this.field.className = "rich_cb_width rich_cb_font rich-combobox-field-disabled"; //FIXME
 	}
 };
 




More information about the richfaces-svn-commits mailing list