I have a simple selectOneMenu
<p:selectOneMenu id="signer" value="#{Bean.signer}"
required="true">
<p:ajax event="change" process="@this" update="@this"/>
<f:selectItem itemLabel="choose signer" itemValue="#{null}"/>
<f:selectItems value="#{Bean.signers}" var="signer"
itemLabel="#{signer.fullname}" itemValue="#{signer}"/>
</p:selectOneMenu>
In my case the first selectItem displays message but it doesn't have any value #{null}
.
But I need a label as first item, and set the default value (the first item from list signers)
How I can do this two actions together?