Dropdown validator does not fire if the selected value is a blank string
I have created a <ui:dropdown> like this:
<ui:dropDown binding="#{myPage.default}" id="default"
items="#{myPage.selectionList}"
validator="#{myPage.validateDropdownSelection}"
valueChangeListener="#{myPage.processValueChange}"/>
My intention was to create a mechanism where I create a list of valid selections from the database and append a "[ Select Value]" type tag with a blank string value as the first element in the Option[]. Something like this:
new Option[]{
new Option("","[ Select Value ]" ),
new Option("valueA","Value A" ),
new Option("valueB","Value B" )
};
My custom validator checks to make sure that that a valid selection has been made, e.g. not the initial blank string-valued tag. This validator works normally for all cases except for when I choose the initial blank string value. In that case the validator never fires, so my validator is effectively useless in safeguarding against this blank string as a selection.
So, to sum up my problem, the validator from a <ui:dropdown> does not appear to fire in the case where the new selection is a blank string.
Thanks.

