Code: Select all
<span class="ui-float-label">
<p:selectOneMenu id="mansionePrincipale" value="#{operatoreMB.operatoreSelected.mansione}">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems var="mansione" value="#{operatoreMB.mansioniPrincipali}" itemLabel="#{mansione.label}" itemValue="#{mansione.value}"/>
</p:selectOneMenu>
<p:outputLabel for="@previous" value="#{i18n['operatori.mansione.principale']}"/>
</span>
A workaround is to to create two empty selectItem but it's not a good solution.
Thank you