Under 5.1 the handling of a selectItem with a null or empty itemValue seems to be handled differently than in previous versions (?)
What is happening:
With 5.1 a selectItem with an itemValue = null or blank is now being sent to the converter with a value = itemLabel.
Previously, this would happen when not including an itemValue, but an empty string "" or a "#{null}" would not fire the converter and the bound value would be set to null.
Code: Select all
<p:selectOneMenu id="competitor" value="#{customerController.selected.competitorId}" converter="competitorConverter" required="false">
<f:selectItem itemLabel="Select a Competitor" itemValue="" />
<f:selectItems value="#{competitorController.activeItems}" var="competitor" itemLabel="#{competitor.name}" itemValue="#{competitor}"/>
</p:selectOneMenu>
I searched the forums and didn't find anything, is anyone else experiencing this?
I'm not sure if this is a bug, or a change in direction...(or I'm totally missing something)?