Using a “Please select” f:selectItem with null/empty value inside a p:selectOneMenu
问题 I\'m populating a <p:selectOneMenu/> from database as follows. <p:selectOneMenu id=\"cmbCountry\" value=\"#{bean.country}\" required=\"true\" converter=\"#{countryConverter}\"> <f:selectItem itemLabel=\"Select\" itemValue=\"#{null}\"/> <f:selectItems var=\"country\" value=\"#{bean.countries}\" itemLabel=\"#{country.countryName}\" itemValue=\"#{country}\"/> <p:ajax update=\"anotherMenu\" listener=/> </p:selectOneMenu> <p:message for=\"cmbCountry\"/> The default selected option, when this page