I must use rich:combobox to display a combo.
In some cases I must add an empty comboboxItem = new SelectItem("","").
This goes very well on IE8, Chrome, Safari.
It write with FF and Opera.
Looking at the richfaces code I see the class ComboBoxBaseRenderer, method getItems with a strange piece of code:
if("".equals(convertedValue)) {
convertedValue = "\u00A0";
}
seems FF and Opera see \u00A0 as a real blank char and translate it into a blank space.
How could be solved this?
From a JavaScript point of view Opera and Firefox are right here.
White space defined by ECMAScript 5.1, section 7.2
White space defined by HTML 4 (Deprecated)
Spaces characters defined by HTML5