From: Marc Englund Date: Wed, 28 Nov 2007 09:59:32 +0000 (+0000) Subject: fixed: in some cases notifications showed up when changing tabs X-Git-Tag: 6.7.0.beta1~5412 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=13d9a13b5693d74945e46de032b9a72801e3689a;p=vaadin-framework.git fixed: in some cases notifications showed up when changing tabs svn changeset:3014/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/reservation/ReservationApplication.java b/src/com/itmill/toolkit/demo/reservation/ReservationApplication.java index cac0cb1bc8..1222ff5284 100644 --- a/src/com/itmill/toolkit/demo/reservation/ReservationApplication.java +++ b/src/com/itmill/toolkit/demo/reservation/ReservationApplication.java @@ -186,7 +186,7 @@ public class ReservationApplication extends Application { mainTabs.addTab(allLayout, "All reservations", null); mainTabs.addListener(new TabSheet.SelectedTabChangeListener() { public void selectedTabChange(SelectedTabChangeEvent event) { - refreshReservations(true); + refreshReservations(false); } }); @@ -268,22 +268,16 @@ public class ReservationApplication extends Application { try { resource = getActiveResource(); } catch (ResourceNotAvailableException e) { - /* - * resourceName.setCaption("Not available"); resourceName - * .setValue("Please choose another time period or resource"); - */ getMainWindow().showNotification("Not available", "Please choose another resource or time period.", Notification.TYPE_HUMANIZED_MESSAGE); - // reservationButton.setEnabled(false); return; } map.clear(); if (resource == null) { resourceName.setCaption("Choose resource above"); resourceName.setValue(""); - // reservationButton.setEnabled(false); map.setContainerDataSource(db.getResources(null)); map.setZoomLevel(1); @@ -315,7 +309,6 @@ public class ReservationApplication extends Application { } map.setZoomLevel((srs.size() == 1 ? 14 : 9)); - // reservationButton.setEnabled(true); } }