I have this autocomplete that works very well except for it not setting the value parameter in the backing bean
value="#{marketLoader.invSelectedItem}"
But it will only show the correct items from the search. But clicking an item does not set the object (not string). in the backing bean. The marketLoader.completeItemtext will return a List in this case. Is there a reason for the setInvSelectedItem() method not being called? Do I need a converter for this to work?
<p:autoComplete id="drop" dropdown="true" value="#{marketLoader.invSelectedItem}" 
        completeMethod="#{marketLoader.completeItemtext}" 
        var="item" itemLabel="#{item.typeName}"/>
The complete method
private invTypes invSelectedItem;
public List<invTypes> completeItemtext(String query) {
        if (query.length() < 3) {
            return null;
        }
        List<invTypes> tmpList = listDBItem.stream().filter(p -> p.getTypeName().contains(query))
                .collect(Collectors.toList()); 
        return tmpList;
    }