Author: abelevich
Date: 2008-03-27 16:46:35 -0400 (Thu, 27 Mar 2008)
New Revision: 7339
Modified:
trunk/ui/combobox/src/main/templates/combobox.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2791
Modified: trunk/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/ui/combobox/src/main/templates/combobox.jspx 2008-03-27 20:46:18 UTC (rev 7338)
+++ trunk/ui/combobox/src/main/templates/combobox.jspx 2008-03-27 20:46:35 UTC (rev 7339)
@@ -79,7 +79,11 @@
Boolean selectFirstOnUpdate = (Boolean)
component.getAttributes().get("selectFirstOnUpdate");
variables.setVariable("selectFirstOnUpdate", selectFirstOnUpdate);
- Object value = component.getAttributes().get("value");
+ Object value = component.getSubmittedValue();
+ if (value == null) {
+ value = component.getAttributes().get("value");
+ }
+
String valueStyle = "rich-combobox-font-inactive";
value = getConvertedStringValue(context, component,value);
if (value == null || value.equals("")) {