[richfaces-svn-commits] JBoss Rich Faces SVN: r281 - trunk/richfaces/inputnumber-slider/src/main/templates.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Apr 5 09:35:08 EDT 2007


Author: pkotikov
Date: 2007-04-05 09:35:08 -0400 (Thu, 05 Apr 2007)
New Revision: 281

Modified:
   trunk/richfaces/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
Log:
https://jira.exadel.com/browse/RFA-336

Modified: trunk/richfaces/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
===================================================================
--- trunk/richfaces/inputnumber-slider/src/main/templates/inputNumberSlider.jspx	2007-04-05 12:56:57 UTC (rev 280)
+++ trunk/richfaces/inputnumber-slider/src/main/templates/inputNumberSlider.jspx	2007-04-05 13:35:08 UTC (rev 281)
@@ -45,9 +45,10 @@
 						boolean showInput = attributeToBoolean(component, "showInput");
 						boolean manualInput = attributeToBoolean(component, "enableManualInput");
 
-						variables.setVariable("inputReadOnly", 
-								new Boolean(!manualInput || disabled));
-	                    if (!manualInput || disabled){
+						variables.setVariable("inputReadOnly",new Boolean(!manualInput));
+						variables.setVariable("inputDisabled",new Boolean(disabled));
+
+						if (!manualInput || disabled){
 							variables.setVariable("color", "color: gray;");	                    	
 	                    }
 	                    else{
@@ -64,6 +65,7 @@
 										class="dr-insldr-field rich-inslider-field #{component.attributes['inputClass']}"						
 										style="#{component.attributes['inputStyle']} #{color}"
 										readonly="#{inputReadOnly}"
+										disabled="#{disabled}"
 										onselect="#{component.attributes['onselect']}"
 										accesskey="#{component.attributes['accesskey']}"
 										size="#{component.attributes['inputSize']}"




More information about the richfaces-svn-commits mailing list