This is my code:
private CachingLocalEntityProvider<Anagrafica> entityProviderAnag = new CachingLocalEntityProvider<Anagrafica>( Anagrafica.class, Anagrafica.entityManager() );
private JPAContainer<Anagrafica> anagCont = new JPAContainer(Anagrafica.class);
...
cbAzienda = new ComboBox();
anagCont.setEntityProvider(entityProviderAnag);
cbAzienda.setContainerDataSource(anagCont);
cbAzienda.setItemCaptionPropertyId("ragsoc");
cbAzienda.setItemCaptionMode(ComboBox.ITEM_CAPTION_MODE_PROPERTY);
cbAzienda.setFilteringMode(Filtering.FILTERINGMODE_CONTAINS);
cbAzienda.setImmediate(true);
cbAzienda.setNullSelectionAllowed( false );
cbAzienda.addListener(
new Property.ValueChangeListener() {
public void valueChange(ValueChangeEvent event) {
getWindow().showNotification( event.getProperty() );
}
}
);
This works perfectly and valueChange Event is sent.
But if I add …
anagCont.addFilter( Filters.joinFilter("periodiAB", Filters.or(filters) ) );
My combo is filled with the correct list, but if click on any item
Any events aren’t sent.
Why?
Thanks