Close Notification in Vaadin 7

Hi All,

In Vaadin 7 notifications is showed via “Notification.show”. Other methods is deprecated.
How i can close notification from code?
It’s needed for Browser’s “back” and “forward” buttons.

Any suggestion?
Thanks.

Hi,

It’s currently not possible to close notifications through the server-side API. A client-side extension or some (probably simple) JavaScript trick might work.

Indeed the problem seems to be a valid issue, as it seems to be possible to navigate browser history while an error notification remains visible. There’s ticket
#4545
about it. There’s also
#8351
and
#8382
about closing notifications programmatically from server-side, which would work as a workaround. The other one is probably duplicate, so I’ll mark it as one.