Author: abelevich
Date: 2008-03-18 13:44:14 -0400 (Tue, 18 Mar 2008)
New Revision: 6926
Modified:
trunk/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java
trunk/ui/combobox/src/main/templates/combobox.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2565
Modified: trunk/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java
===================================================================
--- trunk/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java 2008-03-18
17:24:09 UTC (rev 6925)
+++ trunk/ui/combobox/src/main/java/org/richfaces/component/UIComboBox.java 2008-03-18
17:44:14 UTC (rev 6926)
@@ -18,7 +18,7 @@
public abstract void setSuggestionValues(Object value);
public abstract String getDefaultLabel();
public abstract void setDefaultLabel(String label);
-
-
-
+ public abstract boolean isEnableManualInput();
+ public abstract void setEnableManualInput(boolean enableManualInput);
+
}
\ No newline at end of file
Modified: trunk/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/ui/combobox/src/main/templates/combobox.jspx 2008-03-18 17:24:09 UTC (rev 6925)
+++ trunk/ui/combobox/src/main/templates/combobox.jspx 2008-03-18 17:44:14 UTC (rev 6926)
@@ -188,6 +188,8 @@
buttonIconInactive = "url('" + buttonIconInactive +
"')";
}
variables.setVariable("buttonIconInactive", buttonIconInactive);
+ variables.setVariable("enableManualInput",
component.isEnableManualInput());
+
]]>
</jsp:scriptlet>
@@ -203,7 +205,8 @@
disabled="#{disabled}"
class="#{valueStyle} rich-combobox-input-inactive
#{inputDisabledClass}" type="text"
value="#{value}"
- size="#{inputSize}"
+ size="#{inputSize}"
+ readonly="#{enableManualInput}"
onchange="#{component.attributes['onchange']}"
onselect="#{component.attributes['onselect']}"
onblur="#{component.attributes['onblur']}"