selectOneMenu: Value will not be set
I've got a dropdown menu, which gets the persons from our LDAP server. What I basically did was copying the SelectOneMenuDemo from the Demo files.
However, it's displaying all persons correctly in the dropdown, but it won't set the selected person to my *data.manager*.
This is the code from the demo:
> <p:selectOneMenu value="#{data.selectedPerson}" converter="ivy.ListItem" >
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItems value="#{data.persons}" var="it" itemValue="#{it}" itemLabel="#{it.name}"></f:selectItems>
<f:selectItems value="#{data.morePersons}" var="it" itemValue="#{it}" itemLabel="#{it.name}"></f:selectItems>
<f:selectItem itemValue="#{data.onePerson}" itemLabel="#{data.onePerson.name}" ></f:selectItem>
</p:selectOneMenu>
And this is what I wrote:
> <p:selectOneMenu id="manager" value="{data.manager}" converter="ivy.ListItem" style="width: 200px;">
<f:selectItems value="#{data.managers}" var="it" itemValue="#{it}" itemLabel="#{it.cn}"></f:selectItems>
<p:ajax event="change" listener="#{logic.someMethod}" update="manager" />
</p:selectOneMenu>
Is there something I've forgotten? This looks exactly the same? same to me. Do I have to do something when I submit? I've got a multiview HTML dialog.