mercredi 9 novembre 2016

Vaadin checkbox onValueChange

i have a code which controls filter on displaying table. For filtering user should click on checkBox and then see filtered results.For some reason user has to click on checkbox and then click outside of checkbox to see response.

  getView().getCheckBoxAllSeasons().addValueChangeListener(new ValueChangeListener() {
        public void valueChange(ValueChangeEvent event) {
            loadTable();
            getView().getDateFieldSeason().setEnabled(!getView().getCheckBoxAllSeasons().getValue());
        }
    });




Aucun commentaire:

Enregistrer un commentaire