Search code examples
gwtsmartgwt

Notification message in SmartGWT


There's a way to show a notification message in smartgwt similar to the ones provided by Vaadin

PD: Solution given in another stackoverflow question for GWT doesn't seems to work correctly in smartgwt.


Solution

  • The problem with PD suggested solution link is the zindex. SmartGWT uses high zindex values to display it's components.

    The solution is to manually increment zindex of the popup in show:

    public void show(int delayMilliseconds) {
        show();
        DOM.setIntStyleAttribute(getElement(), "zIndex", 1000000);
        startDelayedHide(delayMilliseconds);
    }