Notification.show from ClickListener does not work ?

Hi there,

I’m using Vaadin 7.0.1 and I have a trivial problem, I want to show a notification from a button click

 Button but = new Button("Show notification");
        but.addClickListener(new Button.ClickListener() {
            @Override
            public void buttonClick(Button.ClickEvent event) {

                Notification.show("Notification", Notification.Type.WARNING_MESSAGE);
            }
        });
        addComponent(but);

Nothing appears on the screen. Any idea ?

Edit : it works with Vaadin 6, so it looks like a bug

I’ve successfully done the same thing in several Vaadin 7 projects. See if you can reproduce the problem in a clean Vaadin project (create with eclipse plugin or vaadin-archetype-application). If it works (which I’m fairly sure it will), try to see what could be different in your own project.

Good luck debugging.