This is my simple PrimeFaces selectOneMenu:
<p:selectOneMenu filter="true" filterMatchMode="contains" value="#{addRequestBean.manager}" converter="omnifaces.SelectItemsConverter" >
<f:selectItems value="#{userBean.userList}" var="var" itemLabel="#{var.surname} #{var.name}" itemValue="#{var}" />
</p:selectOneMenu>
The issue is that I cannot choose the same item twice. When I click first time on item everything is ok. The value in ManageBean is correct. But when a choose again the same item in manageBean get null value.
This is Bean, it is veri simple:
@ManagedBean
@ViewScoped
public class AddRequestBean{
User manager = new User();
public void oknoPotwierdzenia() throws NamingException{
System.out.println(manager);
}
public User getManager() {
return manager;
}
public void setManager(User manager) {
this.manager = manager;
}
}
I do not know what is the reason.