Author: abelevich
Date: 2009-07-06 14:29:23 -0400 (Mon, 06 Jul 2009)
New Revision: 14799
Modified:
branches/community/3.3.X/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
RF-6057
Modified:
branches/community/3.3.X/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
---
branches/community/3.3.X/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2009-07-06
17:47:27 UTC (rev 14798)
+++
branches/community/3.3.X/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2009-07-06
18:29:23 UTC (rev 14799)
@@ -95,6 +95,9 @@
List<SelectItem> selectItems = SelectUtils.getSelectItems(context, component);
for (SelectItem selectItem : selectItems) {
String convertedValue = getConvertedStringValue(context, component,
selectItem.getValue());
+ if("".equals(convertedValue)) {
+ convertedValue = "\u00A0";
+ }
values.add(convertedValue);
}
}
Modified:
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
---
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2009-07-06
17:47:27 UTC (rev 14798)
+++
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2009-07-06
18:29:23 UTC (rev 14799)
@@ -365,6 +365,7 @@
}
var value = jQuery(this.comboList.activeItem).text();
+ value = value.replace(/\xA0/g," ").strip();
if(this.comboValue.value && (this.comboValue.value != value)) {
Richfaces.invokeEvent(this.onchange, this.combobox, "onchange",
{value:value});
Show replies by date